/* Public Style for Country Switcher */
.trp-wcp-switcher-container {
    position: relative;
    display: inline-block;
    font-family: inherit;
    font-size: 14px;
    z-index: 9999;
}

/* Switcher Button Toggle */
.trp-wcp-switcher-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 30px;
    padding: 8px 16px;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease-in-out;
}

.trp-wcp-switcher-toggle:hover {
    border-color: #94a3b8;
    background: #f8fafc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.trp-wcp-current-flag {
    font-size: 18px;
    line-height: 1;
}

.trp-wcp-current-label {
    font-weight: 500;
    color: #334155;
}

.trp-wcp-chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
    margin-left: 4px;
    margin-top: -3px;
    transition: transform 0.2s;
}

/* Toggle rotate when open */
.wcp-open .trp-wcp-chevron {
    transform: rotate(-135deg);
    margin-top: 3px;
}

/* Dropdown Wrapper */
.trp-wcp-switcher-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 250px;
    max-height: 320px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    flex-direction: column;
}

/* Open state */
.wcp-open .trp-wcp-switcher-dropdown {
    display: flex;
}

/* Dropdown Header */
.trp-wcp-dropdown-header {
    background: #f8fafc;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.trp-wcp-dropdown-header h4 {
    margin: 0 !important;
    font-size: 13px !important;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Countries Scrollable List */
.trp-wcp-countries-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

.trp-wcp-countries-list li.list-heading {
    padding: 8px 16px 4px 16px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
}

.trp-wcp-countries-list li.list-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 6px 0;
}

/* Individual Item */
.trp-wcp-country-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 13px;
    color: #334155;
}

.trp-wcp-country-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.trp-wcp-country-item.active {
    background: #eef2ff;
    color: #4f46e5;
    font-weight: 600;
}

.country-flag {
    font-size: 16px;
}

.country-name {
    flex: 1;
}

.selected-checkmark {
    font-weight: bold;
    color: #4f46e5;
}

.wcp-item-spinner {
    font-size: 11px;
    color: #94a3b8;
    margin-left: 6px;
}

/* Fade effects for cache update */
.trp-wcp-price-container {
    transition: opacity 0.2s ease-in-out;
}
