/*
Patrz application/themes/theme/resources/
*/

.visitDatetime option[disabled] {
    display: none;
}

.booking-timer-sticky {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1050;
    max-width: 300px;
    font-family: inherit;
}

.booking-timer-content {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid;
}

.booking-timer-success {
    background: rgba(40, 167, 69, 0.95);
    border-color: rgba(40, 167, 69, 0.8);
    color: white;
}

.booking-timer-warning {
    background: rgba(255, 193, 7, 0.95);
    border-color: rgba(255, 193, 7, 0.8);
    color: #212529;
}

.booking-timer-icon { 
    margin-right: 12px;
    font-size: 20px;
    flex-shrink: 0;
}

.booking-timer-text {
    flex: 1;
    min-width: 0;
}

.booking-timer-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    margin-bottom: 2px;
}

.booking-timer-countdown {
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    margin-bottom: 2px;
}

.booking-timer-extend {
    margin-top: 8px;
}

.booking-timer-extend-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: inherit;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.booking-timer-extend-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.booking-timer-warning .booking-timer-extend-btn {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

.booking-timer-warning .booking-timer-extend-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 0, 0, 0.3);
}

.booking-timer-subtitle {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.2;
}

.booking-timer-close {
    margin-left: 8px;
    cursor: pointer;
    opacity: 0.7;
    font-size: 14px;
    padding: 4px;
    border-radius: 50%;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-timer-close:hover {
    opacity: 1;
    background-color: rgba(0,0,0,0.1);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .booking-timer-sticky {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
    
    .booking-timer-content {
        padding: 14px 18px;
    }
    
    .booking-timer-title {
        font-size: 15px;
    }
    
    .booking-timer-countdown {
        font-size: 18px;
    }
    
    .booking-timer-subtitle {
        font-size: 13px;
    }
}

/* Animation for urgency when time is low */
.booking-timer-warning .booking-timer-countdown {
    animation: booking-timer-pulse 1s ease-in-out infinite alternate;
}

@keyframes booking-timer-pulse {
    from { opacity: 1; }
    to { opacity: 0.7; }
}

/* Booking Expiration Message Styles */
.booking-expiration-alert {
    position: relative;
    padding: 20px 50px 20px 20px;
    margin-bottom: 20px;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    background-color: #fff3cd;
    color: #856404;
    animation: booking-expiration-slide-in 0.5s ease-out;
    line-height: 1.5;
}

.booking-expiration-alert .d-flex {
    display: flex;
}

.booking-expiration-alert .align-items-start {
    align-items: flex-start;
}

.booking-expiration-alert .mr-2 {
    margin-right: 0.5rem;
}

.booking-expiration-alert .mt-1 {
    margin-top: 0.25rem;
}

.booking-expiration-alert .text-warning {
    color: #f39c12 !important;
}

.booking-expiration-alert strong {
    font-weight: 600;
}

.booking-expiration-alert .btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    font-weight: bold;
    color: #856404;
    cursor: pointer;
    padding: 0;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.booking-expiration-alert .btn-close:hover {
    opacity: 1;
}

@keyframes booking-expiration-slide-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsiveness for expiration alert */
@media (max-width: 768px) {
    .booking-expiration-alert {
        padding: 15px 40px 15px 15px;
    }
    
    .booking-expiration-alert .mr-2 {
        margin-right: 0.4rem;
    }
    
    .booking-expiration-alert .btn-close {
        top: 10px;
        right: 10px;
        width: 22px;
        height: 22px;
        font-size: 18px;
    }
}