/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.jedi-highlights-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 64px;
    padding: 10px 0 4px 0;
}

.jedi-highlights-strip .highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    white-space: nowrap;
    position: relative;
}

.jedi-highlights-strip .highlight-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -28px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 28px;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 1px 0 8px rgba(0, 0, 0, 0.12);
}

.jedi-highlights-strip .highlight-item:last-child .icon {
    width: 200px;
}

.jedi-highlights-strip .highlight-item .icon {
    width: 27px;
}

.jedi-highlights-strip .highlight-item .text {
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-wrap: wrap;
    font-weight: bold;
}

/* Locale Switcher Styles */
.locale-switcher-container {
    position: absolute;
    top: 100%;
    right: 0;
    width: 460px;
    z-index: 9999;
    display: none;
    pointer-events: none;
}

.locale-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(5px);
    transition: all 0.2s ease;
    font-size: 14px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 4px;
}

.jedi-highlights-strip .locale-switcher::after {
    content: "";
    position: absolute;
    top: -6px;
    right: 122px;
    /* adjust to align with icon */
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-left: 1px solid #ddd;
    border-top: 1px solid #ddd;
}

.jedi-highlights-strip .highlight-item:last-child {
    cursor: pointer;
}

.jedi-highlights-strip .highlight-item:last-child:hover .locale-switcher-container {
    display: block;
    transform: translateY(0);
    pointer-events: auto;
}

.locale-switcher>div {
    padding: 10px;
}

.locale-switcher .region-section {
    border-right: 1px solid #eee;
}

.locale-switcher .region-section .region-switcher a {
    font-size: 14px;
    display: block;
    margin-bottom: 2px;
    padding: 8px;
    text-decoration: none;
    border-radius: 6px;
    text-transform: none;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.locale-switcher h5 {
    font-size: 17px;
    padding: 4px;
    margin: 0 0 8px;
    color: #323232;
    border-bottom: 1px solid #eee;
}

.locale-switcher .currency-switcher a {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin: 2px;
    font-size: 12px;
    transition: background 0.15s, transform 0.1s;
}

.locale-switcher .region-switcher a.active,
.locale-switcher .currency-switcher a.active {
    background: #DCE9F5;
    pointer-events: none;
}

.locale-switcher .region-switcher a:hover,
.locale-switcher .currency-switcher a:hover {
    background: #EAF2FB;
}

.locale-switcher .currency-section {
    padding: 4px 0;
}

.locale-switcher .currency-section .currency-switcher {
    padding-top: 8px;
}

.locale-switcher .region-switcher a .flag-image {
    width: 38px;
    height: auto;
}

.locale-switcher .region-switcher a .flag-image img {
    height: 24px;
}

.locale-switcher .secondary-currency-section {
    margin-top: 0;
    padding-top: 12px;
}

.locale-switcher .secondary-currency-dropdown {
    position: relative;
}

.locale-switcher .secondary-currency-trigger {
    width: 100%;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.locale-switcher .secondary-currency-menu {
    position: absolute;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all 0.16s ease;
    z-index: 30;
}

.locale-switcher .secondary-currency-dropdown:hover .secondary-currency-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.locale-switcher .secondary-currency-menu a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: normal;
    color: #222;
}

.locale-switcher .secondary-currency-menu a:hover {
    background: #f7f7f7;
}

.locale-switcher .secondary-currency-trigger.active {
    background: #DCE9F5;
    border-color: #bfd6eb;
}

.locale-switcher .secondary-currency-trigger .check {
    margin-left: 4px;
    font-size: 12px;
}

.locale-switcher .secondary-currency-menu a.active {
    background: #DCE9F5;
    pointer-events: none;
}

.locale-switcher .secondary-currency-section .secondary-currency-trigger .caret {
    margin-top: -6px;
    width: 9px;
    font-size: 14px;
}

/* Geo Modal Styles */
.geo-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
}

.geo-modal.hidden {
    display: none;
}

.geo-modal-content {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-radius: 6px;
    padding: 34px 32px 30px;
    text-align: center;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
    font-family: inherit;
    animation: geoModalFadeIn 0.22s ease-out;
}

.geo-modal-content h3 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 600;
    color: #111111;
}

.geo-modal-content .geo-message {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #444444;
}

.geo-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 26px;
}

.geo-actions button,
.geo-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s ease;
}

#geo-stay {
    background: #ffffff;
    color: #222222;
    border: 1px solid #d8d8d8;
}

#geo-stay:hover {
    background: #f6f6f6;
    border-color: #bdbdbd;
}

#geo-switch {
    background: #111111;
    color: #ffffff;
    border: 1px solid #111111;
}

#geo-switch:hover {
    background: #333333;
    border-color: #333333;
    color: #ffffff;
}

@keyframes geoModalFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    .geo-modal-content {
        padding: 28px 22px 24px;
    }

    .geo-actions {
        flex-direction: column;
    }

    .geo-actions button,
    .geo-actions a {
        width: 100%;
    }
}