/**
 * Book Booking Plugin - Public Frontend Stylesheet
 */

:root {
    --bbp-primary: #2563eb;
    --bbp-primary-dark: #1d4ed8;
    --bbp-primary-light: #eff6ff;
    --bbp-success: #059669;
    --bbp-success-light: #ecfdf5;
    --bbp-warning: #d97706;
    --bbp-danger: #dc2626;
    --bbp-danger-light: #fee2e2;
    --bbp-slate-900: #0f172a;
    --bbp-slate-800: #1e293b;
    --bbp-slate-600: #475569;
    --bbp-slate-400: #94a3b8;
    --bbp-slate-200: #e2e8f0;
    --bbp-slate-100: #f1f5f9;
    --bbp-slate-50: #f8fafc;
    --bbp-radius: 10px;
    --bbp-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --bbp-shadow-md: 0 4px 14px rgba(0,0,0,0.08);
    --bbp-shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
}

/* ==========================================================================
   Catalog Styles
   ========================================================================== */

.bbp-catalog-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--bbp-slate-800);
}

.bbp-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    background: #ffffff;
    padding: 16px 20px;
    border-radius: var(--bbp-radius);
    border: 1px solid var(--bbp-slate-200);
    box-shadow: var(--bbp-shadow-sm);
}

.bbp-search-wrap {
    position: relative;
    flex: 1 1 320px;
}

.bbp-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bbp-slate-400);
}

.bbp-search-input {
    width: 100%;
    padding: 10px 12px 10px 38px !important;
    border: 1px solid var(--bbp-slate-200) !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    background: var(--bbp-slate-50) !important;
    transition: all 0.2s ease;
    box-sizing: border-box !important;
}

.bbp-search-input:focus {
    outline: none !important;
    border-color: var(--bbp-primary) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.bbp-filter-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.bbp-select-filter {
    padding: 10px 14px !important;
    border: 1px solid var(--bbp-slate-200) !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    font-size: 14px !important;
    color: var(--bbp-slate-800) !important;
    cursor: pointer;
}

/* Book Grid */
.bbp-book-grid {
    display: grid;
    gap: 25px;
}

.bbp-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.bbp-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.bbp-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
    .bbp-grid-cols-3, .bbp-grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .bbp-grid-cols-2, .bbp-grid-cols-3, .bbp-grid-cols-4 { grid-template-columns: 1fr; }
}

.bbp-book-card {
    background: #ffffff;
    border-radius: var(--bbp-radius);
    border: 1px solid var(--bbp-slate-200);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: var(--bbp-shadow-sm);
}

.bbp-book-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bbp-shadow-md);
    border-color: #cbd5e1;
}

.bbp-badge-container {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    gap: 6px;
}

.bbp-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bbp-badge-sale {
    background: #ef4444;
    color: #ffffff;
}

.bbp-badge-format {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #ffffff;
}

.bbp-format-ebook { background: #059669; }
.bbp-format-hardcover { background: #7c3aed; }
.bbp-format-paperback { background: #2563eb; }
.bbp-format-audiobook { background: #d97706; }

/* Book Cover */
.bbp-cover-wrap {
    height: 280px;
    background: var(--bbp-slate-100);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.bbp-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.bbp-book-card:hover .bbp-cover-img {
    transform: scale(1.03);
}

/* Fallback Styled Cover */
.bbp-cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 25px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bbp-placeholder-inner {
    text-align: center;
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 6px;
    padding: 20px 15px;
    width: 100%;
    height: 85%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bbp-placeholder-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.bbp-placeholder-author {
    color: var(--bbp-slate-400);
    font-size: 12px;
}

/* Card Body */
.bbp-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bbp-book-title {
    margin: 0 0 6px 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--bbp-slate-900);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.bbp-book-author {
    font-size: 13px;
    color: var(--bbp-slate-600);
    margin-bottom: 14px;
}

.bbp-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--bbp-slate-100);
}

.bbp-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.bbp-main-price, .bbp-sale-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--bbp-slate-900);
}

.bbp-sale-price {
    color: var(--bbp-success);
}

.bbp-reg-price-strike {
    font-size: 14px;
    color: var(--bbp-slate-400);
    text-decoration: line-through;
}

.bbp-in-stock { font-size: 12px; font-weight: 600; color: var(--bbp-success); }
.bbp-out-stock { font-size: 12px; font-weight: 600; color: var(--bbp-danger); }

/* Card Action Buttons */
.bbp-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.bbp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.bbp-btn-buy {
    flex: 1;
    background: var(--bbp-primary);
    color: #ffffff !important;
}

.bbp-btn-buy:hover {
    background: var(--bbp-primary-dark);
    transform: translateY(-1px);
}

.bbp-btn-quickview {
    background: var(--bbp-slate-100);
    color: var(--bbp-slate-600);
    padding: 10px 12px;
}

.bbp-btn-quickview:hover {
    background: var(--bbp-slate-200);
    color: var(--bbp-slate-900);
}

.bbp-btn-disabled {
    flex: 1;
    background: var(--bbp-slate-200);
    color: var(--bbp-slate-400);
    cursor: not-allowed;
}

/* ==========================================================================
   Checkout Page Styles
   ========================================================================== */

.bbp-checkout-wrapper {
    max-width: 1080px;
    margin: 40px auto;
    padding: 0 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--bbp-slate-800);
}

.bbp-checkout-grid {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 30px;
    align-items: start;
}

@media (max-width: 860px) {
    .bbp-checkout-grid {
        grid-template-columns: 1fr;
    }
}

.bbp-card {
    background: #ffffff;
    border-radius: var(--bbp-radius);
    padding: 28px;
    border: 1px solid var(--bbp-slate-200);
    box-shadow: var(--bbp-shadow-sm);
}

.bbp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--bbp-slate-100);
    padding-bottom: 12px;
}

.bbp-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--bbp-slate-900);
}

.bbp-dropdown-select {
    padding: 6px 10px;
    border: 1px solid var(--bbp-slate-200);
    border-radius: 6px;
    font-size: 13px;
    background: #ffffff;
}

.bbp-summary-book-preview {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.bbp-summary-cover img {
    width: 90px;
    height: 130px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.bbp-summary-meta h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
    color: var(--bbp-slate-900);
}

.bbp-quantity-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}

.bbp-qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--bbp-slate-200);
    border-radius: 6px;
    overflow: hidden;
}

.bbp-qty-btn {
    background: var(--bbp-slate-100);
    border: none;
    width: 34px;
    height: 34px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bbp-qty-btn:hover {
    background: var(--bbp-slate-200);
}

.bbp-qty-stepper input {
    width: 44px;
    height: 34px;
    text-align: center;
    border: none !important;
    font-weight: 700;
    background: transparent !important;
}

.bbp-breakdown-list {
    margin: 18px 0;
}

.bbp-breakdown-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--bbp-slate-600);
}

.bbp-grand-total {
    border-top: 2px solid var(--bbp-slate-200);
    padding-top: 14px;
    font-size: 18px;
    font-weight: 800;
    color: var(--bbp-slate-900);
}

.bbp-grand-total span:last-child {
    color: var(--bbp-success);
}

.bbp-trust-badges {
    margin-top: 25px;
    border-top: 1px solid var(--bbp-slate-100);
    padding-top: 18px;
}

.bbp-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--bbp-slate-600);
    margin-bottom: 8px;
}

.bbp-trust-item svg {
    color: var(--bbp-success);
}

/* Form Fields */
.bbp-form-group-row {
    display: flex;
    gap: 15px;
}

.bbp-form-group-row .bbp-form-field {
    flex: 1;
}

.bbp-form-field {
    margin-bottom: 16px;
}

.bbp-form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--bbp-slate-800);
}

.bbp-req { color: var(--bbp-danger); }

.bbp-form-field input,
.bbp-form-field textarea {
    width: 100%;
    padding: 10px 14px !important;
    border: 1px solid var(--bbp-slate-200) !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    transition: all 0.2s;
}

.bbp-form-field input:focus,
.bbp-form-field textarea:focus {
    outline: none !important;
    border-color: var(--bbp-primary) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

.bbp-section-subhead {
    margin: 22px 0 14px 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--bbp-slate-900);
    border-bottom: 1px solid var(--bbp-slate-100);
    padding-bottom: 8px;
}

/* Stripe Elements Box */
.bbp-stripe-mount-wrap {
    background: var(--bbp-slate-50);
    border: 1px solid var(--bbp-slate-200);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 20px;
}

.bbp-card-input-box {
    background: #ffffff;
    border: 1px solid var(--bbp-slate-200);
    border-radius: 6px;
    padding: 12px 14px;
    margin-top: 8px;
    transition: all 0.2s;
}

.bbp-card-input-box.StripeElement--focus {
    border-color: var(--bbp-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.bbp-error-message {
    color: var(--bbp-danger);
    font-size: 13px;
    margin-top: 8px;
}

.bbp-checkout-notice {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.bbp-checkout-notice.is-error {
    background: var(--bbp-danger-light);
    color: var(--bbp-danger);
    border: 1px solid #fca5a5;
}

.bbp-checkout-notice.is-info {
    background: var(--bbp-primary-light);
    color: var(--bbp-primary-dark);
    border: 1px solid #bfdbfe;
}

/* Big Checkout Button */
.bbp-submit-btn {
    width: 100%;
    background: var(--bbp-success);
    color: #ffffff !important;
    border: none;
    padding: 15px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s ease;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.bbp-submit-btn:hover {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35);
}

.bbp-submit-btn:disabled {
    background: var(--bbp-slate-400);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.bbp-btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: bbp-spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes bbp-spin {
    to { transform: rotate(360deg); }
}

.bbp-security-disclaimer {
    text-align: center;
    font-size: 12px;
    color: var(--bbp-slate-600);
    margin-top: 14px;
    line-height: 1.4;
}

/* ==========================================================================
   Order Success Page Styles
   ========================================================================== */

.bbp-success-wrapper {
    max-width: 650px;
    margin: 40px auto;
    padding: 0 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.bbp-success-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--bbp-slate-200);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--bbp-shadow-md);
}

.bbp-success-icon-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
}

.bbp-checkmark-svg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #059669;
    stroke-miterlimit: 10;
    box-shadow: inset 0 0 0 #059669;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.bbp-checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #059669;
    fill: #ecfdf5;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.bbp-checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

.bbp-success-heading {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 800;
    color: var(--bbp-slate-900);
}

.bbp-success-sub {
    color: var(--bbp-slate-600);
    margin: 0 0 25px 0;
    font-size: 15px;
}

.bbp-success-meta-box {
    background: var(--bbp-slate-50);
    border: 1px solid var(--bbp-slate-200);
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    margin-bottom: 25px;
}

.bbp-success-meta-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--bbp-slate-200);
    font-size: 14px;
}

.bbp-success-meta-row:last-child {
    border-bottom: none;
}

.bbp-meta-label {
    color: var(--bbp-slate-600);
}

.bbp-total-highlight {
    font-size: 16px;
    color: var(--bbp-success);
}

.bbp-digital-download-callout {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.bbp-download-btn {
    display: inline-block;
    background: var(--bbp-success);
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.2);
}

.bbp-download-btn:hover {
    background: #047857;
}

.bbp-success-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.bbp-btn-outline {
    background: transparent;
    border: 1px solid var(--bbp-slate-200);
    color: var(--bbp-slate-800);
}

.bbp-btn-outline:hover {
    background: var(--bbp-slate-100);
}

/* ==========================================================================
   Order Tracker Styles
   ========================================================================== */

.bbp-tracker-wrapper {
    max-width: 580px;
    margin: 40px auto;
    padding: 0 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.bbp-tracker-card {
    background: #ffffff;
    border-radius: var(--bbp-radius);
    padding: 30px;
    border: 1px solid var(--bbp-slate-200);
    box-shadow: var(--bbp-shadow-sm);
}

.bbp-tracker-card h3 {
    margin: 0 0 6px 0;
    font-size: 20px;
    color: var(--bbp-slate-900);
}

.bbp-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 25px 0 20px 0;
}

.bbp-timeline::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--bbp-slate-200);
    z-index: 1;
}

.bbp-timeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.bbp-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--bbp-slate-200);
    margin: 0 auto 6px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    color: var(--bbp-slate-400);
}

.bbp-timeline-step span {
    font-size: 12px;
    color: var(--bbp-slate-600);
    font-weight: 600;
}

.bbp-timeline-step.is-complete .bbp-dot {
    background: var(--bbp-success);
    border-color: var(--bbp-success);
    color: #ffffff;
}

.bbp-timeline-step.is-active .bbp-dot {
    border-color: var(--bbp-primary);
    color: var(--bbp-primary);
}

/* ==========================================================================
   Single Book Embed Card
   ========================================================================== */

.bbp-single-embed-card {
    max-width: 680px;
    background: #ffffff;
    border: 1px solid var(--bbp-slate-200);
    border-radius: var(--bbp-radius);
    padding: 24px;
    display: flex;
    gap: 24px;
    box-shadow: var(--bbp-shadow-sm);
    margin: 25px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (max-width: 600px) {
    .bbp-single-embed-card {
        flex-direction: column;
    }
}

.bbp-embed-cover {
    flex-shrink: 0;
}

.bbp-embed-img {
    width: 130px;
    height: 190px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.bbp-embed-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bbp-embed-title {
    margin: 6px 0;
    font-size: 19px;
    font-weight: 700;
    color: var(--bbp-slate-900);
}

.bbp-embed-author {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: var(--bbp-slate-600);
}

.bbp-embed-excerpt {
    font-size: 14px;
    color: var(--bbp-slate-600);
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.bbp-embed-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

/* ==========================================================================
   Quick View Modal
   ========================================================================== */

.bbp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bbp-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.bbp-modal-dialog {
    position: relative;
    z-index: 10;
    background: #ffffff;
    border-radius: 14px;
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.bbp-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 26px;
    color: var(--bbp-slate-400);
    cursor: pointer;
    line-height: 1;
}

.bbp-modal-close:hover {
    color: var(--bbp-slate-900);
}

/* ==========================================================================
   Hero Section & Pill Buttons (Matches Screenshot Layout)
   ========================================================================== */

.bbp-hero-section {
    background-color: #faf7f0;
    padding: 60px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
    box-sizing: border-box;
}

.bbp-hero-container {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

@media (max-width: 860px) {
    .bbp-hero-container {
        flex-direction: column;
        align-items: center;
        gap: 35px;
    }
}

.bbp-hero-left {
    flex: 0 0 340px;
    max-width: 100%;
}

.bbp-hero-book-wrap {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
    line-height: 0;
}

.bbp-hero-cover-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.bbp-hero-right {
    flex: 1;
}

.bbp-hero-tagline {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #4f6f8f;
    margin-bottom: 12px;
}

.bbp-hero-title {
    font-size: 40px;
    font-weight: 900;
    color: #111827;
    margin: 0 0 16px 0;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

@media (max-width: 600px) {
    .bbp-hero-title {
        font-size: 30px;
    }
}

.bbp-hero-subtitle {
    font-size: 16.5px;
    line-height: 1.6;
    color: #374151;
    margin: 0 0 24px 0;
}

/* Callout Box (Orange Banner from Screenshot) */
.bbp-hero-callout {
    background: #ea8a1e;
    border-radius: 10px;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
    box-shadow: 0 4px 12px rgba(234, 138, 30, 0.2);
}

.bbp-callout-stat {
    font-size: 46px;
    font-weight: 900;
    line-height: 1;
    color: #18181b;
    flex-shrink: 0;
}

.bbp-callout-body {
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.45;
    color: #18181b;
}

/* Action Buttons */
.bbp-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

/* "Buy the book" Button from Screenshot */
.bbp-buy-the-book-btn {
    background: #0d6343 !important;
    color: #ffffff !important;
    padding: 10px 14px 10px 24px !important;
    border-radius: 50px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(13, 99, 67, 0.25) !important;
    border: none !important;
    line-height: 1.2 !important;
}

.bbp-buy-the-book-btn:hover {
    background: #084830 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(13, 99, 67, 0.35) !important;
}

.bbp-btn-arrow-circle {
    width: 32px;
    height: 32px;
    background: #e0921b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d4a32;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.bbp-buy-the-book-btn:hover .bbp-btn-arrow-circle {
    transform: translateX(3px);
}

/* "Read a sample chapter" Button from Screenshot */
.bbp-sample-btn {
    background: #ffffff !important;
    color: #1e3a8a !important;
    border: 1.5px solid #2563eb !important;
    padding: 12px 24px !important;
    border-radius: 50px !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1.2 !important;
}

.bbp-sample-btn:hover {
    background: #eff6ff !important;
    border-color: #1d4ed8 !important;
    color: #1d4ed8 !important;
    transform: translateY(-1px);
}

.bbp-hero-footer-meta {
    font-size: 12.5px;
    color: #6b7280;
    line-height: 1.5;
}

.bbp-meta-sep {
    margin: 0 8px;
    color: #cbd5e1;
}

/* ==========================================================================
   Checkout Popup Modal - Luxury 2-Column Split Layout & Scoped Styles
   ========================================================================== */

.bbp-popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999999 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: #1e293b !important;
    box-sizing: border-box !important;
    padding: 16px !important;
}

.bbp-popup-overlay.bbp-popup-open {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.bbp-popup-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(15, 23, 42, 0.72) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 1 !important;
}

.bbp-popup-card {
    position: relative !important;
    z-index: 2 !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    width: 100% !important;
    max-width: 860px !important;
    max-height: 92vh !important;
    overflow-y: auto !important;
    margin: auto !important;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.08) !important;
    animation: bbpPopupSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
    border: none !important;
    padding: 0 !important;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.bbp-popup-card::-webkit-scrollbar {
    width: 6px;
}
.bbp-popup-card::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

@keyframes bbpPopupSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Close Button: Fully reset with all: unset so NO theme button styles apply */
#bbp-checkout-popup button.bbp-popup-close-btn {
    all: unset !important;
    box-sizing: border-box !important;
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 30 !important;
    transition: all 0.15s ease !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
}

#bbp-checkout-popup button.bbp-popup-close-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    transform: scale(1.06) !important;
}

/* 2-Column Grid Container */
.bbp-popup-grid {
    display: flex !important;
    flex-direction: row !important;
    min-height: 500px !important;
    box-sizing: border-box !important;
}

/* Left Column: Order Summary & Impact */
.bbp-popup-col-summary {
    width: 330px !important;
    flex-shrink: 0 !important;
    background: #f8fafc !important;
    border-right: 1px solid #e2e8f0 !important;
    padding: 28px 22px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    box-sizing: border-box !important;
}

.bbp-summary-book-card {
    display: flex !important;
    gap: 14px !important;
    align-items: center !important;
}

.bbp-summary-book-thumb {
    width: 70px !important;
    height: 102px !important;
    flex-shrink: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
}

.bbp-summary-book-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.bbp-summary-book-details {
    flex: 1 !important;
}

.bbp-format-badge {
    display: inline-block !important;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    background: #0f172a !important;
    color: #ffffff !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    margin-bottom: 4px !important;
}

.bbp-summary-book-title {
    font-size: 15.5px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.25 !important;
    margin: 0 0 3px 0 !important;
}

.bbp-summary-book-author {
    font-size: 12px !important;
    color: #64748b !important;
    margin: 0 !important;
}

/* Quantity Stepper inside Summary */
.bbp-popup-qty-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 9px !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    color: #334155 !important;
    box-sizing: border-box !important;
}

.bbp-qty-stepper {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

#bbp-checkout-popup button.bbp-qty-btn {
    all: unset !important;
    box-sizing: border-box !important;
    width: 28px !important;
    height: 28px !important;
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.15s ease !important;
}

#bbp-checkout-popup button.bbp-qty-btn:hover {
    background: #e2e8f0 !important;
    border-color: #94a3b8 !important;
}

#bbp-checkout-popup input#bbp_popup_quantity {
    all: unset !important;
    box-sizing: border-box !important;
    width: 32px !important;
    height: 28px !important;
    text-align: center !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Itemized Cost Breakdown */
.bbp-summary-breakdown {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    font-size: 12.5px !important;
    box-sizing: border-box !important;
}

.bbp-breakdown-row {
    display: flex !important;
    justify-content: space-between !important;
    margin-bottom: 6px !important;
    color: #64748b !important;
}

.bbp-breakdown-row:last-child {
    margin-bottom: 0 !important;
}

.bbp-breakdown-total {
    padding-top: 8px !important;
    margin-top: 6px !important;
    border-top: 1px dashed #e2e8f0 !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
}

#bbp-popup-header-total {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #134e35 !important;
}

/* Donation Impact Box (matches the live page layout) */
.bbp-summary-donation-card {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
    border: 1px solid #fde68a !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

.bbp-donation-stat {
    font-size: 24px !important;
    font-weight: 900 !important;
    color: #d97706 !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

.bbp-donation-text {
    font-size: 11px !important;
    line-height: 1.35 !important;
    color: #92400e !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

/* Security & Guarantees */
.bbp-summary-guarantees {
    margin-top: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    font-size: 11px !important;
    color: #64748b !important;
    padding-top: 6px !important;
}

.bbp-guarantee-item {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #475569 !important;
}

.bbp-guarantee-item svg {
    color: #134e35 !important;
    flex-shrink: 0 !important;
}

/* Right Column: Checkout Form */
.bbp-popup-col-form {
    flex: 1 1 auto !important;
    padding: 26px 26px 22px 26px !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

.bbp-form-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 14px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.bbp-form-heading {
    margin: 0 !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.01em !important;
}

.bbp-stripe-badge {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #134e35 !important;
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.bbp-form-section {
    margin-bottom: 12px !important;
}

.bbp-sec-header {
    margin: 0 0 6px 0 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
}

.bbp-sec-circle {
    width: 17px !important;
    height: 17px !important;
    border-radius: 50% !important;
    background: #134e35 !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    flex-shrink: 0 !important;
}

.bbp-ssl-tag {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #635bff !important;
}

.bbp-fields-row-2 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 9px !important;
}

.bbp-fields-row-3 {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 8px !important;
}

.bbp-field label {
    display: block !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    margin-bottom: 3px !important;
    letter-spacing: 0.01em !important;
}

.bbp-req {
    color: #dc2626 !important;
    font-weight: bold !important;
}

/* Bulletproof Form Inputs - Unset theme styles completely */
#bbp-checkout-popup input[type="text"],
#bbp-checkout-popup input[type="email"],
#bbp-checkout-popup input[type="tel"] {
    all: unset !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: 37px !important;
    padding: 0 11px !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 7px !important;
    font-size: 13px !important;
    color: #0f172a !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
}

#bbp-checkout-popup input[type="text"]:focus,
#bbp-checkout-popup input[type="email"]:focus,
#bbp-checkout-popup input[type="tel"]:focus {
    border-color: #134e35 !important;
    box-shadow: 0 0 0 3px rgba(19, 78, 53, 0.12) !important;
    background: #ffffff !important;
}

#bbp-checkout-popup input::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

/* Stripe Card Box */
.bbp-card-input-box {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 7px !important;
    padding: 9px 11px !important;
    min-height: 38px !important;
    box-sizing: border-box !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
}

.bbp-card-input-box.StripeElement--focus {
    border-color: #134e35 !important;
    box-shadow: 0 0 0 3px rgba(19, 78, 53, 0.12) !important;
}

.bbp-error-message {
    color: #dc2626 !important;
    font-size: 12px !important;
    margin-top: 4px !important;
    min-height: 14px !important;
}

/* Big Forest Green Pay Button */
#bbp-checkout-popup button.bbp-popup-complete-btn {
    all: unset !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: 46px !important;
    background: #134e35 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 9px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(19, 78, 53, 0.28) !important;
    transition: all 0.18s ease !important;
    text-align: center !important;
    margin-top: 8px !important;
    padding: 0 16px !important;
    letter-spacing: -0.01em !important;
}

#bbp-checkout-popup button.bbp-popup-complete-btn:hover {
    background: #0f3e2b !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(19, 78, 53, 0.38) !important;
}

#bbp-checkout-popup button.bbp-popup-complete-btn:disabled {
    background: #94a3b8 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.bbp-security-disclaimer {
    margin: 7px 0 0 0 !important;
    font-size: 11px !important;
    text-align: center !important;
    color: #64748b !important;
    line-height: 1.35 !important;
}

/* Success View Inside Popup */
.bbp-popup-success-container {
    padding: 40px 24px !important;
    text-align: center !important;
}

.bbp-success-title {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 6px 0 !important;
}

.bbp-success-desc {
    color: #475569 !important;
    font-size: 13.5px !important;
    margin: 0 0 20px 0 !important;
}

/* Responsive Mobile Layout */
@media (max-width: 768px) {
    .bbp-popup-card {
        width: 95% !important;
        max-width: 480px !important;
        max-height: 94vh !important;
        border-radius: 16px !important;
    }
    .bbp-popup-grid {
        flex-direction: column !important;
    }
    .bbp-popup-col-summary {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #e2e8f0 !important;
        padding: 20px 18px !important;
        gap: 12px !important;
    }
    .bbp-popup-col-form {
        padding: 18px 16px !important;
    }
    .bbp-fields-row-3 {
        grid-template-columns: 1fr 1fr !important;
    }
    .bbp-fields-row-3 .bbp-field:last-child {
        grid-column: span 2 !important;
    }
}
