/* ====================================================
   ORDER ACTION BUTTONS - SINGLE ROW LAYOUT
   Responsive 3-button layout with icons and text
   ==================================================== */

/* --- CONTAINER --- */
.order-action-buttons {
    display: flex;
    gap: 12px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 12px;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* --- BASE BUTTON STYLES --- */
.action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    min-height: 80px;
}

/* Icon positioning */
.action-btn svg {
    width: 24px;
    height: 24px;
    margin-bottom: 8px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Button text */
.action-btn-text {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* --- BUTTON VARIANTS (COLORS) --- */

/* Call Button - Blue */
.action-btn-call {
    background: #2196F3;
    color: white;
}

.action-btn-call:hover {
    background: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

.action-btn-call:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
}

/* Chat Button - Yellow/Gold */
.action-btn-chat {
    background: #FEBB1B;
    background: linear-gradient(135deg, #FEBB1B 0%, #FFA000 100%);
    color: #363636;
}

.action-btn-chat:hover {
    background: #FFA000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(254, 187, 27, 0.3);
}

.action-btn-chat:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(254, 187, 27, 0.2);
}

/* Chat badge notification */
.action-btn-chat .chat-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Cancel Button - Red */
.action-btn-cancel {
    background: #F44336;
    color: white;
}

.action-btn-cancel:hover {
    background: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(244, 67, 54, 0.3);
}

.action-btn-cancel:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(244, 67, 54, 0.2);
}

/* Cancel timer */
.cancel-timer {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    opacity: 0.9;
    font-weight: 400;
}

/* --- DISABLED STATE --- */
.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- LOADING STATE --- */
.action-btn.loading {
    pointer-events: none;
}

.action-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- ALTERNATIVE HORIZONTAL LAYOUT (ICON LEFT OF TEXT) --- */
.order-action-buttons.horizontal-icons .action-btn {
    flex-direction: row;
    justify-content: center;
    padding: 12px 16px;
    min-height: 48px;
}

.order-action-buttons.horizontal-icons .action-btn svg {
    margin-bottom: 0;
    margin-right: 8px;
    width: 20px;
    height: 20px;
}

/* --- RESPONSIVE DESIGN --- */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .order-action-buttons {
        gap: 10px;
        padding: 16px;
    }

    .action-btn {
        font-size: 13px;
        padding: 14px 10px;
        min-height: 75px;
    }

    .action-btn svg {
        width: 22px;
        height: 22px;
        margin-bottom: 6px;
    }

    .action-btn-text {
        font-size: 13px;
    }

    .cancel-timer {
        font-size: 11px;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .order-action-buttons {
        gap: 8px;
        padding: 12px;
    }

    .action-btn {
        font-size: 12px;
        padding: 12px 8px;
        min-height: 70px;
    }

    .action-btn svg {
        width: 20px;
        height: 20px;
        margin-bottom: 6px;
    }

    .action-btn-text {
        font-size: 12px;
    }

    .cancel-timer {
        font-size: 10px;
    }

    .action-btn-chat .chat-badge {
        width: 18px;
        height: 18px;
        font-size: 10px;
        top: 6px;
        right: 6px;
    }
}

/* Extra small mobile (360px and below) */
@media (max-width: 360px) {
    .order-action-buttons {
        gap: 6px;
        padding: 10px;
    }

    .action-btn {
        font-size: 11px;
        padding: 10px 6px;
        min-height: 65px;
        border-radius: 6px;
    }

    .action-btn svg {
        width: 18px;
        height: 18px;
        margin-bottom: 4px;
    }

    .action-btn-text {
        font-size: 11px;
    }
}

/* --- ACCESSIBILITY --- */
.action-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.action-btn:focus:not(:focus-visible) {
    outline: none;
}

/* --- PRINT STYLES --- */
@media print {
    .order-action-buttons {
        display: none;
    }
}

/* --- DARK MODE SUPPORT (OPTIONAL) --- */
@media (prefers-color-scheme: dark) {
    .order-action-buttons {
        background: #2c2c2c;
    }
}

/* ====================================================
   PANEL VARIANT - COMPACT DESIGN FOR BOTTOM PANEL
   Smaller, more compact design for accepted order panel
   ==================================================== */

/* --- PANEL CONTAINER --- */
.order-action-buttons-panel {
    display: flex;
    gap: 8px;
    padding: 12px 0;
    width: 100%;
    justify-content: space-between;
    box-sizing: border-box;
}

/* --- PANEL BUTTON STYLES (COMPACT) --- */
.action-btn-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
    color: white;
    background: transparent;
    min-height: 70px;
    position: relative;
}

/* Panel icon positioning */
.action-btn-panel svg {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
    flex-shrink: 0;
}

/* Panel button text */
.action-btn-panel span {
    display: block;
    text-align: center;
    line-height: 1.2;
}

/* --- PANEL BUTTON VARIANTS (COLORS) --- */

/* Panel Call Button - Blue */
.action-btn-panel.action-btn-call {
    background: #030303;
    
    color: white;
}

.action-btn-panel.action-btn-call:hover {
    background: #030303;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

.action-btn-panel.action-btn-call:active {
    transform: translateY(0);
}

/* Panel Chat Button - Yellow/Gold */
.action-btn-panel.action-btn-chat {
    background: #FEBB1B;

    color: #363636;
}

.action-btn-panel.action-btn-chat:hover {
    background: #FFA000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(254, 187, 27, 0.3);
}

.action-btn-panel.action-btn-chat:active {
    transform: translateY(0);
}

/* Panel Cancel Button - Red */
.action-btn-panel.action-btn-cancel {
    background: #F44336;
    background: linear-gradient(135deg, #F44336 0%, #d32f2f 100%);
    color: white;
}

.action-btn-panel.action-btn-cancel:hover {
    background: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(244, 67, 54, 0.3);
}

.action-btn-panel.action-btn-cancel:active {
    transform: translateY(0);
}

/* Panel Cancel Timer Display */
.cancel-timer-panel {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 600;
    opacity: 0.95;
    color: white;
}

/* --- PANEL DISABLED STATE --- */
.action-btn-panel:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* --- PANEL RESPONSIVE DESIGN --- */

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .order-action-buttons-panel {
        gap: 6px;
        padding: 10px 0;
    }

    .action-btn-panel {
        padding: 8px 6px;
        font-size: 11px;
        min-height: 65px;
    }

    .action-btn-panel svg {
        width: 24px;
        height: 24px;
        margin-bottom: 3px;
    }

    .cancel-timer-panel {
        font-size: 10px;
    }
}

/* Extra small mobile (360px and below) */
@media (max-width: 360px) {
    .action-btn-panel {
        padding: 6px 4px;
        font-size: 10px;
        min-height: 60px;
    }

    .action-btn-panel svg {
        width: 20px;
        height: 20px;
    }
}

/* --- ORDERACCEPTED CONTAINER ADJUSTMENTS --- */
.orderAccepted-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.orderAccepted-container .title {
    text-align: center;
    margin-bottom: 8px;
}

.orderAccepted-container .title p:first-child {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
}

/* --- HIDE OLD BUTTONS --- */
#orderInProgressBtn,
#callServiceButton {
    display: none !important;
}
