/**
 * Lanyards Frontend Tier Pricing Styles
 * Stili per il sistema di tier pricing Lanyards
 * 
 * @version 1.0.0
 */

/* =============================================================================
   PRODUCT STATUS ICONS (ADMIN TABLE)
   ============================================================================= */

/* Icona WC base */
.wc-icon, 
[class*="wc-status"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
}

/* Stato: Prodotto caricato/sincronizzato */
.wc-synced,
.wc-icon.synced,
td:has(.fa-cart-shopping) {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
}

.wc-synced::after,
.wc-icon.synced::after {
    content: "✓";
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #4caf50;
    color: white;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Stato: Non sincronizzato/In attesa */
.wc-pending,
.wc-icon.pending {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    animation: pulse-pending 2s infinite;
}

@keyframes pulse-pending {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Stato: Errore */
.wc-error,
.wc-icon.error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.wc-error::after,
.wc-icon.error::after {
    content: "!";
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #f44336;
    color: white;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Hover effects per icone stato */
.wc-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
}

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

/* =============================================================================
   TIER PRICING CONTAINER
   ============================================================================= */

#lanyards-tier-pricing {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
    /* Removed animation to prevent opacity issues */
    display: block !important; /* Always visible */
    opacity: 1 !important;
    visibility: visible !important;
    width: 100%;
    box-sizing: border-box;
}

/* Override any class that tries to hide it */
#lanyards-tier-pricing.hide,
#lanyards-tier-pricing.hidden,
#lanyards-tier-pricing.lanyards-loading,
#lanyards-tier-pricing:not(.show) {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

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

/* =============================================================================
   QUANTITY SECTION
   ============================================================================= */

.lanyards-quantity-section {
    margin-bottom: 20px;
}

.lanyards-quantity-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

#lanyards-quantity-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background: white;
    transition: border-color 0.3s ease;
}

#lanyards-quantity-select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* =============================================================================
   PRICING INFO
   ============================================================================= */

.lanyards-pricing-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
    width: 100%;
}

.unit-price,
.total-price {
    text-align: center;
    padding: 25px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.unit-price {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #90caf9;
}

.total-price {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border: 2px solid #81c784;
}

.unit-price .label,
.total-price .label {
    display: block;
    font-size: 15px;
    color: #555;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.unit-price .price,
.total-price .price {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #1565c0;
    margin-bottom: 5px;
    line-height: 1;
}

.total-price .price {
    color: #1b5e20;
    font-size: 32px;
}

/* 🆕 AGGIUNTO: Supporto per prezzi prodotti semplici */
#lanyards-unit-price,
#lanyards-total-price,
#lanyards-simple-unit-price,
#lanyards-simple-total-price {
    /* Inherits from .price */
}

.per-piece {
    font-size: 13px;
    color: #666;
    font-style: italic;
    opacity: 0.8;
}

/* =============================================================================
   TIER INFO
   ============================================================================= */

#lanyards-tier-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
    display: none; /* Hidden by default */
}

#lanyards-tier-info h4 {
    margin: 0 0 10px 0;
    color: #856404;
}

#lanyards-tier-info p {
    margin: 0;
    color: #856404;
}

/* =============================================================================
   LOADING STATE
   ============================================================================= */

.lanyards-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.lanyards-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =============================================================================
   UPDATE ANIMATION
   ============================================================================= */

.lanyards-updated {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* =============================================================================
   ERROR MESSAGE
   ============================================================================= */

.lanyards-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

/* =============================================================================
   HIDE STANDARD ELEMENTS
   ============================================================================= */

/* Hide standard quantity input for Lanyards products */
.product[data-lanyards="1"] .quantity {
    display: none !important;
}

/* Hide ALL standard prices for Lanyards products */
body.single-product .summary .price,
body.single-product .summary .woocommerce-Price-amount,
body.single-product .summary p.price,
body.single-product .summary span.price {
    display: none !important;
}

/* =============================================================================
   UNIFORMA SELECT PRODOTTI SEMPLICI CON VARIANTI
   ============================================================================= */

#lanyards-quantity-select-simple {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    font-size: 16px;
    font-family: inherit;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

#lanyards-quantity-select-simple:hover {
    border-color: #007cba;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.15);
}

#lanyards-quantity-select-simple:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* =============================================================================
   ACCESSORIES SECTION - CHECKBOXES WITH EXPANDABLE DROPDOWN
   ============================================================================= */

.lanyards-accessories-section {
    margin-bottom: 20px;
}

.lanyards-accessories-section > label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.lanyards-buckle-dropdown-wrapper {
    position: relative;
}

.lanyards-accessories-checkboxes {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px 8px 0 0;
    padding: 15px;
    max-height: 200px; /* Shows 1 option + half of next */
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.lanyards-accessories-checkboxes.collapsed {
    max-height: 200px;
}

.lanyards-accessories-checkboxes.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,1) 100%);
    pointer-events: none;
}

.lanyards-accessories-checkboxes.expanded {
    max-height: 600px; /* Enough for many options */
}

.lanyards-accessories-checkboxes.expanded::after {
    display: none;
}

.lanyards-buckle-expand-btn {
    width: 100%;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    color: #007cba;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.lanyards-buckle-expand-btn:hover {
    background: #e9ecef;
    color: #005a87;
}

.lanyards-buckle-expand-btn .expand-icon {
    transition: transform 0.3s ease;
}

.lanyards-buckle-expand-btn:active {
    transform: scale(0.98);
}

.lanyards-accessory-option {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    gap: 12px;
}

.lanyards-accessory-option:last-child {
    border-bottom: none;
}

.lanyards-accessory-option:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding-left: 5px;
    padding-right: 5px;
}

.lanyards-accessory-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: #007cba;
    flex-shrink: 0;
}

.lanyards-accessory-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    padding: 8px;
    background: #fff;
    flex-shrink: 0;
}

.lanyards-accessory-option label {
    cursor: pointer;
    margin: 0;
    flex: 1;
    user-select: none;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.lanyards-accessory-option label:hover .lanyards-accessory-name {
    color: #007cba;
}

.lanyards-accessory-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.lanyards-accessory-name {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    color: #333;
}

.hook-description {
    font-size: 13px;
    color: #666;
    font-weight: normal;
    line-height: 1.4;
    font-style: italic;
    display: block;
}

/* "Nessuna Opzione" checkbox styling */
.lanyards-accessory-option:has(.lanyards-no-accessories-checkbox) {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 12px 10px;
    margin-bottom: 10px;
}

.lanyards-accessory-option:has(.lanyards-no-accessories-checkbox) label {
    font-weight: 600;
    color: #856404;
}

.lanyards-accessory-option:has(.lanyards-no-accessories-checkbox):hover {
    background-color: #ffe69c;
}

/* Uniforma anche il container */
#lanyards-tier-pricing-simple .lanyards-accessories-section {
    margin-bottom: 20px;
}

#lanyards-tier-pricing-simple .lanyards-quantity-section {
    margin-bottom: 20px;
}

#lanyards-tier-pricing-simple .lanyards-quantity-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

/* Assicura che sia identico al tier pricing varianti */
#lanyards-tier-pricing-simple {
    padding: 30px;
    background: #f9f9f9;
    border-radius: 12px;
    margin: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

#lanyards-tier-pricing-simple .lanyards-pricing-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

#lanyards-tier-pricing-simple .unit-price,
#lanyards-tier-pricing-simple .total-price {
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#lanyards-tier-pricing-simple .unit-price {
    background: #e3f2fd;
    border: 2px solid #2196f3;
}

#lanyards-tier-pricing-simple .total-price {
    background: #e8f5e8;
    border: 2px solid #4caf50;
}

/* =============================================================================
   LAYOUT: MERGE WIDTH AND QUANTITY IN SAME BOX
   ============================================================================= */

/* Unified wrapper for Width + Quantity */
.lanyards-unified-box {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Width section (top part) */
.lanyards-width-section {
    background: #fff !important;
    border: none !important;
    border-bottom: 1px solid #e9ecef !important;
    border-radius: 0 !important;
    padding: 20px 20px 15px 20px !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Quantity box (bottom part) */
.lanyards-quantity-box {
    background: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 15px 20px 20px 20px !important;
    margin: 0 !important;
}

/* Width label styling */
.lanyards-width-section label {
    font-size: 16px !important;
    font-weight: 600 !important;
    display: block !important;
    margin-bottom: 8px !important;
    color: #333 !important;
}

/* Width select dropdown - match quantity select style EXACTLY */
.lanyards-width-section select,
.variations select,
table.variations select,
.variations_form select,
.variations_form .value select {
    width: 100% !important;
    min-height: 48px !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #333 !important;
    opacity: 1 !important;
    border: 2px solid #ddd !important;
    border-radius: 6px !important;
    background: white !important;
    background-color: #fff !important;
    transition: all 0.3s ease !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 20px !important;
}

/* Ensure options are also visible */
.lanyards-width-section select option,
.variations select option,
table.variations select option {
    color: #333 !important;
    opacity: 1 !important;
}

.lanyards-width-section select:hover {
    border-color: #007cba !important;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.15) !important;
}

.lanyards-width-section select:focus {
    outline: none !important;
    border-color: #007cba !important;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1) !important;
}

/* Remove default table styling */
.lanyards-width-section tr,
.lanyards-width-section td {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.lanyards-width-section td.label {
    padding-bottom: 8px !important;
    width: 100% !important;
    display: block !important;
}

.lanyards-width-section td.value {
    width: 100% !important;
    display: block !important;
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

@media (max-width: 768px) {
    .lanyards-pricing-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    #lanyards-tier-pricing-simple .lanyards-pricing-info {
        grid-template-columns: 1fr;
    }

    .single-product div.product .variations,
    .single-product div.product .woocommerce-variation-add-to-cart {
        padding: 15px;
    }
}
/* =============================================================================
   BUCKLES SECTION - OPTIONAL CHECKBOXES
   ============================================================================= */

.lanyards-buckles-section {
    margin-bottom: 20px;
    margin-top: 20px;
}

.lanyards-buckles-section > label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.lanyards-buckle-dropdown-wrapper {
    position: relative;
}

.lanyards-buckles-checkboxes {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px 8px 0 0;
    padding: 15px;
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.lanyards-buckles-checkboxes.collapsed {
    max-height: 200px;
}

.lanyards-buckles-checkboxes.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,1) 100%);
    pointer-events: none;
}

.lanyards-buckles-checkboxes.expanded {
    max-height: 600px;
}

.lanyards-buckles-checkboxes.expanded::after {
    display: none;
}

.lanyards-buckle-expand-btn-buckles {
    width: 100%;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    color: #007cba;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.lanyards-buckle-expand-btn-buckles:hover {
    background: #e9ecef;
    color: #005a87;
}

.lanyards-buckle-expand-btn-buckles .expand-icon-buckles {
    transition: transform 0.3s ease;
}

.lanyards-buckle-expand-btn-buckles:active {
    transform: scale(0.98);
}

.lanyards-buckle-option {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    gap: 12px;
}

.lanyards-buckle-option:last-child {
    border-bottom: none;
}

.lanyards-buckle-option:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding-left: 5px;
    padding-right: 5px;
}

.lanyards-buckle-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: #007cba;
    flex-shrink: 0;
}

.lanyards-buckle-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    padding: 8px;
    background: #fff;
    flex-shrink: 0;
}

.lanyards-buckle-option label {
    cursor: pointer;
    margin: 0;
    flex: 1;
    user-select: none;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.lanyards-buckle-option label:hover .lanyards-buckle-name {
    color: #007cba;
}

.lanyards-buckle-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.lanyards-buckle-name {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    color: #333;
}

.buckle-description {
    font-size: 13px;
    color: #666;
    font-weight: normal;
    line-height: 1.4;
    font-style: italic;
    display: block;
}

/* ============================================
   Safety Section Styles
   ============================================ */

.lanyards-safeties-section {
    margin-bottom: 20px;
    margin-top: 20px;
}

.lanyards-safeties-section > label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.lanyards-safety-dropdown-wrapper {
    position: relative;
}

.lanyards-safeties-checkboxes {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px 8px 0 0;
    padding: 15px;
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.lanyards-safeties-checkboxes.collapsed {
    max-height: 200px;
}

.lanyards-safeties-checkboxes.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,1) 100%);
    pointer-events: none;
}

.lanyards-safeties-checkboxes.expanded {
    max-height: 600px;
}

.lanyards-safeties-checkboxes.expanded::after {
    display: none;
}

.lanyards-safety-expand-btn-safeties {
    width: 100%;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    color: #007cba;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.lanyards-safety-expand-btn-safeties:hover {
    background: #e9ecef;
    color: #005a87;
}

.lanyards-safety-expand-btn-safeties .expand-icon-safeties {
    transition: transform 0.3s ease;
}

.lanyards-safety-expand-btn-safeties:active {
    transform: scale(0.98);
}

.lanyards-safety-option {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    gap: 12px;
}

.lanyards-safety-option:last-child {
    border-bottom: none;
}

.lanyards-safety-option:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding-left: 5px;
    padding-right: 5px;
}

.lanyards-safety-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: #007cba;
    flex-shrink: 0;
}

.lanyards-safety-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    padding: 8px;
    background: #fff;
    flex-shrink: 0;
}

.lanyards-safety-option label {
    cursor: pointer;
    margin: 0;
    flex: 1;
    user-select: none;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.lanyards-safety-option label:hover .lanyards-safety-name {
    color: #007cba;
}

.lanyards-safety-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.lanyards-safety-name {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    color: #333;
}

.safety-description {
    font-size: 13px;
    color: #666;
    font-weight: normal;
    line-height: 1.4;
    font-style: italic;
    display: block;
}

/* ============================================
   Badge Section Styles
   ============================================ */

.lanyards-badges-section {
    margin-bottom: 20px;
    margin-top: 20px;
}

.lanyards-badges-section > label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.lanyards-badge-dropdown-wrapper {
    position: relative;
}

.lanyards-badges-checkboxes {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px 8px 0 0;
    padding: 15px;
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.lanyards-badges-checkboxes.collapsed {
    max-height: 200px;
}

.lanyards-badges-checkboxes.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,1) 100%);
    pointer-events: none;
}

.lanyards-badges-checkboxes.expanded {
    max-height: 600px;
}

.lanyards-badges-checkboxes.expanded::after {
    display: none;
}

.lanyards-badge-expand-btn-badges {
    width: 100%;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    color: #007cba;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.lanyards-badge-expand-btn-badges:hover {
    background: #e9ecef;
    color: #005a87;
}

.lanyards-badge-expand-btn-badges .expand-icon-badges {
    transition: transform 0.3s ease;
}

.lanyards-badge-expand-btn-badges:active {
    transform: scale(0.98);
}

.lanyards-badge-option {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    gap: 12px;
}

.lanyards-badge-option:last-child {
    border-bottom: none;
}

.lanyards-badge-option:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding-left: 5px;
    padding-right: 5px;
}

.lanyards-badge-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: #007cba;
    flex-shrink: 0;
}

.lanyards-badge-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    padding: 8px;
    background: #fff;
    flex-shrink: 0;
}

.lanyards-badge-option label {
    cursor: pointer;
    margin: 0;
    flex: 1;
    user-select: none;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.lanyards-badge-option label:hover .lanyards-badge-name {
    color: #007cba;
}

.lanyards-badge-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.lanyards-badge-name {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    color: #333;
}

.badge-description {
    font-size: 13px;
    color: #666;
    font-weight: normal;
    line-height: 1.4;
    font-style: italic;
    display: block;
}

/* ============================================
   Accessory Section Styles
   ============================================ */

.lanyards-accessories-list-section {
    margin-bottom: 20px;
    margin-top: 20px;
}

.lanyards-accessories-list-section > label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.lanyards-accessory-list-dropdown-wrapper {
    position: relative;
}

.lanyards-accessories-list-checkboxes {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px 8px 0 0;
    padding: 15px;
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.lanyards-accessories-list-checkboxes.collapsed {
    max-height: 200px;
}

.lanyards-accessories-list-checkboxes.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,1) 100%);
    pointer-events: none;
}

.lanyards-accessories-list-checkboxes.expanded {
    max-height: 600px;
}

.lanyards-accessories-list-checkboxes.expanded::after {
    display: none;
}

.lanyards-accessory-list-expand-btn-accessories {
    width: 100%;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    color: #007cba;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.lanyards-accessory-list-expand-btn-accessories:hover {
    background: #e9ecef;
    color: #005a87;
}

.lanyards-accessory-list-expand-btn-accessories .expand-icon-accessories {
    transition: transform 0.3s ease;
}

.lanyards-accessory-list-expand-btn-accessories:active {
    transform: scale(0.98);
}

.lanyards-accessory-list-option {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    gap: 12px;
}

.lanyards-accessory-list-option:last-child {
    border-bottom: none;
}

.lanyards-accessory-list-option:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding-left: 5px;
    padding-right: 5px;
}

.lanyards-accessory-list-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: #007cba;
    flex-shrink: 0;
}

.lanyards-accessory-list-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    padding: 8px;
    background: #fff;
    flex-shrink: 0;
}

.lanyards-accessory-list-option label {
    cursor: pointer;
    margin: 0;
    flex: 1;
    user-select: none;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.lanyards-accessory-list-option label:hover .lanyards-accessory-list-name {
    color: #007cba;
}

.lanyards-accessory-list-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.lanyards-accessory-list-name {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    color: #333;
}

.accessory-list-description {
    font-size: 13px;
    color: #666;
    font-weight: normal;
    line-height: 1.4;
    font-style: italic;
    display: block;
}

/* ============================================
   Mobile Section Styles
   ============================================ */

.lanyards-mobiles-section {
    margin-bottom: 20px;
    margin-top: 20px;
}

.lanyards-mobiles-section > label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.lanyards-mobile-dropdown-wrapper {
    position: relative;
}

.lanyards-mobiles-checkboxes {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px 8px 0 0;
    padding: 15px;
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.lanyards-mobiles-checkboxes.collapsed {
    max-height: 200px;
}

.lanyards-mobiles-checkboxes.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,1) 100%);
    pointer-events: none;
}

.lanyards-mobiles-checkboxes.expanded {
    max-height: 600px;
}

.lanyards-mobiles-checkboxes.expanded::after {
    display: none;
}

.lanyards-mobile-expand-btn-mobiles {
    width: 100%;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    color: #007cba;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.lanyards-mobile-expand-btn-mobiles:hover {
    background: #e9ecef;
    color: #005a87;
}

.lanyards-mobile-expand-btn-mobiles .expand-icon-mobiles {
    transition: transform 0.3s ease;
}

.lanyards-mobile-expand-btn-mobiles:active {
    transform: scale(0.98);
}

.lanyards-mobile-option {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    gap: 12px;
}

.lanyards-mobile-option:last-child {
    border-bottom: none;
}

.lanyards-mobile-option:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding-left: 5px;
    padding-right: 5px;
}

.lanyards-mobile-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: #007cba;
    flex-shrink: 0;
}

.lanyards-mobile-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    padding: 8px;
    background: #fff;
    flex-shrink: 0;
}

.lanyards-mobile-option label {
    cursor: pointer;
    margin: 0;
    flex: 1;
    user-select: none;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.lanyards-mobile-option label:hover .lanyards-mobile-name {
    color: #007cba;
}

.lanyards-mobile-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.lanyards-mobile-name {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    color: #333;
}

.mobile-description {
    font-size: 13px;
    color: #666;
    font-weight: normal;
    line-height: 1.4;
    font-style: italic;
    display: block;
}
