﻿
.size-button {
    display: block;
    border: 1px solid #fcaf17;
    display: flex;
    max-width: 170px;
    min-height: 50px;
    border-radius: 6px;
    overflow: hidden;
    background-color: white;
    align-items: center;
    cursor: pointer;
    margin: 5px;
}

.size-button > .text {
    display: block;
    flex-grow: 1;
    text-align: center;
    height: 100%;
    padding-top: 2px;
    font-size: 14px;
    font-weight: 700;
    color: #fcaf17;
}

.size-button:hover,
input:checked + .size-button {
    border: 1px solid #fcaf17;
    background-color: #eee;
}

.size-button:hover > .text {
    color: #fcaf17;
}
input:checked + .size-button > .text {
    color: white;
}

input:checked + .size-button {
    background-color: #fcaf17;
}

.measurement-label {
    min-width: 150px !important;
    min-height: 40px !important;
    display: inline-block !important;
    border-width: 3px !important;
    border-radius: 5px !important;
    background-color: #eee;
}

.measurement-remove-button {
    min-width: 150px !important;
    min-height: 40px !important;
    max-width: 150px !important;
    max-height: 40px !important;
}

.measurement-label-text {
    line-height: 40px;
    vertical-align: middle;
    font-size: 1.2rem;
    font-weight: 500;
    display: inline-block;
}

.default-address {
    text-decoration: underline;
}

.prohibited-text{
    font-size: 12px;
}

.autocomplete {
    /*the container must be positioned relative:*/
    position: relative;
    display: inline-block;
}
.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    /*position the autocomplete items to be the same width as the container:*/
    top: 100%;
    left: 0;
    right: 0;
}

.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
}

.autocomplete-items div:hover {
    /*when hovering an item:*/
    background-color: #e9e9e9;
}

.autocomplete-active {
    /*when navigating through the items using the arrow keys:*/
    background-color: DodgerBlue !important;
    color: #ffffff;
}

#loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.spinner {
    border: 8px solid #fbae19;
    border-top: 8px solid transparent;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

#tooltip {
    position: relative;
    display: inline-block;
}

#tooltip #tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

#tooltip #tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

#tooltip:hover #tooltiptext {
    visibility: visible;
    opacity: 1;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
