/* Order Card Dropdown Styles */
.order-card-label {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px !important;
}

.order-card-label .label-text {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 2px;
}

.order-card-label .label-desc {
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

.custom-select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-order-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e1e8ed;
    border-radius: 8px !important;
    padding: 12px 40px 12px 16px !important;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    width: 100%;
    min-height: 48px;
}

.custom-order-select:hover {
    border-color: #4f46e5;
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.custom-order-select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1), 0 4px 8px rgba(79, 70, 229, 0.15);
    background: #ffffff;
}

.select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #666;
    transition: all 0.3s ease;
}

.custom-order-select:focus + .select-arrow {
    color: #4f46e5;
    transform: translateY(-50%) rotate(180deg);
}

.custom-order-select option {
    padding: 10px;
    font-size: 14px;
    background: #ffffff;
    color: #333;
}

.custom-order-select option:hover,
.custom-order-select option:checked {
    background: #f0f7ff;
    color: #4f46e5;
}

.order-cards-info {
    margin-top: 6px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
    border-radius: 6px;
    border-left: 3px solid #4f46e5;
}

.cards-count {
    color: #4f46e5;
    font-weight: 500;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cards-count::before {
    content: "ℹ️";
    font-size: 14px;
}

/* Enhanced option styling for modern browsers */
@supports (font-variation-settings: normal) {
    .custom-order-select option {
        font-variation-settings: "wght" 400;
    }
    
    .custom-order-select option:checked {
        font-variation-settings: "wght" 600;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .custom-order-select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 40px 14px 16px !important;
    }
    
    .order-card-label .label-text {
        font-size: 15px;
    }
    
    .order-card-label .label-desc {
        font-size: 13px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .custom-order-select {
        background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .custom-order-select:hover {
        border-color: #6366f1;
        background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    }
    
    .order-card-label .label-text {
        color: #f9fafb;
    }
    
    .order-card-label .label-desc {
        color: #d1d5db;
    }
    
    .order-cards-info {
        background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
        border-left-color: #6366f1;
    }
    
    .cards-count {
        color: #ddd6fe;
    }
}