/**
 * Booking Summary Redesign - Airbnb-Style Calm Confidence
 *
 * Reduces visual clutter, establishes clear CTA hierarchy.
 * "Done is quiet, Next is loud"
 *
 * @package TravelerChildTheme
 * @since 2.0.0
 */

/* ============================================
   TRUST SIGNALS - Bottom of Widget (Clean Design)
   ============================================ */
.pca-trust-signals {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    margin-top: 12px;
    background: #f8fafc;
    border-radius: 10px;
}

.pca-trust-signals[hidden] {
    display: none !important;
}

.pca-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #374151;
}

.pca-trust-item svg {
    flex-shrink: 0;
    color: #22c55e;
}

/* ============================================
   COUPON INTEGRATION - Price Line Item
   ============================================ */
/* Hide the old banner-style discount nudge */
.discount-nudge {
    display: none !important;
}

/* New integrated discount line */
.pca-price-breakdown {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e5e7eb;
}

.pca-price-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 4px;
}

.pca-price-line--discount {
    color: #22c55e;
}

.pca-price-line--discount .pca-discount-code {
    font-size: 12px;
    opacity: 0.9;
}

.pca-price-line--total {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
}

.pca-price-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================
   CTA HIERARCHY - Secondary Links Gray
   ============================================ */
/* Make all edit/change links gray */
.pca-ps-edit-link,
.price-breakdown__toggle,
.booking-help-button,
.guest-popover-close {
    color: #6b7280 !important;
}

.pca-ps-edit-link:hover,
.price-breakdown__toggle:hover,
.booking-help-button:hover {
    color: #374151 !important;
}

/* "See breakdown" link - subtle gray */
.price-breakdown__toggle {
    background: transparent;
    border: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Hide the bold styling on breakdown toggle */
.price-breakdown__toggle strong {
    font-weight: 500;
}

/* "Need help?" - more subtle */
.booking-help-wrapper {
    margin-top: 12px;
}

.booking-help-button {
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 16px;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.booking-help-button:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.booking-help-meta {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 6px;
}

/* ============================================
   CTA BUTTON - Only Loud Element
   ============================================ */
.btn-primary-cta {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(84, 64, 241, 0.25);
}

.btn-primary-cta:not(:disabled) {
    background: linear-gradient(135deg, #5440f1 0%, #4636d4 100%);
    color: #ffffff;
}

.btn-primary-cta:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(84, 64, 241, 0.35);
}

.btn-primary-cta:not(:disabled):active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(84, 64, 241, 0.25);
}

.btn-primary-cta:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    box-shadow: none;
    cursor: not-allowed;
}

/* ============================================
   TOTAL SECTION - Cleaner Layout
   ============================================ */
.total-section {
    padding: 16px 0;
    margin-bottom: 12px;
}

.total-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.total-amount .price {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.total-meta {
    font-size: 12px;
    color: #9ca3af;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 480px) {
    .pca-trust-signals {
        padding: 10px 14px;
        margin-bottom: 12px;
    }

    .pca-trust-item {
        font-size: 12px;
    }

    .btn-primary-cta {
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 12px;
    }

    .total-amount .price {
        font-size: 20px;
    }
}

