/* Wrapper cho mỗi instance */
.lcp-wrapper {
    position: relative;
    display: inline-block;
}

/* Button hiển thị ngôn ngữ và tiền tệ */
.lcp-current {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: transparent;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    gap: 6px;
}

.lcp-current:hover {
    background: #f8f9fa;
    border-color: #007cba;
}

.lcp-current .lcp-flag-svg {
    margin-right: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    width: 18px;
    height: 18px;
}

.lcp-current .lcp-flag-svg svg {
    width: 18px;
    height: 18px;
    border-radius: 100%;
}

.lcp-current .lcp-display-text {
    display: flex;
    align-items: center;
    font-size: 14px;
    white-space: nowrap;
    line-height: 1;
    gap: 4px;
}

/* Button additional styles */
.lcp-current.lang-currency.modal-selector.modal-selector-trigger.cta-button-ghost {
    background: #fff;
    border-radius: 14px;
    padding: 5px;
    color: #333;
    line-height: 1;
}

.lcp-current:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.lcp-lang, .lcp-currency {
    font-weight: 500;
}

.lcp-currency-symbol {
    font-weight: 600;
    margin-right: 2px;
    line-height: 1;
}

/* Popup overlay */
.lcp-popup {
    position: absolute; 
    top: 44px; 
    right: 0; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    z-index: 9999;
    width: fit-content;
}

/* Popup content */
.lcp-popup-inner {
    background: white; 
    padding: 37px 20px; 
    border-radius: 12px;
    width: 320px; 
    max-width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
}

/* Close button */
.lcp-close {
    float: right;
    background: transparent; 
    border: none; 
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    margin: 0 0 10px 0;
    position: absolute;
    top: 8px;
    right: 12px;
    line-height: 1;
}

.lcp-close:hover {
    color: #000;
}

/* Tabs */
.lcp-tabs {
    margin-bottom: 20px;
    overflow: hidden;
    background-color: #F8F8F8;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lcp-tabs button {
    background: none;
    border: none;
    padding: 8px 13px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #767676;
    text-transform: none;
    line-height: 1.7;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 50%;
    align-items: center;
    justify-content: center;
    margin-right: 0;
    border-radius: 20px;
    transition: all 0.3s ease;
}


.lcp-tabs button.active {
    color: #222222;
    background-color: #EEE8FF;
    border-radius: 20px;
}
.lcp-tabs button.active svg path{
    color: #222222;
    fill: #222222;
}

/* Content containers */
.lcp-content {
    max-height: 300px;
    overflow-y: auto;
}

/* Language links and currency buttons */
.lcp-content a,
.lcp-content button {
    display: block; 
    margin: 8px 0; 
    width: 100%;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    transition: all 0.3s ease;
}

/* Language links specific styling - Legacy (ẩn đi) */
.lcp-lang-link {
    display: none !important;
}

/* Currency buttons specific styling */
.lcp-currency-btn {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px !important;
    line-height: 1.4;
}

.lcp-currency-btn:hover {
    background: #e9ecef !important;
    border-color: #007cba !important;
    transform: none;
}

/* Currency item layout - 3 columns */
.currency-item,.language-item {
    display: flex;
    align-items: center;
    padding: 16px 5px;
    border-bottom: 1px solid #D8D8D8;
    cursor: pointer;
    transition: all 0.3s ease;
}

.currency-item:hover,
.language-item:hover {
    background: #e9ecef;
    border-color: #007cba;
}

.currency-item.active,
.language-item.active {
    border-color: #007cba;
}
.currency-item.active .radio-column input[type="radio"],
.language-item.active .radio-column input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #fff;
    box-shadow: 0 0 0 5px #0094FF;
    height: 5px;
    width: 5px;
    align-self: flex-end;
    margin-right: 4px;
}
.language-item .symbol-column {
    width: 32px;
    height: 32px;
    border-radius: 100%;
    overflow: hidden;
}
.language-item .symbol-column svg {
    width: 32px;
    height: 32px;
    border-radius: 100%;
    object-fit: cover;
    display: block;
}
/* Symbol column */
.symbol-column {
    width: 24px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.currency-symbol {
    font-size: 17px;
    font-weight: bold;
    color: #000000;
}

/* Info column */
.info-column {
    flex: 1;
    margin-left: 12px;
}

.title {
    font-size: 16px;
    font-weight: 700;
    color: #0C1941;
    margin-bottom: 2px;
}

.content {
    font-size: 16px;
    color: #222222;
    font-weight: 400;
    line-height: 1.5;
}

/* Radio column */
.radio-column {
    width: 24px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.radio-column input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Legacy currency button - ẩn đi */
.lcp-currency-btn {
    display: none !important;
}

/* Custom scrollbar */
.lcp-content::-webkit-scrollbar {
    width: 6px;
}

.lcp-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.lcp-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.lcp-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive */
@media (max-width: 480px) {
    .lcp-popup {
        position: fixed; 
        top: 0; 
        left: 0; 
        right: 0; 
        bottom: 0; 
        display: flex; 
        justify-content: center; 
        align-items: flex-start;
        z-index: 9999;
        width: auto;
        background-color: rgba(0, 0, 0, 0.4);
    }
    .lcp-popup-inner {
        width: 95%;
        padding: 20px;
        margin: 20px;
        position: relative;
        margin-top: 100px;
    }
    .lcp-close {
        position: absolute;
        top: 0;
        right: 10px;
        line-height: 1;
    }
    .lcp-tabs button {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    /* Responsive cho currency items */
    .currency-item,
    .language-item {
        padding: 10px 12px;
    }
    
    .symbol-column {
        width: 35px;
    }
    
    .currency-symbol,
    .language-symbol {
        font-size: 18px;
    }
    
    .language-symbol svg {
        width: 18px;
        height: 18px;
    }
    
    .info-column {
        margin-left: 10px;
    }
    
    .title {
        font-size: 15px;
    }
    
    .content {
        font-size: 13px;
    }
    
    .radio-column {
        width: 20px;
    }
    
    .radio-column input[type="radio"] {
        width: 16px;
        height: 16px;
    }
}

/* Combined wrapper styles */
.lcp-combined-wrapper {
    position: relative;
    display: inline-block;
}

.lcp-combined-wrapper .lcp-original-selectors {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
}

/* Ensure original selectors work behind the scenes */
.lcp-combined-wrapper .lcp-lang-selector,
.lcp-combined-wrapper .lcp-currency-selector {
    pointer-events: none;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Override any conflicting styles from original selectors */
.lcp-combined-wrapper .lcp-wrapper {
    position: relative;
    z-index: 1;
}
div[data-woocs-ver="2.4.2.3"] {
    z-index: 10 !important;
}
.product-currency {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: flex-start;
}
.product-currency .woocommerce-currency-switcher  {
    margin-bottom: 0;
    padding-right: 2.4em;
    border-radius: 14px;
}
.woocs_auto_switcher {
    display: none;
}
.single-product.woo-variation-swatches .product-variable .single_variation_wrap .woocommerce-variation.single_variation {
    top: 10px !important;
}
.single-product .gigago-product-content-style-2 .variations-price {
    top: 10px !important;
}

/* Debug/Reset utilities */
.lcp-debug-panel {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 999999;
    display: none;
}
.selectron23-option:hover {
    background-color: #ebebeb !important;
}
.lcp-debug-panel.show {
    display: block;
}

.lcp-reset-btn {
    background: #ff4444;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    margin: 2px;
}

.lcp-reset-btn:hover {
    background: #cc0000;
}

@media (max-width: 767px) {
    .single-product.woo-variation-swatches .product-variable .single_variation_wrap .woocommerce-variation.single_variation {
        top: 5px !important;
    }
}