/* Dynamically-related component styles for the booking page */

/* Price update animation */
.price-updated {
    animation: priceFlash 0.6s ease;
}

@keyframes priceFlash {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); color: var(--sage-green); }
    100% { transform: scale(1); }
}

/* Mobile Price Breakdown Modal */
.price-breakdown-modal .modal-content {
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.breakdown-sections {
    padding: 1rem;
}

.breakdown-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(138, 152, 118, 0.2);
}

.breakdown-section:last-child {
    border-bottom: none;
}

.breakdown-section h4 {
    color: var(--sage-green);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--deep-moss);
}

.breakdown-sub-item {
    padding-left: 1rem;
    font-size: 0.9rem;
    color: var(--deep-moss);
    opacity: 0.7;
}

.breakdown-section.totals {
    background: rgba(138, 152, 118, 0.05);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.breakdown-item.total {
    font-size: 1.2rem;
    color: var(--sage-green);
    padding-top: 0.5rem;
    border-top: 2px solid var(--sage-green);
}

.breakdown-item.deposit {
    background: rgba(229, 189, 170, 0.2);
    padding: 0.5rem;
    border-radius: 5px;
    margin-top: 0.5rem;
}

.breakdown-note {
    text-align: center;
    margin-top: 0.5rem;
    color: var(--deep-moss);
    opacity: 0.7;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--deep-moss);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(138, 152, 118, 0.1);
    color: var(--sage-green);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(138, 152, 118, 0.2);
    margin-bottom: 1rem;
}

.modal-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(138, 152, 118, 0.2);
    margin-top: 1rem;
    text-align: center;
}

.addon-line {
    font-size: 0.95rem;
    padding-left: 1rem;
    color: var(--deep-moss);
    opacity: 0.9;
}

/* Payment processing styles */
.loading-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.payment-processing {
    text-align: center;
    padding: 3rem;
}

.payment-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.payment-status {
    background: rgba(138, 152, 118, 0.1);
    border: 1px solid var(--sage-green);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.payment-status.success {
    border-color: var(--sage-green);
    background: rgba(138, 152, 118, 0.1);
}

.payment-status.error {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.payment-details {
    display: grid;
    gap: 0.5rem;
    margin-top: 1rem;
}

.payment-detail {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(138, 152, 118, 0.1);
}

.payment-detail:last-child {
    border-bottom: none;
}

.payment-detail label {
    font-weight: 600;
    color: var(--deep-moss);
}

.payment-detail span {
    color: var(--sage-green);
}