/**
 * WPCR Exchange Rates Dropdown Styles (frontend)
 * Minimal styles required for [wpcr_dropdown] custom dropdown
 */

.wpcr-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 180px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
}

.wpcr-dropdown-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.wpcr-dropdown-selected:hover {
    background-color: #f6f7f7;
}

.wpcr-dropdown-selected:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.wpcr-dropdown-selected .wpcr-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    margin-right: 8px;
}

.wpcr-dropdown-selected .wpcr-code {
    flex: 1;
    font-weight: 500;
    color: #1d2327;
}

.wpcr-dropdown-selected .wpcr-arrow {
    color: #646970;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.wpcr-dropdown.wpcr-open .wpcr-dropdown-selected .wpcr-arrow {
    transform: rotate(180deg);
}

.wpcr-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.wpcr-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wpcr-dropdown-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.wpcr-dropdown-option:hover {
    background-color: #f6f7f7;
}

.wpcr-dropdown-option .wpcr-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    margin-right: 8px;
}

.wpcr-dropdown-option .wpcr-code {
    font-weight: 500;
    color: #1d2327;
}

.wpcr-code{
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wpcr-dropdown {
        max-width: 100%;
        margin-top: 20px;
    }
    
    .wpcr-dropdown-selected,
    .wpcr-dropdown-option {
        padding: 10px 12px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .wpcr-dropdown {
        border-color: #000;
    }
    
    .wpcr-dropdown-selected:hover,
    .wpcr-dropdown-option:hover {
        background-color: #000;
        color: #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .wpcr-dropdown-selected,
    .wpcr-dropdown-option,
    .wpcr-dropdown-selected .wpcr-arrow {
        transition: none;
    }
}

/* Asegura que todos los hijos también muestren la manito */
.wpcr-dropdown-option,
.wpcr-dropdown-option * {
    cursor: pointer !important;
}

.wpcr-dropdown-option img.wpcr-flag {
    max-width: 20px;
    max-height: 14px;
    pointer-events: none; /* 🔹 evita que la imagen bloquee el click */
}
/* Asegura que el dropdown siempre quede encima de otros menús */
.wpcr-dropdown-menu {
    position: absolute;   /* o relative, según tu estructura */
    z-index: 9999 !important;
}
.wpcr-dropdown {
    position: relative;
    z-index: 9999;
}


.wpcr-regular-price {
    position: relative;
    text-decoration: none !important;   /* desactivar tachado nativo */
    opacity: 0.6 !important;
  }
  
  .wpcr-regular-price::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;                 /* centra verticalmente */
    border-top: 2px solid #888;
    transform: translateY(-50%);
  }
  
