/* assets/css/frontend.css */
.ttw-container {
    max-width: 100%;
    font-family: inherit;
}

.ttw-timer-section {
    text-align: center;
    margin-bottom: 30px;
}

.ttw-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.ttw-timer-box {
    background: #2c3e50;
    border-radius: 10px;
    padding: 15px 20px;
    min-width: 80px;
    text-align: center;
}

.ttw-timer-number {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    display: block;
}

.ttw-timer-label {
    font-size: 14px;
    color: #ecf0f1;
}

.ttw-capacity-section {
    margin-bottom: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.ttw-capacity-info {
    text-align: center;
    margin-bottom: 10px;
    font-size: 18px;
}

.ttw-progress-bar {
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.ttw-progress-fill {
    height: 100%;
    background: #28a745;
    transition: width 0.3s ease;
}

.ttw-warning {
    margin-top: 10px;
    color: #dc3545;
    text-align: center;
    font-weight: bold;
}

.ttw-ticket-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.ttw-minus-btn,
.ttw-plus-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #007bff;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ttw-minus-btn:disabled,
.ttw-plus-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.ttw-ticket-count {
    font-size: 24px;
    font-weight: bold;
}

.ttw-passenger-form {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.ttw-passenger-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.ttw-form-row {
    margin-bottom: 15px;
}

.ttw-form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.ttw-form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 14px;
}

.ttw-age-group-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ttw-age-option {
    flex: 1;
    min-width: 120px;
}

.ttw-age-option input[type="radio"] {
    display: none;
}

.ttw-age-option label {
    display: block;
    padding: 10px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ttw-age-option input[type="radio"]:checked + label {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.ttw-age-price {
    display: block;
    font-size: 12px;
    margin-top: 5px;
}

.ttw-price-summary {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.ttw-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.ttw-summary-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0 0;
    margin-top: 10px;
    font-size: 20px;
    font-weight: bold;
    border-top: 2px solid #007bff;
}

.ttw-add-to-cart {
    width: 100%;
    padding: 15px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.ttw-add-to-cart:hover {
    background: #218838;
    transform: translateY(-2px);
}

.ttw-error {
    padding: 20px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 8px;
    text-align: center;
}

/* RTL Support */
.rtl .ttw-form-label {
    text-align: right;
}

.rtl .ttw-summary-row,
.rtl .ttw-summary-total {
    direction: rtl;
}

/* Responsive */
@media (max-width: 768px) {
    .ttw-timer {
        gap: 10px;
    }
    
    .ttw-timer-box {
        min-width: 60px;
        padding: 10px;
    }
    
    .ttw-timer-number {
        font-size: 20px;
    }
    
    .ttw-age-group-options {
        flex-direction: column;
    }
    
    .ttw-age-option {
        width: 100%;
    }
}
/* اضافه کردن به انتهای فایل CSS قبلی */

/* استایل نوتیف موفقیت */
.ttw-success-notice {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 18px 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.3);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ttw-notice-icon {
    font-size: 28px;
}

.ttw-notice-message {
    font-size: 16px;
    font-weight: 500;
    flex: 1;
}

.ttw-notice-btn {
    background: white;
    color: #28a745;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ttw-notice-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* استایل رده‌های سنی به صورت باکس */
.ttw-age-group-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .ttw-age-group-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ttw-age-group-options {
        grid-template-columns: 1fr;
    }
}

.ttw-age-option {
    text-align: center;
}

.ttw-age-option input[type="radio"] {
    display: none;
}

.ttw-age-option label {
    display: block;
    padding: 15px 10px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ttw-age-option label strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.ttw-age-option label small {
    display: block;
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 8px;
}

.ttw-age-price {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #007bff;
    margin-top: 5px;
}

.ttw-age-option input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-color: #007bff;
    color: white;
}

.ttw-age-option input[type="radio"]:checked + label small {
    color: rgba(255,255,255,0.8);
}

.ttw-age-option input[type="radio"]:checked + label .ttw-age-price {
    color: #ffd700;
}