/**
 * Copyright © Zhik Pty Ltd. All rights reserved.
 * See LICENSE.txt for license details.
 *
 * Saved Order Selector Widget Styles
 * Widget-specific styling for the saved order selector component
 */

/* ============================================
   WIDGET CONTAINER
   ============================================ */

.saved-order-selector-container {
    position: relative;
}

.saved-order-selector-wrapper {
    display: flex;
    flex-direction: column;
}

.saved-order-selector-wrapper .saved-order-label {
    font-weight: 600;
    margin-bottom: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}

.saved-order-selector-wrapper .saved-order-label i {
    font-size: 14px;
}

/* ============================================
   INPUT WRAPPER LAYOUT
   ============================================ */

.saved-order-selector-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.saved-order-selector-input-wrapper select {
    flex: 1;
    min-width: 0; /* Allow shrinking */
}

.saved-order-selector-input-wrapper .btn-save-order {
    flex-shrink: 0;
    padding: 8px 16px;
    height: 40px; /* Match select height */
    display: flex;
    align-items: center;
    gap: 6px;
}

.saved-order-selector-input-wrapper .btn-save-order .btn-text {
    font-size: 14px;
}

/* ============================================
   SAVED ORDER DROPDOWN OPTIONS
   ============================================ */

.saved-order-option {
    padding: 4px 0;
}

.saved-order-title {
    font-weight: 500;
    color: #333;
}

.saved-order-date {
    font-size: 0.85em;
    font-weight: initial !important;
    color: #666;
    margin-top: 2px;
}

/* ============================================
   MESSAGE SYSTEM - Visual styling in theme
   ============================================ */

/* All message styling (visual + layout) moved to theme _extend.less */

/* ============================================
   LAYOUT INTEGRATION
   ============================================ */

.save-order-container {
    margin-top: 5px;
    min-height: 75px;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .saved-order-selector-input-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .saved-order-selector-input-wrapper .btn-save-order {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .saved-order-selector-container {
        display: none;
    }
}
