/* ============================================
   Transtoyou Country Selector Styles
   Version: 2.0
   ============================================ */


/* ============================================
   Geo-detection Notice
   Shown when visitor's detected country is not shippable.
   Used in both desktop popup (#tty-geo-notice)
   and mobile submenu (#tty-mobile-geo-notice).
   ============================================ */

.tty-geo-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    margin: 0 0 20px 0;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.06) 0%, rgba(220, 53, 69, 0.02) 100%);
    border: 1.5px solid rgba(220, 53, 69, 0.25);
    border-radius: var(--tty-radius-md, 14px);
    animation: ttyGeoNoticeIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes ttyGeoNoticeIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tty-geo-notice-flag {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding-top: 2px;
}

.tty-geo-notice-flag img {
    width: 28px;
    height: 20px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.tty-geo-notice-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.tty-geo-notice-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 17px;
    font-weight: 700;
    color: #ad1c19;
    line-height: 1.3;
}

.tty-geo-notice-title i {
    font-size: 15px;
    flex-shrink: 0;
    color: #dc3545;
}

.tty-geo-notice-body {
    margin: 0;
    font-size: 15px;
    color: var(--tty-text-muted);
    line-height: 1.4;
}

/* Mobile variant — slightly tighter padding */
.tty-mobile-geo-notice {
    margin: 0 0 16px 0;
    border-radius: 12px;
}

/* Dark mode */
[data-theme="dark"] .tty-geo-notice {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.12) 0%, rgba(220, 53, 69, 0.05) 100%);
    border-color: rgba(220, 53, 69, 0.35);
}

[data-theme="dark"] .tty-geo-notice-title {
    color: #f87171;
}

[data-theme="dark"] .tty-geo-notice-body {
    color: var(--tty-text-muted, #9ca3af);
}


/* ============================================
   Info Tab Styling
   ============================================ */

/* Info Context Box */
.info-context-box {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, var(--tty-bg-secondary) 0%, rgba(229, 146, 76, 0.05) 100%);
    border-radius: var(--tty-radius-md);
    margin-bottom: 25px;
    align-items: center;
    border: 1px solid var(--tty-border-light);
    position: relative;
    overflow: hidden;
}

/* Screen reader only - visually hidden but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Info Icon Animation */
.info-context-box .context-icon {
    background: var(--tty-secondary);
}

#tty-country-popup .info-context-box .context-icon i {
    font-size: 42px;
    color: white;
    animation: pulseInfo 3s ease-in-out infinite;
}

@keyframes pulseInfo {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Shield decoration animation */
.info-context-box .icon-decoration {
    background: var(--tty-primary);
}

.info-context-box .icon-decoration i {
    font-size: 16px;
    color: white;
    animation: shieldProtect 4s ease-in-out infinite;
}

@keyframes shieldProtect {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    25% {
        transform: scale(1.1) rotate(5deg);
    }

    50% {
        transform: scale(1) rotate(0deg);
    }

    75% {
        transform: scale(1.1) rotate(-5deg);
    }
}

/* Info Context Info */
.tty-popup-content .info-context-info {
    flex: 1;
}

.tty-popup-content .info-context-info h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: var(--tty-text-primary);
    font-weight: 600;
}

.tty-popup-content .info-context-hint {
    margin: 0;
    font-size: 15px;
    color: var(--tty-text-muted);
    line-height: 1.4;
}

/* Quick Stats */
.tty-popup-content .info-quick-stats {
    display: flex;
    gap: 30px;
}

.tty-popup-content .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.tty-popup-content .stat-item i {
    font-size: 24px;
    color: var(--tty-primary);
    margin-bottom: 5px;
}

.tty-popup-content .stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--tty-text-primary);
}

.tty-popup-content .stat-label {
    font-size: 12px;
    color: var(--tty-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Info Content */
.tty-popup-content .info-content {
    padding: 0 5px;
}

/* Info Card */
.tty-popup-content .info-card {
    padding: 20px;
    background: var(--tty-bg-primary);
    border-radius: var(--tty-radius-md);
    border: 2px solid var(--tty-border-light);
    transition: all 0.3s ease;
    cursor: default;
    margin-bottom: 20px;
}

.tty-popup-content .info-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.tty-popup-content .info-card-header i {
    font-size: 20px;
    color: var(--tty-secondary);
}

.tty-popup-content .info-card-header h5 {
    margin: 0;
    font-size: 18px;
    color: var(--tty-text-primary);
}

.tty-popup-content .info-card-content p {
    margin: 0;
    color: var(--tty-text-secondary);
    line-height: 1.6;
}

/* Status Cards Grid */
.tty-popup-content .info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.tty-popup-content .info-status-card {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--tty-bg-primary);
    border-radius: var(--tty-radius-md);
    border: 2px solid var(--tty-border-light);
    transition: all 0.3s ease;
    cursor: default;
}

.tty-popup-content .info-status-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.tty-popup-content .status-icon-wrapper {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 24px;
}

/* Available status */
.tty-popup-content .info-status-card.available .status-icon-wrapper {
    background: rgba(41, 174, 93, 0.1);
    color: #29ae5d;
}

.tty-popup-content .info-status-card.available:hover {
    border-color: #29ae5d;
}

/* Unavailable status */
.tty-popup-content .info-status-card.unavailable .status-icon-wrapper {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.tty-popup-content .info-status-card.unavailable:hover {
    border-color: #dc3545;
}

/* Checking status */
.tty-popup-content .info-status-card.checking .status-icon-wrapper {
    background: rgba(0, 95, 95, 0.1);
    color: var(--tty-primary);
}

.tty-popup-content .info-status-card.checking:hover {
    border-color: var(--tty-primary);
}

.tty-popup-content .status-content h6 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--tty-text-primary);
}

.tty-popup-content .status-content p {
    margin: 0;
    font-size: 13px;
    color: var(--tty-text-muted);
    line-height: 1.4;
}

/* Important Notice */
.tty-popup-content .info-notice {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(229, 146, 76, 0.1) 0%, rgba(229, 146, 76, 0.05) 100%);
    border-radius: var(--tty-radius-md);
    border: 1px solid rgba(229, 146, 76, 0.3);
    margin-bottom: 25px;
}

.tty-popup-content .info-notice-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--tty-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tty-popup-content .info-notice-icon i {
    font-size: 24px;
    color: white;
    animation: warningPulse 2s ease-in-out infinite;
}

@keyframes warningPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.tty-popup-content .info-notice-content h6 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--tty-text-primary);
}

.tty-popup-content .info-notice-content ul {
    margin: 0;
    padding-left: 20px;
}

.tty-popup-content .info-notice-content li {
    color: var(--tty-text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 4px;
}

/* FAQ Section - Specifiek voor Country Popup */
.tty-popup-content .tty-popup-info-faq {
    margin-top: 30px;
}

.tty-popup-content .tty-popup-info-faq h5 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--tty-text-primary);
}

.tty-popup-content .tty-popup-faq-item {
    margin-bottom: 15px;
    background: var(--tty-bg-primary);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tty-popup-content .tty-popup-faq-question {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--tty-primary);
    transition: all 0.3s ease;
    justify-content: space-between;
    font-size: 16px;
    user-select: none;
    /* Voorkom tekst selectie */
}

.tty-popup-content .tty-popup-faq-question:hover {
    background: var(--tty-bg-tertiary);
}

.tty-popup-content .tty-popup-faq-question i {
    font-size: 12px;
    color: var(--tty-text-muted);
    transition: transform 0.5s ease;
    flex-shrink: 0;
    /* Voorkom dat icon krimpt */
}

.tty-popup-content .tty-popup-faq-item.active .tty-popup-faq-question i {
    transform: rotate(180deg);
}

.tty-popup-content .tty-popup-faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tty-popup-content .tty-popup-faq-answer p {
    margin: 0 0 20px 0;
    font-size: 15px;
    color: var(--tty-text-secondary);
    line-height: 1.6;
}

.tty-popup-content .tty-popup-faq-item.active .tty-popup-faq-answer {
    max-height: 300px;
    /* Groot genoeg voor content */
    padding: 10px 20px 20px 20px;
}

/* Animation keyframe specifiek voor popup FAQ */
@keyframes ttyPopupFaqSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.tty-popup-content .tty-popup-faq-item.active .tty-popup-faq-answer {
    animation: ttyPopupFaqSlideDown 0.3s ease-out;
}

/* Mobile Responsive voor popup FAQ */
@media (max-width: 768px) {
    .tty-popup-content .tty-popup-info-faq {
        margin-top: 20px;
    }

    .tty-popup-content .tty-popup-faq-question {
        padding: 12px 15px;
        font-size: 14px;
    }

    .tty-popup-content .tty-popup-faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }

    .tty-popup-content .tty-popup-faq-answer p {
        font-size: 14px;
    }
}

/* Dark Mode Support voor popup FAQ */
[data-theme="dark"] .tty-popup-content .tty-popup-faq-item {
    background: var(--tty-bg-secondary);
}

[data-theme="dark"] .tty-popup-content .tty-popup-faq-question:hover {
    background: var(--tty-bg-tertiary);
}

/* Chevron down button specifiek voor FAQ */
.tty-popup-content .fas.fa-chevron-down {
    transition: transform 0.3s ease;
    background: #fff;
    color: #005f5f !important;
    cursor: pointer;
    margin-right: -10px;
    margin-top: -2px;
    margin-bottom: -2px !important;
    font-size: 12px;
    border-radius: 50%;
    box-shadow: inset 0px 2px 2px rgba(0, 0, 0, 0.2);
    width: 30px;
    border: none !important;
    height: 30px;
    text-align: center !important;
    text-transform: none;
    padding: 9px !important;
}


/* Dark Mode Support */
[data-theme="dark"] .info-context-box {
    background: linear-gradient(135deg, var(--tty-bg-secondary) 0%, rgba(229, 146, 76, 0.02) 100%);
}

[data-theme="dark"] .info-card {
    background: var(--tty-bg-secondary);
}

[data-theme="dark"] .info-status-card {
    background: var(--tty-bg-secondary);
}

[data-theme="dark"] .info-notice {
    background: linear-gradient(135deg, rgba(229, 146, 76, 0.05) 0%, transparent 100%);
    border-color: rgba(229, 146, 76, 0.2);
}

[data-theme="dark"] .faq-item {
    background: var(--tty-bg-secondary);
}

/* Hover effects */
.info-context-box:hover .context-icon i {
    animation-duration: 1.5s;
}

.info-context-box:hover .icon-decoration i {
    animation-duration: 2s;
}

/* ============================================
   Header Country Selector - .tty-header-top
   ============================================ */

/* Header Top Container Reset */
.tty-header-top .country-selector {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    width: auto;
    min-width: auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    padding: 4px 4px 3px 4px;
    box-shadow: inset 0px 2px 2px rgba(0, 0, 0, 0.2);
}


/* General Context Box (non-product pages) */
.general-context-box {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, var(--tty-bg-secondary) 0%, rgba(0, 95, 95, 0.05) 100%);
    border-radius: var(--tty-radius-md);
    margin-bottom: 20px;
    align-items: center;
    border: 1px solid var(--tty-border-light);
    position: relative;
    overflow: hidden;
}

.product-context-box {
    display: flex;
    gap: 20px;
    padding: 20px 25px 20px 20px;
    background: linear-gradient(135deg, var(--tty-bg-secondary) 0%, rgba(0, 95, 95, 0.05) 100%);
    border-radius: var(--tty-radius-md);
    margin-bottom: 20px;
    align-items: center;
    border: 1px solid var(--tty-border-light);
    position: relative;
    overflow: hidden;
}

/* Context Icon Wrapper */
.context-icon-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.context-icon {
    width: 80px;
    height: 80px;
    background: var(--tty-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 95, 95, 0.2);
}

#tty-country-popup .context-icon i {
    font-size: 42px;
    animation: rotateSlowly 20s linear infinite;
    color: white;
}

.tty-tab i {
    font-size: 22px;
}

@keyframes rotateSlowly {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Icon Decoration - Plane */
.icon-decoration {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 32px;
    height: 32px;
    background: var(--tty-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.icon-decoration i {
    font-size: 16px;
    color: white;
    animation: drive 3s ease-in-out infinite;
}

@keyframes drive {
    0% {
        transform: translateX(0) rotate(0deg);
    }

    25% {
        transform: translateX(2px) rotate(-5deg);
    }

    50% {
        transform: translateX(0) rotate(0deg);
    }

    75% {
        transform: translateX(-2px) rotate(5deg);
    }

    100% {
        transform: translateX(0) rotate(0deg);
    }
}

/* Extra truck driving effect */
.general-context-box:hover .icon-decoration i {
    animation: driveActive 1s ease-in-out infinite;
}

@keyframes driveActive {

    0%,
    100% {
        transform: translateX(0) rotate(0deg);
    }

    25% {
        transform: translateX(3px) rotate(-8deg);
    }

    75% {
        transform: translateX(-3px) rotate(8deg);
    }
}

/* Road effect - alleen voor delivery truck */
.general-context-box .icon-decoration::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 18px;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--tty-text-muted), var(--tty-text-muted) 5px, transparent 5px, transparent 10px);
    opacity: 0.3;
    animation: roadMove 1s linear infinite;
}


@keyframes roadMove {
    0% {
        transform: translateX(-50%) translateX(0);
    }

    100% {
        transform: translateX(-50%) translateX(-10px);
    }
}

/* Alternative truck style met wielen effect */
.icon-decoration.wheels-effect::before {
    content: '◦◦';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    color: var(--tty-text-muted);
    letter-spacing: 8px;
    animation: wheelsSpin 2s linear infinite;
}

@keyframes wheelsSpin {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 0.3;
    }
}

/* General Context Info */
.general-context-info {
    flex: 1;
}

.general-context-info h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: var(--tty-text-primary);
    font-weight: 600;
}

.context-description {
    margin: 0;
    font-size: 15px;
    color: var(--tty-text-muted);
    line-height: 1.4;
}

/* Search Wrapper */
.country-search-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 280px;
}

.country-search-wrapper .country-search-input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid var(--tty-border-light);
    border-radius: 25px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: var(--tty-bg-primary);
}

.country-search-wrapper .search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tty-text-muted);
    font-size: 16px;
    pointer-events: none;
}

.country-search-wrapper .country-search-input:focus {
    outline: none;
    border-color: var(--tty-primary);
    box-shadow: 0 0 0 3px rgba(0, 95, 95, 0.1);
}

.country-search-wrapper .country-search-input:focus+.search-icon {
    color: var(--tty-primary);
}

/* Background Pattern */
.general-context-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 95, 95, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .general-context-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .country-search-wrapper {
        width: 100%;
        margin-top: 15px;
    }

    .context-icon-wrapper {
        margin-bottom: 15px;
    }
}

/* Dark Mode Support */
[data-theme="dark"] .general-context-box {
    background: linear-gradient(135deg, var(--tty-bg-secondary) 0%, rgba(255, 255, 255, 0.02) 100%);
}

[data-theme="dark"] .context-icon {
    background: var(--tty-primary-dark);
}

[data-theme="dark"] .country-search-wrapper .country-search-input {
    background-color: var(--tty-bg-secondary);
    border-color: var(--tty-border-medium);
}

/* Hover Effects */
.general-context-box:hover .context-icon {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.general-context-box:hover .icon-decoration i {
    animation-duration: 1.5s;
}

/* Alternative Icon Styles (je kunt kiezen) */

/* Optie 2: Map Pin Style */
.context-icon.map-style {
    background: linear-gradient(135deg, var(--tty-primary) 0%, var(--tty-primary-dark) 100%);
}

.context-icon.map-style i.fa-map-marked-alt {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Optie 3: Shipping Box Style */
.context-icon.shipping-style {
    background: var(--tty-secondary);
}

.context-icon.shipping-style i.fa-shipping-fast {
    animation: moveRight 3s ease-in-out infinite;
}

@keyframes moveRight {

    0%,
    100% {
        transform: translateX(-2px);
    }

    50% {
        transform: translateX(2px);
    }
}


/* No Available Countries Message */
.no-available-countries {
    text-align: center;
    padding: 40px 20px;
    color: var(--tty-text-muted, #666);
    grid-column: 1 / -1;
}

.no-available-countries i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-available-countries p {
    margin: 0;
    font-size: 16px;
}


.tty-header-top-left.tty-header-top-buttons .country-selector i {
    margin-right: 4px;
}

.general-context-box-search-button img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.general-context-box-search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--tty-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: none;
    width: 34px;
    height: 34px;
}

.tty-header-top .country-selector label {
    color: #ffffff;
    font-size: 12px;
    font-weight: 400;
    margin: 0;
    white-space: nowrap;
    opacity: 0.9;
    cursor: pointer;
}

.tty-header-top .country-selector i {
    margin-left: 4px;
}

.country-grid-item .status-icon {
    display: none !important;
    /* Force hide by default */
    position: absolute;
    right: 10px;
    font-size: 20px;
}

/* Alleen tonen wanneer er een specifieke state is */
.country-grid-item.checking .status-icon,
.country-grid-item.active .status-icon.fa-check-circle,
.country-grid-item .status-icon.fa-check-circle,
.country-grid-item .status-icon.fa-times-circle {
    display: block !important;
}

#tty-country-popup .info-content {
    background-color: var(--tty-bg-secondary);
    padding: 25px;
    border-radius: 15px;
}

.info-section.text-success {
    border-left: 3px solid #29ae5d;
}

.info-section.text-danger {
    border-left: 3px solid #dc3545;
}

.info-section.text-warning {
    border-left: 3px solid #c6a80a;
}

.fas.fa-exclamation-circle.text-warning {
    color: #c6a80a;
}

/* Header Select2 Container */
.tty-header-top .select2-container {
    min-width: 120px !important;
    max-width: 180px !important;
}

.tty-header-top .select2-container .select2-selection--single {
    height: 32px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tty-header-top .select2-container .select2-selection--single:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.tty-header-top .select2-container--focus .select2-selection--single,
.tty-header-top .select2-container--open .select2-selection--single {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

/* Header Selection Text */
.tty-header-top .select2-selection__rendered {
    color: #ffffff;
    font-size: 13px;
    line-height: 30px;
    padding: 0 32px 0 10px;
}

/* Header Arrow */
.tty-header-top .select2-selection__arrow {
    height: 30px;
    right: 8px;
    top: 1px;
}

.tty-header-top .select2-selection__arrow b {
    border-color: rgba(255, 255, 255, 0.8) transparent transparent transparent;
    border-width: 4px 3px 0 3px;
}

.tty-header-top .select2-container--open .select2-selection__arrow b {
    border-color: transparent transparent rgba(255, 255, 255, 0.8) transparent;
    border-width: 0 3px 4px 3px;
}

/* Header Country Selection Display */
.tty-header-top .tty-country-selection {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 30px;
}

.tty-header-top .tty-modal-country-flag-small {
    width: 20px;
    height: 15px;
    margin-right: 6px;
    opacity: 0.9;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}


/* Header Dropdown */
.tty-header-top .tty-modal-select2-dropdown {
    margin-top: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Override dropdown parent for header */
.tty-header-top .select2-container--open .select2-dropdown {
    left: auto !important;
    right: auto !important;
}

/* Header Search Field */
.tty-header-top+.tty-modal-select2-dropdown .select2-search__field,
.select2-container--default .select2-dropdown .select2-search__field {
    font-size: 13px;
    padding: 8px 10px;
}

/* Header Country Options */
.tty-header-top+.tty-modal-select2-dropdown .tty-modal-country-option {
    padding: 8px 12px;
}

.tty-header-top+.tty-modal-select2-dropdown .tty-modal-country-flag {
    width: 24px;
    height: 18px;
}

.tty-header-top+.tty-modal-select2-dropdown .tty-modal-country-name {
    font-size: 13px;
}

/* Responsive voor header */
@media (max-width: 1200px) {
    .tty-header-top .country-selector label {
        display: none;
        /* Verberg label op kleinere schermen */
    }

    .tty-header-top .select2-container {
        min-width: 100px !important;
    }
}

@media (max-width: 768px) {
    .tty-header-top .country-selector {
        position: relative;
        order: -1;
        /* Plaats voor andere header items */
    }

    .tty-header-top .select2-container {
        min-width: 80px !important;
        max-width: 120px !important;
    }

    .tty-header-top .select2-selection__rendered {
        font-size: 12px;
        padding-right: 28px;
    }

    .tty-header-top .tty-modal-country-flag-small {
        width: 16px;
        height: 12px;
    }
}

/* Dark header variant (als je header donker is) */
.tty-header-top.dark-header .select2-selection__rendered {
    color: #ffffff;
}

/* Light header variant (als je header licht is) */
.tty-header-top.light-header .country-selector label {
    color: var(--tty-text-primary, #121212);
}

.tty-header-top.light-header .select2-container .select2-selection--single {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.tty-header-top.light-header .select2-selection__rendered {
    color: var(--tty-text-primary, #121212);
}

.tty-header-top.light-header .select2-selection__arrow b {
    border-color: var(--tty-text-primary, #121212) transparent transparent transparent;
}

.tty-header-top.light-header .select2-container--open .select2-selection__arrow b {
    border-color: transparent transparent var(--tty-text-primary, #121212) transparent;
}

/* Fix voor z-index issues in header */
.tty-header-top .select2-container {
    z-index: 1000;
}

.tty-header-top .select2-container--open .select2-dropdown {
    z-index: 9999;
}

/* Smooth transitions */
.tty-header-top .select2-container .select2-selection--single,
.tty-header-top .select2-selection__arrow b {
    transition: all 0.2s ease;
}

/* Focus visibility voor accessibility */
.tty-header-top .select2-container--focus .select2-selection--single {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 1px;
}

/* Print styles */
@media print {
    .tty-header-top .country-selector {
        display: none !important;
    }
}



/* Base Country Selector Container */
.country-selector {
    display: flex;
    width: fit-content;
    align-items: center;
    margin-top: -2px;
    gap: 12px;
}

.country-selector label {
    white-space: nowrap;
    color: var(--tty-text-light);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

/* ============================================
   Select2 Transtoyou Styling
   ============================================ */

/* Select2 Container */
.country-selector .select2-container {
    width: 100% !important;
    min-width: 200px;
}

.country-selector .tty-select2-container .select2-selection--single {
    height: 40px;
    border: 1px solid var(--tty-border-light, #eaeaea);
    border-radius: var(--tty-radius-sm, 8px);
    background-color: var(--tty-bg-primary, #ffffff);
    padding: 0;
    display: flex;
    align-items: center;
    transition: var(--tty-transition-fast, all 0.2s ease);
    cursor: pointer;
    position: relative;
}

/* Hover State */
.country-selector .tty-select2-container .select2-selection--single:hover {
    border-color: var(--tty-primary, #005F5F);
    background-color: var(--tty-bg-secondary, #f9f9f9);
}

/* Focus State */
.country-selector .select2-container--focus .select2-selection--single,
.country-selector .select2-container--open .select2-selection--single {
    border-color: var(--tty-primary, #005F5F);
    box-shadow: 0 0 0 3px rgba(0, 95, 95, 0.1);
    outline: none;
}

/* Selection Rendered */
.country-selector .select2-selection__rendered {
    padding: 0 40px 0 12px !important;
    line-height: 38px !important;
    color: var(--tty-text-primary, #121212) !important;
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Arrow */
.country-selector .select2-selection__arrow {
    height: 38px;
    position: absolute;
    top: 1px;
    right: 12px;
    width: 20px;
}

.country-selector .select2-selection__arrow b {
    border-color: var(--tty-text-secondary, #555) transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    height: 0;
    left: 50%;
    margin-left: -4px;
    margin-top: -2px;
    position: absolute;
    top: 50%;
    width: 0;
    transition: var(--tty-transition-fast, all 0.2s ease);
}

.country-selector .select2-container--open .select2-selection__arrow b {
    border-color: transparent transparent var(--tty-text-secondary, #555) transparent;
    border-width: 0 4px 5px 4px;
}

/* ============================================
   Select2 Dropdown Styling
   ============================================ */

.tty-modal-select2-dropdown {
    border: 1px solid var(--tty-border-light, #eaeaea);
    border-radius: var(--tty-radius-sm, 8px);
    box-shadow: var(--tty-shadow-md, 0px 4px 11px rgba(0, 0, 0, 0.1));
    overflow: hidden;
    background-color: var(--tty-bg-primary, #ffffff);
    margin-top: 4px;
}

/* Search Field */
.tty-modal-select2-dropdown .select2-search__field {
    border: 1px solid var(--tty-border-light, #eaeaea);
    border-radius: var(--tty-radius-sm, 8px);
    padding: 10px 12px;
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    margin: 8px;
    width: calc(100% - 16px);
    transition: var(--tty-transition-fast, all 0.2s ease);
}

.tty-modal-select2-dropdown .select2-search__field:focus {
    border-color: var(--tty-primary, #005F5F);
    box-shadow: 0 0 0 3px rgba(0, 95, 95, 0.1);
    outline: none;
}

/* Results Container */
.tty-modal-select2-dropdown .select2-results__options {
    max-height: 300px;
    overflow-y: auto;
    padding: 4px 0;
}

/* Country Option */
.tty-modal-country-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: var(--tty-transition-fast, all 0.2s ease);
}

/* Country Flag */
.tty-modal-country-flag {
    width: 32px;
    height: 24px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.tty-modal-country-flag-small {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Country Name */
.tty-modal-country-name,
.tty-country-name {
    font-size: 14px;
    color: var(--tty-text-primary, #121212);
    font-weight: 400;
}

/* Option States */
.select2-results__option {
    padding: 0;
    margin: 0;
}

.select2-results__option--highlighted {
    background-color: var(--tty-primary-bg, #edf7f5);
    color: var(--tty-primary, #005F5F);
}

.select2-results__option--highlighted .tty-modal-country-name {
    color: var(--tty-primary, #005F5F);
    font-weight: 500;
}

.select2-results__option--selected {
    background-color: var(--tty-bg-secondary, #edf4f6);
}

.select2-results__option--selected .tty-modal-country-name {
    font-weight: 600;
}

.select2-results__option[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Selection Display */
.tty-country-selection {
    display: flex;
    align-items: center;
}

/* No Results Message */
.select2-results__message {
    padding: 16px;
    text-align: center;
    color: var(--tty-text-muted, #56778f);
    font-size: 14px;
}

/* ============================================
   Shipping Messages & Loader
   ============================================ */

.not-available-countries,
.shipping-availability-message {
    margin: 1em 0;
    padding: 1em;
    border-radius: var(--tty-radius-sm, 8px);
    display: none;
    animation: slideIn 0.3s ease-out;
}

.not-available-countries p,
.shipping-availability-message p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.not-available-countries i,
.shipping-availability-message i {
    font-size: 18px;
}

.not-available-countries.error,
.shipping-availability-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.shipping-availability-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Shipping Message Toast */
.shipping-message {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    padding: 16px 20px;
    border-radius: var(--tty-radius-sm, 8px);
    box-shadow: var(--tty-shadow-md, 0px 4px 11px rgba(0, 0, 0, 0.1));
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    animation: slideInRight 0.3s ease-out;
}

.shipping-message.error {
    background-color: #dc3545;
    color: white;
}

.shipping-message.success {
    background-color: #28a745;
    color: white;
}

.shipping-message i {
    font-size: 20px;
}

/* Loading State */
.single_add_to_cart_button.loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.single_add_to_cart_button.loading:after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: rotate 0.6s linear infinite;
    position: absolute;
    right: 10px;
    top: 50%;
    margin-top: -8px;
}

/* Shipping Loader Overlay */
.shipping-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    animation: fadeIn 0.2s forwards;
}

.country-filter-toggle span {
    color: var(--tty-text-muted);
}

.country-filter-toggle {
    display: flex;
    gap: 5px;
    font-size: 12px;
    justify-content: center;
    flex-direction: column;
    align-items: end;
    opacity: 0;
    animation: fadeInToggle 0.3s ease-out 0.1s forwards;
}

@keyframes fadeInToggle {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.country-grid-item[data-available="false"] {
    opacity: 0.6;
}

.country-grid-item[data-available="false"]:hover {
    opacity: 1;
}

/* Tooltip styling */
.status-icon[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
    font-size: 14px;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--tty-primary, #005F5F);
    border-radius: 50%;
    animation: rotate 1s linear infinite;
    margin: 0 auto 16px;
}

.loader-text {
    color: var(--tty-text-primary, #121212);
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* ============================================
   Dark Mode Support
   ============================================ */

[data-theme="dark"] .country-selector label {
    color: var(--tty-text-primary, #f0f0f0);
}

[data-theme="dark"] .country-selector .tty-select2-container .select2-selection--single {
    background-color: var(--tty-bg-secondary, #1e2a2e);
    border-color: var(--tty-border-medium, #2e2e2e);
}

[data-theme="dark"] .country-selector .select2-selection__rendered {
    color: var(--tty-text-primary, #f0f0f0);
}

[data-theme="dark"] .country-selector .select2-selection__arrow b {
    border-color: var(--tty-text-primary, #f0f0f0) transparent transparent transparent;
}

[data-theme="dark"] .country-selector .select2-container--open .select2-selection__arrow b {
    border-color: transparent transparent var(--tty-text-primary, #f0f0f0) transparent;
}

[data-theme="dark"] .tty-modal-select2-dropdown {
    background-color: var(--tty-bg-secondary, #1e2a2e);
    border-color: var(--tty-border-medium, #2e2e2e);
}

[data-theme="dark"] .tty-modal-select2-dropdown .select2-search__field {
    background-color: var(--tty-bg-primary, #121212);
    border-color: var(--tty-border-medium, #2e2e2e);
    color: var(--tty-text-primary, #f0f0f0);
}

[data-theme="dark"] .select2-results__option {
    color: var(--tty-text-primary, #f0f0f0);
}

[data-theme="dark"] .select2-results__option--highlighted {
    background-color: var(--tty-primary-dark, #004747);
    color: var(--tty-text-light, #ffffff);
}

[data-theme="dark"] .tty-modal-country-name,
[data-theme="dark"] .tty-country-name {
    color: inherit;
}

[data-theme="dark"] .shipping-conflict-popup .popup-content {
    background-color: var(--tty-bg-primary, #121212);
    color: var(--tty-text-primary, #f0f0f0);
}

[data-theme="dark"] .popup-header {
    border-bottom-color: var(--tty-border-medium, #2e2e2e);
}

[data-theme="dark"] .conflict-item {
    background-color: var(--tty-bg-secondary, #1e2a2e);
    border-color: var(--tty-border-medium, #2e2e2e);
}

[data-theme="dark"] .popup-actions {
    border-top-color: var(--tty-border-medium, #2e2e2e);
}

/* ============================================
   Animations
   ============================================ */

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .country-selector {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 8px;
    }

    .country-selector label {
        font-size: 16px;
    }

    .country-selector .select2-container {
        min-width: 100%;
    }

    .country-selector .tty-select2-container .select2-selection--single {
        height: 48px;
        font-size: 16px;
        /* Voorkom zoom op iOS */
    }

    .country-selector .select2-selection__rendered {
        line-height: 46px;
        font-size: 16px;
    }

    .shipping-message {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .shipping-conflict-popup .popup-content {
        width: 95%;
        margin: 10px;
    }

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

    .popup-actions .button {
        width: 100%;
    }

    .conflict-item {
        flex-direction: column;
        text-align: center;
    }

    .item-image img {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }
}

/* Header Specific Styles */
.country_selector_header {
    position: relative;
}

.country_selector_header .select2-dropdown.select2-dropdown--below {
    margin-top: 16px;
}

.country_selector_header #select2-shipping_country-container {
    line-height: 28px !important;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .country-selector .tty-select2-container .select2-selection--single {
        border-width: 2px;
    }

    .shipping-availability-message,
    .shipping-message,
    .conflict-item {
        border-width: 2px;
    }
}

/* Print Styles */
@media print {

    .country-selector,
    .shipping-loader,
    .shipping-conflict-popup {
        display: none !important;
    }
}

/* Country Display Button */
.country-display-button {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    gap: 5px;
    padding: 2px 8px 2px 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--tty-transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
    color: var(--tty-text-light);
}

.country-display-button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}


.country-display-button:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.country-flag-display {
    width: 20px !important;
    height: 20px !important;
    object-fit: cover;
    border-radius: 50%;
}

/* Country Popup - Match TTY Currency/Language Style */
.tty-country-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: none;
}

/* Overlay - Same as tty-clc-overlay */
.tty-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.tty-country-popup.open .tty-popup-overlay,
.tty-country-popup.visible .tty-popup-overlay {
    opacity: 1;
}

/* Popup Content - Match tty-clc-popup style */
.tty-popup-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: var(--tty-bg-primary, #ffffff);
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    max-width: 830px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tty-country-popup.open .tty-popup-content {
    transform: translate(-50%, -50%) scale(0.95);
}

.tty-country-popup.visible .tty-popup-content {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Popup Header - Match tty-clc-header */
.tty-popup-header {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--tty-border-light);
}

.tty-popup-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--tty-primary, #005F5F);
}

/* Close Button - Match tty-clc-close */
.tty-popup-close {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--tty-animation-normal) ease;
    color: var(--tty-text-secondary, #666);
    font-size: 20px;
    position: relative;
    overflow: hidden;
    min-width: 44px;
    min-height: 44px;
}

.tty-popup-close::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #ff4444;
    transform: scale(0);
    transition: transform var(--tty-animation-normal) ease;
    border-radius: 50%;
}

.tty-popup-close:hover {
    color: white;
    transform: rotate(90deg);
}

.tty-popup-close:hover::before {
    transform: scale(1);
}

.tty-popup-close i {
    position: relative;
    z-index: 1;
}


/* Tabs - Match tty-clc-tabs */
.tty-popup-tabs {
    display: flex;
    gap: 15px;
    margin: 15px 0px -20px 0px;
}

.tty-tab {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 17px;
    color: var(--tty-text-secondary);
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.tty-tab:hover {
    color: var(--tty-primary, #005F5F);
}

.tty-tab.active {
    color: var(--tty-primary, #005F5F);
    border-bottom-color: var(--tty-secondary, #E5924C);
}

/* Tab Content */
.tty-popup-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.tty-tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.tty-tab-content.active {
    display: block;
    opacity: 1;
    animation: tabFadeIn 0.3s ease-in-out;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Search Box */
.country-search-box {
    margin-bottom: 20px;
}

.country-search-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--tty-border-light, #eaeaea);
    border-radius: 15px;
    font-size: 16px;
    font-family: 'Figtree', sans-serif;
    transition: all 0.3s ease;
    background-color: var(--tty-bg-primary, #ffffff);
}

.country-search-input:focus {
    outline: none;
    border-color: var(--tty-primary, #005F5F);
    box-shadow: 0 0 0 3px rgba(0, 95, 95, 0.1);
}

/* Countries Grid - Match tty-clc-grid */
.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    transition: all 0.2s ease;
    position: relative;
}

/* Country Grid Item - Match tty-clc-language-item */
.country-grid-item {
    height: 74px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 2px solid var(--tty-border-light, #eaeaea);
    border-radius: 15px;
    cursor: pointer;
    position: relative;
    background-color: var(--tty-bg-primary, #ffffff);
    /* Enhanced transitions - SNELLER */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.15s ease,
        transform 0.15s ease,
        filter 0.15s ease;
    overflow: hidden;
    transform-origin: center;
    opacity: 1;
    transform: scale(1) translateY(0);
    transform: scale(1) translateY(0);
}


/* Staggered animation for country items */
.countries-grid[data-filtering="true"] .country-grid-item {
    animation: pulseFilter 0.2s ease-out;
}

@keyframes pulseFilter {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.98);
    }

    100% {
        transform: scale(1);
    }
}

/* Hidden state with smooth transitions */
.country-grid-item.filtering-out {
    animation: filterOut 0.15s ease-out forwards;
    pointer-events: none;
}

@keyframes filterOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0px);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.95) translateY(-5px);
        filter: blur(2px);
    }

    100% {
        opacity: 0;
        transform: scale(0.9) translateY(-10px);
        filter: blur(4px);
        height: 0;
        padding: 0 20px;
        margin-bottom: 0;
        border-width: 0;
    }
}

/* Showing state with smooth transitions */
.country-grid-item.filtering-in {
    animation: none;
    /* Geen keyframe animatie, gebruik CSS transitions */
    opacity: 1 !important;
    transform: scale(1) translateY(0) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@keyframes filterIn {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(5px);
        filter: blur(2px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0px);
    }
}

/* Grid reorganization animation */
.countries-grid.filtering {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Van 0.5s naar 0.3s */
}


/* No results message with animation */
.no-available-countries {
    text-align: center;
    padding: 40px 20px;
    color: var(--tty-text-muted, #666);
    grid-column: 1 / -1;
    opacity: 0;
    animation: fadeInMessage 0.3s ease-out 0.1s forwards;
    /* Sneller */
}

@keyframes fadeInMessage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Enhanced toggle switch for filter */
.country-filter-toggle .tty-toggle-switch {
    transform: scale(0.9);
    transition: transform 0.15s ease;
}

.country-filter-toggle .tty-toggle-switch:hover {
    transform: scale(0.95);
}

/* Smooth hover states during filtering */
.country-grid-item:not(.filtering-out):hover {
    border-color: var(--tty-primary);
    background-color: var(--tty-bg-tertiary);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.country-grid-item.filtering-out img {
    transform: scale(0.8);
    opacity: 0.5;
}

.country-grid-item.filtering-in img {
    animation: quickScale 0.2s ease-out;
    /* Simpele, snelle animatie */
}

@keyframes quickScale {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}


/* Status icon animations during filter */
.country-grid-item .status-icon {
    transition: all 0.15s ease;
}

.country-grid-item.filtering-out .status-icon {
    transform: scale(0) rotate(90deg);
    opacity: 0;
}

/* Improved mobile experience */
@media (max-width: 768px) {
    .countries-grid {
        gap: 10px;
    }

    .country-grid-item {
        min-height: 70px;
        padding: 12px;
    }

    /* Faster animations on mobile */
    .country-grid-item.filtering-out,
    .country-grid-item.filtering-in {
        animation-duration: 0.1s;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    .country-grid-item,
    .country-grid-item.filtering-out,
    .country-grid-item.filtering-in {
        animation: none !important;
        transition: opacity 0.2s ease !important;
    }

    .country-grid-item.filtering-out {
        opacity: 0;
        display: none;
    }

    .country-grid-item.filtering-in {
        opacity: 1;
    }
}

/* Dark theme adjustments */
[data-theme="dark"] .country-grid-item.filtering::before {
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
}

[data-theme="dark"] .country-grid-item:not(.filtering-out):hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}


.country-grid-item:hover {
    border-color: var(--tty-primary, #005F5F);
    background-color: var(--tty-bg-tertiary, #f5f5f5);
}

.country-grid-item.active {
    border-color: var(--tty-primary, #005F5F);
    background-color: var(--tty-primary-bg, #edf7f5);
}

/* Country Flag - Circle style like language flags */
.country-grid-item img {
    width: 40px !important;
    height: 40px !important;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--tty-bg-primary, #ffffff);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.country-grid-item:hover img {
    border-color: #29ae5d;
    transform: scale(1.05);
    background: #29ae5d;
    animation: pulse-border 2s infinite;
}

.country-grid-item.unavailable:hover img {
    border-color: var(--tty-error);
}

.country-grid-item.active.unavailable {
  border-color: var(--tty-error) !important;
  border: dotted;
}

.tty-clc-language-item .status-icon{
    top: unset;
}

.text-success {
    color: #29ae5d;
}

#tty-country-popup .info-content {
    flex-direction: column;
    gap: 0px;
    max-width: 100%;
}

.text-danger {
    color: #dc3545;
}

/* Info Tab Content */
.info-content {
    max-width: 600px;
    margin: 0 auto;
}

.info-content h4 {
    color: var(--tty-primary, #005F5F);
    margin-bottom: 15px;
    font-size: 20px;
    margin: 0px;
}

.info-content p {
    color: var(--tty-text-secondary, #666);
    line-height: 1.6;
    margin-bottom: 20px;
}

.info-section {
    background: var(--tty-bg-secondary, #f9f9f9);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
}

.info-section h5 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0px;
    font-size: 17px;
    color: var(--tty-text-primary, #121212);
}

.info-section p {
    margin: 0;
    font-size: 14px;
}

/* Loading State */
.country-grid-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .tty-popup-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 20px;
    }

    .countries-grid {
        grid-template-columns: 1fr;
    }

    .tty-popup-tabs {
        gap: 10px;
        overflow-x: auto;
    }

    .tty-tab {
        padding: 12px 15px;
        font-size: 14px;
    }

    .tty-tab span {
        display: none;
    }

    .tty-tab i {
        font-size: 18px;
    }
}

/* Animations */
@keyframes pulse-border-green {
    0% {
        box-shadow: 0 0 0 0 rgba(41, 174, 93, 0.7) !important;
    }

    70% {
        box-shadow: 0 0 0 10px rgba(41, 174, 93, 0) !important;
    }

    100% {
        box-shadow: 0 0 0 0 rgba(41, 174, 93, 0) !important;
    }
}


/* Body scroll prevention */
body.tty-popup-open {
    overflow: hidden;
}


/* ============================================
   Language Context Box Animation
   ============================================ */

.dl-context-box {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, var(--tty-bg-secondary) 0%, rgba(0, 95, 95, 0.05) 100%);
    border-radius: var(--tty-radius-md);
    margin-bottom: 20px;
    align-items: center;
    border: 1px solid var(--tty-border-light);
    position: relative;
    overflow: hidden;
}


.dl-context-box[data-context="language"] .context-icon i {
    font-size: 42px;
    animation: rotate 30s linear infinite;
}

.dl-context-box[data-context="language"] .icon-decoration {
    background: var(--tty-secondary);
}

.dl-context-box[data-context="language"] .icon-decoration i {
    font-size: 16px;
    animation: speechBubble 3s ease-in-out infinite;
    margin-top: 4px;
}

@keyframes speechBubble {

    0%,
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }

    50% {
        transform: scale(1.1) translateY(-2px);
        opacity: 0.8;
    }
}

.dl-context-box[data-context="currency"] .context-icon i {
    font-size: 42px;
    animation: none;
}

@keyframes coinFlip {

    0%,
    100% {
        transform: rotateY(0);
    }

    25% {
        transform: rotateY(180deg);
    }

    50% {
        transform: rotateY(360deg);
    }

    75% {
        transform: rotateY(540deg);
    }
}

.dl-context-box[data-context="currency"] .icon-decoration i {
    font-size: 14px;
    animation: currencyFloat 3s ease-in-out infinite;
}

@keyframes currencyFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    25% {
        transform: translateY(-3px) scale(1.1);
    }

    50% {
        transform: translateY(0) scale(1);
    }

    75% {
        transform: translateY(3px) scale(0.9);
    }
}

/* Currency symbols floating around */
.dl-context-box[data-context="currency"] .icon-decoration::before,
.dl-context-box[data-context="currency"] .icon-decoration::after {
    position: absolute;
    font-family: Arial, sans-serif;
    font-weight: bold;
    color: var(--tty-text-muted);
    opacity: 0.4;
    animation: symbolFloat 5s linear infinite;
}

.dl-context-box[data-context="currency"] .icon-decoration::before {
    content: '$';
    top: -15px;
    right: 10px;
    font-size: 14px;
    animation-delay: -0.5s;
}

.dl-context-box[data-context="currency"] .icon-decoration::after {
    content: '€';
    bottom: -25px;
    right: -10px;
    font-size: 14px;
    animation-delay: -2.5s;
}

@keyframes symbolFloat {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.4;
    }

    90% {
        opacity: 0.4;
    }

    100% {
        transform: translateX(50px) translateY(-50px) rotate(360deg);
        opacity: 0;
    }
}

/* Extra currency symbol */
.dl-context-box[data-context="currency"]::before {
    content: '£';
    position: absolute;
    top: 20px;
    right: 100px;
    font-size: 20px;
    color: var(--tty-text-muted);
    opacity: 0.2;
    animation: symbolDrift 8s linear infinite;
}

@keyframes symbolDrift {
    0% {
        transform: translateX(0) translateY(0) scale(1);
        opacity: 0;
    }

    20% {
        opacity: 0.2;
    }

    80% {
        opacity: 0.2;
    }

    100% {
        transform: translateX(-100px) translateY(50px) scale(0.8);
        opacity: 0;
    }
}

/* Hover effects voor context boxes */
.dl-context-box:hover .context-icon {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.dl-context-box[data-context="language"]:hover .icon-decoration i {
    animation-duration: 1.5s;
}

.dl-context-box[data-context="currency"]:hover .context-icon i {
    animation-duration: 2s;
}

/* Background pattern voor language */
.dl-context-box[data-context="language"]::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 95, 95, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .dl-context-box {
        padding: 20px;
    }

    .dl-context-box .context-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .dl-context-box .context-icon {
        width: 60px;
        height: 60px;
    }

    .dl-context-box .context-icon i {
        font-size: 28px;
    }

    .dl-context-box .icon-decoration {
        width: 24px;
        height: 24px;
        top: -3px;
        right: -3px;
    }

    .dl-context-box .icon-decoration i {
        font-size: 12px;
    }
}

/* Dark mode support */
[data-theme="dark"] .dl-context-box {
    background: linear-gradient(135deg, var(--tty-bg-secondary) 0%, rgba(255, 255, 255, 0.02) 100%);
}


.product-context-image {
    flex-shrink: 0;
    height: 80px;
    width: 80px;
}

.product-context-image img {
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: var(--tty-radius-sm);
    border: 1px solid var(--tty-border-light);
}

.product-context-info {
    flex: 1;
}

.product-context-info h4,
.dl-context-info h4 {
    margin: 0px;
    font-size: 18px;
    color: var(--tty-text-primary);
}

.product-context-info .variant-info {
    margin: 0 0 7px 0;
    font-size: 14px;
    color: var(--tty-text-muted);
}

.product-context-info .delivery-hint,
.dl-context-info .dl-context-hint {
    margin: 0;
    font-size: 14px;
    color: #767575;
}


/* Delivery Status */
.delivery-status span {
    display: flex;
    white-space: nowrap;
    font-size: 12px !important;
}

.status-checking {
    color: var(--tty-text-muted);
}

.status-available {
    color: #29ae5d;
}

.status-unavailable {
    color: var(--tty-error);
}


.status-icon.fa-check-circle {
    color: #29ae5d;
}

.status-icon.fa-times-circle {
    color: var(--tty-error);
}

/* Hover States */
.country-grid-item:hover {
    border-color: var(--tty-primary);
    background-color: var(--tty-bg-tertiary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


/* Active/Selected State */
.country-grid-item.active {
    border-color: var(--tty-primary);
    background-color: var(--tty-primary-bg);
}

.country-grid-item.active img {
    border-color: #29ae5d;
    background: #29ae5d;
    animation: pulse-border 2s infinite;
}

/* Unavailable State */
.country-grid-item.unavailable {
    opacity: 0.7;
}

.country-grid-item.available .country-name {
    font-weight: 500;
    font-size: 17px;
}

.country-grid-item.available {
    background-color: var(--tty-primary-bg);
    border-color: #a6c9b4;
}

.country-grid-item.active.available {
  border-color: var(--tty-primary) !important;
}

.country-grid-item.unavailable:hover {
    opacity: 1;
    border-color: var(--tty-error);
    background-color: rgba(var(--tty-error-rgb), 0.05);
}

/* Loading State */
.country-grid-item.checking .delivery-status {
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .countries-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .country-grid-item {
        padding: 12px;
        min-height: 120px;
    }

    .product-context-box {
        flex-direction: column;
        text-align: center;
    }
}

/* Skeleton loaders */
.tty-skeleton-loader {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    padding: 15px;
}

.tty-skeleton-language-item,
.tty-skeleton-currency-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-flag,
.skeleton-symbol {
    width: 40px;
    height: 30px;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-symbol {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.skeleton-text {
    flex: 1;
}

.skeleton-line-1,
.skeleton-line-2 {
    height: 12px;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-line-1 {
    width: 70%;
    margin-bottom: 8px;
}

.skeleton-line-2 {
    width: 50%;
}

@keyframes skeleton-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

#shipping-conflict-popup .warning-message .warning-icon i {
    color: #ffffff;
}

#shipping-conflict-popup .warning-message {
    display: flex;
    gap: 20px;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 28px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    align-items: center;
    background: rgba(254, 173, 15, 0.08);
    border: 1px solid rgba(254, 173, 15, 0.2);
    color: #856404;
}

#shipping-conflict-popup .warning-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #856404;
}

.tty-mobile-country-item .tty-mobile-country-check {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #29ae5d;
    font-size: 20px;
}

/* .status-icon.fas.fa-spinner.fa-spin.language-update-spinner {
    line-height: 0;
} */