/* Carry country and language selector */
.carry-locale-trigger {
    display: inline-flex;
    align-items: center;
    gap: .48rem;
    min-height: 42px;
    padding: .48rem .7rem;
    border: 1px solid rgba(3, 33, 52, .16);
    border-radius: 12px;
    background: #fff;
    color: #062338;
    font: inherit;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(4, 31, 49, .05);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.carry-locale-trigger:hover,
.carry-locale-trigger:focus-visible {
    border-color: rgba(0, 137, 94, .55);
    box-shadow: 0 8px 22px rgba(4, 31, 49, .1);
    transform: translateY(-1px);
    outline: none;
}

.carry-locale-trigger > .bi-globe2 {
    font-size: 1.04rem;
}

.carry-locale-trigger-copy {
    display: inline-flex;
    align-items: baseline;
    gap: .24rem;
    white-space: nowrap;
}

.carry-locale-trigger-copy strong {
    font-size: .78rem;
    letter-spacing: .04em;
}

.carry-locale-trigger-copy small {
    color: #647381;
    font-size: .68rem;
    font-weight: 700;
}

.carry-locale-trigger-chevron {
    color: #677681;
    font-size: .68rem;
}

.carry-locale-modal .modal-dialog {
    max-width: 650px;
}

.carry-locale-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0, 23, 38, .28);
}

.carry-locale-modal .modal-content::before {
    content: "";
    display: block;
    height: 6px;
    background: linear-gradient(90deg, #007a55 0 68%, #ffb800 68% 100%);
}

.carry-locale-modal-header {
    align-items: flex-start;
    padding: 1.7rem 1.8rem 1rem;
    border-bottom: 1px solid #e8eef0;
    background: linear-gradient(135deg, #f5fbf8 0%, #fff 58%, #fff8df 100%);
}

.carry-locale-kicker {
    display: block;
    margin-bottom: .38rem;
    color: #00895e;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.carry-locale-modal-header .modal-title {
    margin: 0;
    color: #071f31;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -.025em;
}

.carry-locale-modal-header p {
    margin: .35rem 0 0;
    color: #667581;
    font-size: .92rem;
}

.carry-locale-modal-header .btn-close {
    margin: .05rem 0 0 1rem;
    opacity: .62;
}

.carry-locale-modal-body {
    padding: 1.35rem 1.8rem;
    background: #f7faf9;
}

.carry-locale-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.carry-locale-field label {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .48rem;
    color: #1c3342;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.carry-locale-field-icon {
    display: inline-grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 8px;
    background: #eef8f4;
    color: #00895e;
}

.carry-locale-field .form-select {
    min-height: 54px;
    border: 1px solid #d8e0e5;
    border-radius: 13px;
    padding-left: .9rem;
    background-color: #fff;
    color: #102c3d;
    font-weight: 700;
    box-shadow: none;
}

.carry-locale-field .form-select:focus {
    border-color: #00895e;
    background-color: #fff;
    box-shadow: 0 0 0 .22rem rgba(0, 137, 94, .11);
}

.carry-locale-market-card {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-top: 1rem;
    padding: 1.1rem;
    border: 1px solid rgba(0, 137, 94, .14);
    border-radius: 15px;
    background: linear-gradient(135deg, #06384a, #075d4d);
    box-shadow: 0 14px 32px rgba(3, 47, 54, .14);
}

.carry-locale-market-icon {
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: #00895e;
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 137, 94, .2);
}

.carry-locale-market-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.carry-locale-market-copy span,
.carry-locale-market-copy small {
    color: rgba(255,255,255,.72);
    font-size: .73rem;
}

.carry-locale-market-copy strong {
    overflow: hidden;
    color: #fff;
    font-size: .95rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.carry-locale-live-badge {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    padding: .36rem .55rem;
    border-radius: 999px;
    background: #e6f7ef;
    color: #06764f;
    font-size: .68rem;
    font-weight: 800;
    white-space: nowrap;
}

.carry-locale-live-badge > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #0cab72;
    box-shadow: 0 0 0 4px rgba(12, 171, 114, .11);
}

.carry-locale-note {
    margin: .85rem 0 0;
    padding: .75rem .85rem;
    border-radius: 12px;
    background: #fff;
    color: #667681;
    font-size: .76rem;
    line-height: 1.55;
}

.carry-locale-modal-footer {
    gap: .7rem;
    padding: 1rem 1.8rem 1.45rem;
    border-top: 1px solid #edf1f3;
    background: #fbfcfd;
}

.carry-locale-cancel,
.carry-locale-save {
    min-height: 46px;
    border-radius: 12px;
    font-weight: 800;
}

.carry-locale-cancel {
    border: 1px solid #d7dfe4;
    background: #fff;
    color: #334b5a;
}

.carry-locale-save {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border: 0;
    background: #ffb800;
    color: #092235;
    box-shadow: 0 9px 20px rgba(255, 184, 0, .22);
}

.carry-locale-save:hover,
.carry-locale-save:focus-visible {
    background: #ffc426;
    color: #092235;
}

@media (max-width: 1199.98px) {
    .carry-locale-trigger-copy,
    .carry-locale-trigger-chevron {
        display: none;
    }

    .carry-locale-trigger {
        width: 42px;
        justify-content: center;
        padding-inline: 0;
    }
}

@media (max-width: 991.98px) {
    .carry-main-nav-actions .carry-locale-trigger {
        width: 100%;
        justify-content: flex-start;
        margin-bottom: .35rem;
        padding-inline: .85rem;
    }

    .carry-main-nav-actions .carry-locale-trigger-copy,
    .carry-main-nav-actions .carry-locale-trigger-chevron {
        display: inline-flex;
    }

    .carry-main-nav-actions .carry-locale-trigger-chevron {
        margin-left: auto;
    }
}

@media (max-width: 575.98px) {
    .carry-locale-modal .modal-dialog {
        margin: .65rem;
    }

    .carry-locale-modal .modal-content {
        border-radius: 20px;
    }

    .carry-locale-modal-header,
    .carry-locale-modal-body,
    .carry-locale-modal-footer {
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }

    .carry-locale-grid {
        grid-template-columns: 1fr;
    }

    .carry-locale-market-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .carry-locale-live-badge {
        margin-left: 3.55rem;
    }

    .carry-locale-modal-footer {
        display: grid;
        grid-template-columns: 1fr;
    }

    .carry-locale-modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Country -> city -> language cascade additions */

.carry-locale-modal .modal-dialog {
    max-width: 820px;
}

.carry-locale-grid {
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr)
        minmax(0, 1fr);
}

.carry-locale-live-badge b {
    font: inherit;
}

.carry-locale-coming-soon-badge {
    background: #fff3d6;
    color: #8a6100;
}

.carry-locale-coming-soon-badge > span {
    background: #e0a100;
    box-shadow: 0 0 0 4px rgba(224, 161, 0, .12);
}

.carry-locale-unavailable-message {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin-top: .85rem;
    padding: .78rem .9rem;
    border: 1px solid #f0d79b;
    border-radius: 12px;
    background: #fff9ea;
    color: #745515;
    font-size: .78rem;
    line-height: 1.45;
}

.carry-locale-unavailable-message .bi {
    margin-top: .08rem;
    color: #b27b00;
}

.carry-locale-save:disabled {
    cursor: not-allowed;
    background: #dfe4e7;
    color: #82909a;
    box-shadow: none;
    opacity: 1;
}

@media (max-width: 767.98px) {
    .carry-locale-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .carry-locale-modal,
    .carry-locale-modal *,
    .carry-locale-trigger {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
