/* Site colors 
    background: ['#F9F8F5'], 
    black: ['#000000'],
    white: ['#fff'],
    red: ['#C42924'],
    gray: ['#E0E0E0', '#BDBDBD', '#828282', '#414448'],
    blue: ['#0C2A63']
*/

/* Site spaces
    0, 4, 8, 12, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96, 104, 112, 120, 128, 136, 144
*/

@font-face {
    font-family: 'Apercu';
    src: url('/site-selectors/assets/fonts/apercu-regular-pro.woff2') format('woff2'),
        url('/site-selectors/assets/fonts/apercu-regular-pro.woff') format('woff');
    font-weight: 400;
}

@font-face {
    font-family: 'CenturyStd';
    src: url('/site-selectors/assets/fonts/CenturyStd-Book.woff2') format('woff2');
    font-weight: 400;
}

html,
body,
div,
span,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
img,
small,
strong,
ol,
ul,
li {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

body {
    font-family: 'Apercu';
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    background-color: #ffffff;
}

/* site-selector page */
.selector-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.selector-hero {
    width: 100%;
}

.max-width {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.selector-hero .wrapper {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px 16px 32px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.selector-hero h1 {
    font-size: 32px;
    margin: 40px 0 24px;
    line-height: 1em;
    width: 100%;
}

.selector-hero h1 span {
    font-family: 'CenturyStd';
}

.selector-hero h2 {
    font-size: 14px;
    line-height: 22px;
    width: 100%;
}

.selector-hero label {
    width: 100%;
    display: flex;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    margin-top: 24px;
    letter-spacing: 0.02em;
    color: #333333;
}

.selector-hero input {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox {
    color: #000000;
    width: 14px;
    height: 14px;
    border: 1px solid #000000;
    background: transparent;
    cursor: pointer;
    margin: 0 8px 2px 0;
    border-radius: 50%;
    -webkit-transition: 0.25s cubic-bezier(0.32, 0.24, 0.15, 1);
    transition: 0.25s cubic-bezier(0.32, 0.24, 0.15, 1);
}

.selector-hero input:checked ~ div {
    background: black;
}

/* languages list */
.selector {
    width: 100%;
    padding: 8px 16px 16px 16px;
}

.selector .max-width {
    max-width: 1440px;
}

.selector .countries {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.selector .countries .column {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.selector .countries .desktop-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.selector .countries .column .country {
    display: inline-flex;
    align-items: center;
    color: #414448;
    font-size: 16px;
    line-height: 1.5em;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    padding: 12px 0;
    letter-spacing: 0.06em;
    white-space: nowrap;
    font-weight: 500;
}

.selector .countries .column h3 {
    font-size: 16px;
    line-height: 1em;
    color: #000;
    text-transform: uppercase;
    margin: 25px 0 12px 0px;
    letter-spacing: 0.06em;
}

.selector .countries .column img {
    width: 16px;
    height: 16px;
    margin-right: 12px;
}

.selector .countries .column .wrapper {
    width: 100%;
}

/* temporary inactive sites (for beta) */
.selector .countries .column .wrapper .disabled {
    pointer-events: none;
    opacity: 0.2;
}

@media screen and (min-width: 768px) {
    .selector-hero h1 {
        font-size: 32px;
        margin: 68px 24px 36px;
    }

    .selector-hero h1 span {
        display: inline-block;
    }

    .selector-hero h2 {
        max-width: 387px;
    }

    .selector-hero .wrapper {
        text-align: center;
        align-items: center;
        border: none;
    }

    .selector-hero label {
        width: auto;
    }

    .selector .countries {
        box-sizing: content-box;
        justify-content: center;
        margin: auto;
        border: none;
    }
    .selector .countries.gloves {
        padding-left: 40px; /* Visually center countries in comparison with selector-hero. */
    }

    .selector .countries .column {
        margin: 0 24px;
        width: auto;
    }

    .selector .countries .desktop-row {
        flex-direction: row;
        gap: 16px;
    }
}

@media screen and (min-width: 1200px) {
    .selector-hero h1 {
        font-size: 40px;
        margin: 90px 24px 36px;
    }

    .selector-hero h2 {
        text-align: center;
    }

    .selector {
        margin: 80px 0;
    }

    .selector .countries.gloves {
        padding-left: 60px; /* Visually center countries in comparison with selector-hero. */
    }

    .selector .countries .column .country {
        background-image: linear-gradient(currentColor, currentColor);
        background-position: 100% 100%;
        background-repeat: no-repeat;
        background-size: 0% 1px;
        transition: background-size 250ms ease-out;
        padding: 0;
        margin: 12px 0;
    }

    .selector .countries .column .country:hover {
        background-position: 28px 100%;
        background-size: calc(100% - 28px) 1px;
    }

    .selector .countries .column h3 {
        margin: 25px 0 12px 0;
    }
    .selector .countries .column h3.job {
        margin: 25px auto 12px auto;
    }

    .selector .countries .column h3:first-of-type {
        margin-top: 0;
    }
}

/* Adjust for reset setting 1rem = 10px */
/* stylelint-disable-next-line comment-empty-line-before */
/* https://docs.adyen.com/online-payments/upgrade-your-integration/migrate-to-web-v6/#update-your-styling */
:root {
    --adyen-sdk-text-caption-font-size: 1.4rem;
    --adyen-sdk-text-body-font-size: 1.6rem;
    --adyen-sdk-text-subtitle-font-size: 1.6rem;
    --adyen-sdk-text-title-font-size: 1.6rem;
    --adyen-sdk-text-title-l-font-size: 2.4rem;
    --adyen-sdk-text-body-line-height: 2rem;
    --adyen-sdk-text-subtitle-line-height: 2.6rem;
    --adyen-sdk-text-title-line-height: 2.6rem;
}
