/* Country pickers with flags (assets/js/sk-country-select.js). Colours come from the site-skin tokens. */
.sk-cs {
    position: relative;
    width: 100%;
    flex-basis: 100%;
}
.sk-cs-host::before,
html[dir] body .sk-cs-host::before,
.sk-cs-host > .select-caret-down-wrapper {
    display: none !important;
}
/* The real select stays under the button for the form value and the browser's "required" bubble */
html body .sk-cs > select.sk-cs__native {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
    pointer-events: none;
    z-index: 0;
}

.sk-cs__btn {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 8px 40px 8px 14px;
    padding-inline: 14px 40px;
    background: var(--sk-input-bg, #fff);
    color: var(--sk-text, #171512);
    border: 1px solid var(--sk-border, rgba(186, 130, 19, 0.35));
    border-radius: var(--sk-radius-input, 9px);
    font: inherit;
    font-family: Nunito, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.3;
    text-align: start;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.sk-cs__btn:hover {
    border-color: var(--sk-border-strong, rgba(186, 130, 19, 0.7));
}
.sk-cs__btn:focus-visible,
.sk-cs.is-open .sk-cs__btn {
    outline: none;
    border-color: var(--sk-gold, #c59b27);
    box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.18);
}
.sk-cs__btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.sk-cs__btn.is-placeholder .sk-cs__value {
    color: var(--sk-muted, #665f55);
}
.sk-cs.is-invalid .sk-cs__btn {
    border-color: var(--sk-danger, #c40000);
}
.sk-cs__value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.sk-cs__caret {
    position: absolute;
    inset-inline-end: 15px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 2px solid var(--sk-muted, #665f55);
    border-bottom: 2px solid var(--sk-muted, #665f55);
    transform: rotate(45deg);
    transition: transform 0.2s ease, margin 0.2s ease;
}
.sk-cs.is-open .sk-cs__caret {
    transform: rotate(-135deg);
    margin-top: -2px;
}

.sk-cs__flag {
    flex: 0 0 auto;
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
    background: var(--sk-tint, #f6f0e4);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.sk-cs__flag[hidden] {
    display: none;
}

.sk-cs__panel {
    position: absolute;
    z-index: 50;
    top: calc(100% + 6px);
    inset-inline: 0;
    min-width: 240px;
    padding: 8px;
    background: var(--sk-surface-2, #fff);
    border: 1px solid var(--sk-border, rgba(186, 130, 19, 0.35));
    border-radius: 12px;
    box-shadow: var(--sk-shadow-hover, 0 18px 40px rgba(43, 32, 15, 0.16));
    animation: sk-cs-in 0.14s ease-out;
}
.sk-cs.is-up .sk-cs__panel {
    top: auto;
    bottom: calc(100% + 6px);
}
.sk-cs__panel[hidden] {
    display: none;
}
@keyframes sk-cs-in {
    from { opacity: 0; transform: translateY(-4px); }
}
html body .sk-cs input.sk-cs__search {
    width: 100%;
    min-height: 38px !important;
    margin: 0 0 6px;
    padding: 6px 12px;
    background: var(--sk-tint, #f6f0e4) !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    font-size: 14px;
}
html body .sk-cs input.sk-cs__search:focus {
    background: var(--sk-input-bg, #fff) !important;
    border-color: var(--sk-gold, #c59b27) !important;
    box-shadow: none !important;
}
.sk-cs__list {
    max-height: 264px;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--sk-border, rgba(186, 130, 19, 0.35)) transparent;
    list-style: none;
}
.sk-cs__opt {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--sk-text, #171512);
    font-family: Nunito, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.3;
    cursor: pointer;
}
.sk-cs__opt[hidden] {
    display: none;
}
.sk-cs__opt.is-active {
    background: var(--sk-tint, #f6f0e4);
}
.sk-cs__opt[aria-selected='true'] {
    font-weight: 700;
    color: var(--sk-gold-ink, #8a5d06);
}
.sk-cs__opt[aria-selected='true']::after {
    content: '';
    width: 5px;
    height: 10px;
    margin-inline-start: auto;
    margin-inline-end: 4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}
.sk-cs__sep {
    height: 1px;
    margin: 6px 4px;
    background: var(--sk-soft-border, rgba(76, 62, 38, 0.16));
}
.sk-cs__sep[hidden] {
    display: none;
}
.sk-cs__empty {
    margin: 0;
    padding: 12px 10px;
    color: var(--sk-muted, #665f55);
    font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
    .sk-cs__panel { animation: none; }
    .sk-cs__caret { transition: none; }
}

/* Group headings (a select with <optgroup>, e.g. the Pet Taxi countries) */
.sk-cs__group {
    padding: 10px 12px 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #8a5d06;
    list-style: none;
    cursor: default;
}
