/**
 * Frontend Styles
 * Version: 3.2.7
 */

/*
   MODAL OVERLAY
 */

.pmoh-modal-overlay {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    animation: pmohFadeIn 0.3s ease-in-out;
}

.pmoh-modal-overlay.pmoh-show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/*
   MODAL BOX
 */

.pmoh-modal-box {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin: 15px;
    border-radius: 16px;
    max-width: 420px;
    width: 85%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: pmohSlideIn 0.4s ease-out;
}

/*
   MODAL HEADER (Sticky - nu scrollează)
 */

.pmoh-modal-header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.pmoh-logo {
    width: 80px;
    height: auto;
    display: block;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.1));
}

/*
   CLOSE BUTTON (Fix în header)
 */

.pmoh-close-btn {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 28px;
    height: 28px;
    font-size: 16px;
    color: #666;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.pmoh-close-btn:hover {
    color: #fff;
    background: #e74c3c;
    border-color: #e74c3c;
    transform: scale(1.05);
}

/*
   MODAL CONTENT (Scrollable)
 */

.pmoh-modal-content {
    padding: 20px 25px 25px 25px;
    text-align: center;
    max-height: calc(85vh - 120px);
    overflow-y: auto;
}

.pmoh-modal-content::-webkit-scrollbar {
    width: 8px;
}

.pmoh-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.pmoh-modal-content::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.pmoh-modal-content::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

/*
   TYPOGRAPHY
 */

.pmoh-title {
    font-size: 20px;
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-weight: 700;
    line-height: 1.3;
}

.pmoh-message {
    font-size: 14px;
    color: #666;
    margin: 0 0 14px 0;
    line-height: 1.4;
}

.pmoh-info-text {
    font-size: 12px;
    color: #777;
    margin: 14px 0 8px 0;
    line-height: 1.4;
}

/*
   SCHEDULE BOX
 */

.pmoh-schedule-box {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #fff;
    padding: 14px 16px;
    border-radius: 10px;
    margin: 14px 0;
    box-shadow: 0 3px 12px rgba(243, 156, 18, 0.3);
}

.pmoh-schedule-label {
    margin: 0 0 4px 0;
    font-size: 13px;
    font-weight: 600;
}

.pmoh-schedule-time {
    margin: 4px 0 0 0;
    font-size: 13px;
}

.pmoh-schedule-time strong {
    font-size: 16px;
    font-weight: 700;
}

.pmoh-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.pmoh-schedule-day {
    font-size: 13px;
    font-weight: 500;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    transition: all 0.2s ease;
}

.pmoh-schedule-day:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(3px);
}

/*
   COUNTDOWN BOX
 */

.pmoh-countdown-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 14px 16px;
    border-radius: 10px;
    margin: 16px 0;
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.3);
}

.pmoh-countdown-label {
    color: #fff;
    font-size: 13px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.pmoh-countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.pmoh-time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 8px;
    border-radius: 8px;
    min-width: 58px;
    backdrop-filter: blur(10px);
}

.pmoh-time-val {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    font-family: 'Arial', sans-serif;
}

.pmoh-time-lbl {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.pmoh-time-sep {
    font-size: 24px;
    color: #fff;
    font-weight: 700;
    line-height: 1;
}

/*
   UNDERSTAND BUTTON
 */

.pmoh-btn-understand {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: #fff;
    border: none;
    padding: 11px 32px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(39, 174, 96, 0.3);
    margin-top: 8px;
}

.pmoh-btn-understand:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.pmoh-btn-understand:active {
    transform: translateY(0);
}

/*
   WOOCOMMERCE NOTICES
 */

.pmoh-closed-notice {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    padding: 18px;
    border-radius: 10px;
    margin: 18px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.pmoh-closed-notice p {
    margin: 6px 0;
    color: #fff;
}

.pmoh-shop-notice {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
    border: none !important;
    color: #fff !important;
    padding: 18px !important;
    border-radius: 10px !important;
}

.pmoh-shop-notice::before {
    display: none !important;
}

/*
   HIDE WOOCOMMERCE BUTTONS
 */

body.pmoh-restaurant-closed .add_to_cart_button,
body.pmoh-restaurant-closed .single_add_to_cart_button {
    display: none !important;
}

body.pmoh-restaurant-closed .products .product .button {
    pointer-events: none;
    opacity: 0.5;
}

/*
   ANIMATIONS
 */

@keyframes pmohFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pmohSlideIn {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/*
   RESPONSIVE - TABLET
 */

@media (min-width: 1200px) {
    .pmoh-modal-box {
        max-width: 480px;
    }
}

@media (max-width: 768px) {
    .pmoh-modal-box {
        width: 92%;
        max-width: 350px;
        max-height: 80vh;
    }
    
    .pmoh-modal-header {
        padding: 16px;
    }
    
    .pmoh-modal-content {
        padding: 18px 16px 20px 16px;
        max-height: calc(80vh - 100px);
    }
    
    .pmoh-logo {
        width: 70px;
    }
    
    .pmoh-close-btn {
        width: 26px;
        height: 26px;
        font-size: 14px;
        right: 10px;
        top: 10px;
    }
    
    .pmoh-title {
        font-size: 18px;
    }
    
    .pmoh-time-unit {
        min-width: 54px;
        padding: 9px 7px;
    }
    
    .pmoh-time-val {
        font-size: 22px;
    }
    
    .pmoh-schedule-time strong {
        font-size: 15px;
    }
    
    .pmoh-schedule-day {
        font-size: 12px;
        padding: 5px 8px;
    }
}

/*
   RESPONSIVE - MOBILE
 */

@media (max-width: 480px) {
    .pmoh-modal-box {
        max-width: 300px;
        width: 94%;
        max-height: 70vh;
    }
    
    .pmoh-modal-header {
        padding: 14px;
    }
    
    .pmoh-modal-content {
        padding: 16px 14px 18px 14px;
        max-height: calc(70vh - 80px);
    }
    
    .pmoh-logo {
        width: 65px;
    }
    
    .pmoh-close-btn {
        width: 24px;
        height: 24px;
        font-size: 13px;
        right: 8px;
        top: 8px;
    }
    
    .pmoh-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .pmoh-message {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .pmoh-schedule-box {
        padding: 12px 14px;
        margin: 12px 0;
    }
    
    .pmoh-schedule-label {
        font-size: 12px;
    }
    
    .pmoh-schedule-time {
        font-size: 12px;
    }
    
    .pmoh-schedule-time strong {
        font-size: 14px;
    }
    
    .pmoh-schedule-day {
        font-size: 11px;
        padding: 4px 7px;
        gap: 4px;
    }
    
    .pmoh-countdown-box {
        margin: 12px 0;
        padding: 12px 14px;
    }
    
    .pmoh-countdown-label {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .pmoh-countdown {
        gap: 4px;
    }
    
    .pmoh-time-unit {
        min-width: 46px;
        padding: 8px 5px;
    }
    
    .pmoh-time-val {
        font-size: 18px;
    }
    
    .pmoh-time-lbl {
        font-size: 7px;
        margin-top: 3px;
    }
    
    .pmoh-time-sep {
        font-size: 18px;
    }
    
    .pmoh-btn-understand {
        padding: 9px 22px;
        font-size: 13px;
    }
    
    .pmoh-info-text {
        font-size: 11px;
        margin: 10px 0 6px 0;
    }
}

/*
   PRODUCT PAGE SCHEDULE
 */

.pmoh-product-schedule {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    font-size: 13px;
}

.pmoh-product-schedule-day {
    padding: 4px 8px;
    background: #f8f9fa;
    border-left: 3px solid #667eea;
    border-radius: 3px;
    font-size: 12px;
    color: #555;
}

/*
   WOOCOMMERCE NOTICES
 */

.pmoh-closed-notice,
.pmoh-shop-notice {
    margin: 15px 0;
    padding: 12px 15px;
    border-radius: 6px;
}

