:root {
    --primary-500: hsla(214, 96%, 52%, 1);
}

.locations-section-wrapper {
    font-family: Roboto;
    font-style: normal;
    font-weight: 400;
    background-color: #fcfcfd;
}

.blue-img-container {
    padding: 0px 8rem;
    margin-bottom: auto;
}

.blue-img-container img {
    width: 256px;
    height: 256px;
}

#locations-section-container {
    display: flex;
    justify-content: space-between;
    padding: 40px 20px;
    align-items: center;
    align-self: stretch;
}

.content-container {
    display: flex;
    max-width: 632px;
    flex-direction: column;
}

#location-section__header {
    color: var(--gray-800, #272d3a);
    margin: 0;
    color: var(--gray-900);
    font-family: Roboto;
    font-size: 2.6rem;
    font-weight: 400;
    line-height: 3.8rem;
    text-align: left;
}

#text-section {
    padding: 1.6rem 0rem;
    font-size: 1.6rem;
    line-height: 2.4rem;
    color: var(--gray-800, #272d3a);
}

#text-section p {
    /* reset */
    margin-bottom: 0;
}

#choose-location {
    display: flex;
    max-width: 356px;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 1.6rem;
}

#locations-section__links-item {
    background: var(--white);
}

.links-container {
    margin: 1.6rem 0;
}

.link-wrapper {
    color: #005eb8;
    border-bottom: 2px solid #005eb8;
    font-size: 1.6rem;
}

.link-wrapper:visited {
    color: #005eb8;
}

.link-item {
    display: flex;
    justify-content: space-between;
}

.link-item span {
    color: var(--gray-800, #272d3a);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 2.4rem;
    text-decoration: none;
    margin-bottom: 2px;
}

.link-item-svg {
    align-self: center;
    width: 1.6rem;
    height: 1.6rem;
    fill: none;
    stroke: var(--gray-800, #272d3a);
}

.link-item-text {
    color: var(--gray-600, #545b67);
    font-size: 1.4rem;
    line-height: 2rem;
    margin: 0;
}

#choose-location-text {
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 2.4rem;
    color: var(--gray-800, #272d3a);
    margin: 0;
}

.choose-location-radio-buttons {
    margin: 0 0 1.6rem;
    display: flex;
}

#us-locations-btn,
#international-locations-btn {
    position: absolute;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    width: 1px;
    overflow: hidden;
    padding: 0;
    margin: -1px;
    border: 0;
}

label[for="us-locations-btn"],
label[for="international-locations-btn"] {
    border: 1px solid var(--gray-300, #c5c8cc);
    background: var(--white, #fff);
    padding: 0.8rem 1.6rem;
    width: 100%;
    font-weight: 400;
    margin-bottom: 0;
    text-align: center;
}

label[for="us-locations-btn"] {
    border-radius: 0.5rem 0rem 0rem 0.5rem;
}

label[for="international-locations-btn"] {
    border-radius: 0rem 0.5rem 0.5rem 0rem;
}

label[for="us-locations-btn"]:hover,
label[for="international-locations-btn"]:hover {
    cursor: pointer;
}

#us-locations-btn:checked ~ label[for="us-locations-btn"],
#international-locations-btn:checked
    ~ label[for="international-locations-btn"] {
    background: #e9f2fe;
    color: var(--primary-500, #1075fa);
    border-color: var(--primary-500, #1075fa);
    font-weight: 500;
}

#us-locations-btn:checked ~ label[for="us-locations-btn"] {
    border-right: 0.5px solid var(--primary-500, #1075fa);
}

#international-locations-btn:checked
    ~ label[for="international-locations-btn"] {
    border-left: 0.5px solid var(--primary-500, #1075fa);
}

.dropdown-container select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    width: 100%;
}

.dropdown-container select option {
    width: 100%;
}

.dropdown-container,
#city-chooser {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 1.6rem;
    line-height: 2.4rem;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    border: 1px solid var(--gray-300, #c5c8cc);
    background: var(--white, #fff);
    position:relative;
}

#locations-total-count:empty {
    display: none;
}

#locations-total-count {
    margin: 2.4rem 0 0 0;
    font-size: 1.4rem;
    color: var(--gray-700, #383f4b);
    font-weight: 500;
    line-height: 2rem;
}

#cities {
    padding: 0;
}

#country-id {
    display: none;
}

.dropdown-container:hover {
    cursor: pointer;
}

.dropdown-container:focus {
    border: 1px solid var(--primary-500, #1075fa);
}

.dropdown-svg {
    width: 2.4rem;
    height: 2.4rem;
    fill: none;
    stroke: var(--gray-700, #383f4b);
    position:absolute;
    pointer-events: none;
    right:12px;
}

#city-select:empty {
    display: none;
}

#city-select {
    margin-top: 1.2rem;
}

.result article {
    width: 60rem;
    background: var(--white);
}

@media (max-width: 1107px) {
    .locations-section-wrapper {
        padding: 1.6rem 0rem;
    }
    #locations-section-container {
        padding: 0;
    }

    #location-section__header {
        font-size: 1.8rem;
        font-weight: 500;
        line-height: 2.8rem;
    }

    .result article {
        width: unset;
    }
}

@media (max-width: 983px) {
    .blue-img-container {
        display: none;
        padding: 0px;
    }
}

/* Currency Change Modal */
#currency-change-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    place-items: center;
}

.modal-wrapper {
    padding-inline: 16px;
}

#currency-change-modal .modal-content {
    background-color: #FFF;
    padding: 24px;
    max-width: 600px;
    border-radius: 5px;
    position: relative;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0px 16px 120px 12px rgba(29, 33, 40, 0.25);

    display: flex;
    flex-direction: column;
}

#currency-change-modal .close-modal {
    position: absolute;
    right: 12px;
    top: 12px;
    cursor: pointer;

    & svg {
        width: 24px;
        height: 24px;
    }
}

#currency-change-modal h2 {
    color: var(--gray-800);
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 2.8rem;
    margin: 0 0 0.5rem;
    text-align: left;
}


#currency-change-message p {
    color: var(--gray-600);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 2rem;
    margin-bottom: 0;
}

#currency-change-message p:last-child {
    margin-top: 2rem;
}

.modal-footer {
    text-align: right;
    margin-top: 20px;

    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 16px;

    & a:visited {
        color: var(--gray-700);
    }

    @media (max-width: 768px) {
        flex-direction: column-reverse;
    }
}

.modal-footer button.change-location-btn {
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-900);
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    flex: 1 0 0;
    padding: 12px;
    border-radius: 6px;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: normal;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}

.modal-footer button {
    background: var(--gray-900);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    flex: 1 0 0;
    padding: 12px;
    border-radius: 6px;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: normal;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
}
/* End of Currency Change Modal */