/* Promo Code Styles */
.promo-code-wrapper {
    margin-bottom: 0;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.promo-code-wrapper.promo-code-collapsed {
    background: transparent;
    border: 1px solid #e0e0e0;
}

/* Toggle Button */
.promo-code-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    border-bottom: 1px solid transparent;
}

.promo-code-toggle:hover {
    background: #f9f9f9;
    border-bottom-color: #e0e0e0;
}

.promo-code-toggle i.fa-tag {
    color: #CFA052;
    font-size: 0.9rem;
}

.promo-toggle-text {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
    color: #0E4D56;
}

.promo-toggle-icon {
    color: #999;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.promo-code-toggle[data-expanded="true"] .promo-toggle-icon {
    transform: rotate(180deg);
}

/* Content Area */
.promo-code-content {
    padding: 10px 12px;
    background: #fafafa;
    border-top: 1px solid #e0e0e0;
}

.promo-code-field {
    display: flex;
    gap: 8px;
    margin-bottom: 0;
}

.promo-code-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: border-color 0.2s ease;
}

.promo-code-input:focus {
    outline: none;
    border-color: #0E4D56;
    box-shadow: 0 0 0 2px rgba(14, 77, 86, 0.1);
}

.promo-code-input:disabled {
    background: #e9ecef;
    cursor: not-allowed;
}

.promo-code-apply-btn {
    padding: 8px 16px;
    background: #0E4D56;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.promo-code-apply-btn:hover:not(:disabled) {
    background: #0a3a42;
}

.promo-code-apply-btn:disabled {
    background: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.promo-code-message {
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 0;
    margin-top: 8px;
    display: none;
}

.promo-code-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.promo-code-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.promo-code-discount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 4px;
    color: #2e7d32;
    margin-top: 8px;
}

.promo-discount-label {
    font-weight: 600;
    margin-right: 8px;
    font-size: 0.8rem;
}

.promo-discount-value {
    flex: 1;
    font-weight: 700;
    font-size: 0.9rem;
}

.promo-code-remove-btn {
    background: transparent;
    border: none;
    color: #c62828;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    line-height: 1;
}

.promo-code-remove-btn:hover {
    background: rgba(198, 40, 40, 0.1);
}

/* Price display with promo */
.promo-discounted-price {
    color: #28a745;
    font-weight: 700;
}

.promo-original-price {
    color: #6c757d;
    text-decoration: line-through;
    font-size: 0.85em;
    margin-left: 8px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .promo-code-field {
        flex-direction: column;
        gap: 6px;
    }
    
    .promo-code-apply-btn {
        width: 100%;
        padding: 8px;
    }
    
    .promo-discount-value {
        font-size: 0.85rem;
    }
    
    .promo-code-toggle {
        padding: 7px 10px;
    }
    
    .promo-toggle-text {
        font-size: 0.8rem;
    }
    
    .promo-code-content {
        padding: 8px 10px;
    }
}

/* Integration with booking card */
.booking-card .promo-code-wrapper {
    margin: 0;
}

/* Animation for expanding/collapsing */
.promo-code-content {
    animation-duration: 0.3s;
    animation-fill-mode: both;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promo-code-wrapper:not(.promo-code-collapsed) .promo-code-content {
    animation-name: slideDown;
}

/* Compact mode for booking card */
.booking-card .promo-code-toggle,
.booking-card-mobile .promo-code-toggle {
    padding: 6px 10px;
}

.booking-card .promo-toggle-text,
.booking-card-mobile .promo-toggle-text {
    font-size: 0.8rem;
}

.booking-card .promo-code-content,
.booking-card-mobile .promo-code-content {
    padding: 8px 10px;
}

.booking-card .promo-code-input,
.booking-card-mobile .promo-code-input {
    padding: 6px 10px;
    font-size: 0.8rem;
}

.booking-card .promo-code-apply-btn,
.booking-card-mobile .promo-code-apply-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.booking-card .promo-code-message,
.booking-card-mobile .promo-code-message {
    font-size: 0.75rem;
    padding: 4px 8px;
    margin-top: 6px;
}

.booking-card .promo-code-discount,
.booking-card-mobile .promo-code-discount {
    padding: 4px 8px;
    margin-top: 6px;
}

.booking-card .promo-discount-label,
.booking-card-mobile .promo-discount-label {
    font-size: 0.75rem;
}

.booking-card .promo-discount-value,
.booking-card-mobile .promo-discount-value {
    font-size: 0.8rem;
}

.booking-form .promo-code-wrapper {
    order: -1;
    margin-bottom: 8px;
}
