:root {
    --grey-1: #F0F0F0;
    --grey-2: #BABABA;
    --grey-3: #878787;
    --green-1: #14A800;
    --green-2: #0D6B00;
    --radius: 8px;
}

body {
    overflow-x: hidden;
}

.location {
    --flag-diameter: 17px;

    background: #FFF;
    border: 1px solid #BABABA;
    padding: 8px;
    border-radius: var(--radius);
    display: grid;
    gap: 8px;
    grid-template-areas: "flag name desc price";
    grid-template-columns: auto 1fr 1fr auto;
    align-items: center;

    font-size: 0.75rem;
    cursor: pointer;
    position: relative;
}

.location .round-flag {
    grid-area: flag;
    width: var(--flag-diameter);
    height: var(--flag-diameter);
}

.location label {
    grid-area: name;
    justify-self: self-start;
}

.location .price {
    grid-area: price;
    justify-self: self-end;
    background: var(--grey-1);
    color: #000;
    border-radius: var(--radius);
    padding-inline: 8px;
    padding-block: 2px;
}

.location[vat="true"] {
    grid-template-areas: "flag name desc price vat";
    grid-template-columns: auto 1fr 1fr auto auto;
}

.location[vat="true"] .vat {
    grid-area: vat;
    justify-self: self-end;
    font-size: 0.9375rem;
    color: var(--grey-3);
}

.location:has(input:checked) .price {
    background: var(--green-1);
    color: #FFF;
    font-weight: 700;
}

.location:first-child {
    padding-block: 20px;
}

.location input[type="radio"] {
    visibility: hidden;
}

.location input[type="radio"]#global {
    line-height: normal;
    font-size: 14px; 
}

.location input[type="radio"]#global::after {
    content: "Most Popular!";
    color: var(--grey-2);
    font-weight: 600;
    visibility: visible;
}

.location:has(input:checked) input[type="radio"]#global::after {
    color: var(--green-2);
}

.location:has(input:checked) label::after {
    content: '';
    width: 18px;
    height: 17px;
    position: absolute;
    background-image: url(/business/assets/images/checkmark-primary-green.svg);
    background-repeat: no-repeat;
    margin-left: 10px;
    margin-top: 4px;
}

.location:has(input:checked) {
    outline: 1px solid var(--green-1);
    border: 1px solid var(--green-1);
}

#tagline {
    color: #FFF;
    font-size: 0.6875rem;
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    line-height: 1;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius);
    max-width: 20rem;
    width: max-content;
    text-align: center;
    z-index: 1;
}

@media only screen and (min-width: 480px) {
    #tagline {
        font-size: 0.9rem;
        max-width: 30rem;
    }
}

#location-text {
    font-weight: 700;
}

#location-description {
    font-weight: 400;
}

#select-container {
    --padding: 0.625rem;
    width: 100%;
    background: var(--grey-1);
    border-radius: var(--radius);
    padding: var(--padding);
    min-height: 19.75rem;
    max-height: 28.75rem;
    max-width: 38.125rem;
    margin-inline: var(--padding);
    display: grid;
    position: relative;
    gap: var(--padding);
}

#location-selector-wrapper {
    height: 100%;
}

#location-selector {
    display: grid;
    gap: 10px;
    max-height: 13.5rem;
    padding-inline: 10px;
    padding-block: 1px;
    overflow-y: auto;
    height: 100%;
}

#location-photo {
    position: relative;
}

#location-photo::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0) 60%);
    pointer-events: none;
    border-radius: 8px;
}

#location-photo picture {
    aspect-ratio: 582/211;
    max-width: 100%;
    display: block;
}

#location-photo picture img {
    border-radius: 8px;
}

#select-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: unset;
}

#select-form {
    display: flex;
    align-items: center;
}

@media only screen and (min-width: 480px) {
    .location {
        font-size: 0.9375rem;
    }

    #select-container {
        margin-inline: auto;
    }
}