/**
 * Pufferfish Booking - Success Toast Notification
 * Modern mobile-first toast notification for booking confirmations
 */

/* Toast Container - Fixed positioning for overlay */
.pf-booking-success {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
    min-width: 300px;
    background: #ffffff;
    border: 1px solid #d4edda;
    border-left: 4px solid #28a745;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Show state */
.pf-booking-success.show {
    transform: translateX(0);
    opacity: 1;
}

/* Toast Content */
.pf-success-content {
    padding: 16px 20px;
    position: relative;
}

/* Close Button */
.pf-success-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-success-close:hover {
    color: #495057;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
}

/* Success Icon */
.pf-success-icon {
    display: inline-block;
    font-size: 20px;
    color: #28a745;
    margin-right: 8px;
    vertical-align: top;
}

/* Success Headings */
.pf-booking-success h4 {
    color: #155724;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
    padding-right: 20px;
}

/* Success Text */
.pf-booking-success p {
    color: #155724;
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 12px 0;
    padding-right: 20px;
}

/* Success Booking Details */
.pf-success-booking-details {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 12px;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.3;
}

.pf-success-booking-details strong {
    color: #155724;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .pf-booking-success {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: 0;
    }
}

/* Small screens */
@media (max-width: 480px) {
    .pf-booking-success {
        top: 10px;
        right: 10px;
        left: 10px;
        border-radius: 6px;
    }
    
    .pf-success-content {
        padding: 14px 16px;
    }
    
    .pf-booking-success h4 {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .pf-booking-success p {
        font-size: 13px;
    }
    
    .pf-success-booking-details {
        padding: 10px;
        font-size: 12px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .pf-booking-success {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .pf-booking-success {
        background: #ffffff;
        border: 2px solid #28a745;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }
}

/* Print styles */
@media print {
    .pf-booking-success {
        position: static;
        background: white;
        border: 2px solid #000;
        box-shadow: none;
        max-width: 100%;
        transform: none;
        opacity: 1;
        page-break-inside: avoid;
        margin: 20px 0;
    }
}