/* ============================================================
 * BookBildr Plugin — Frontend Print Checkout Styles
 * ============================================================ */

/* ─── Thank you page ──────────────────────────────────────── */
.bb-print-thanks {
    text-align: center;
    padding: 60px 20px;
    min-height: 400px;
}

.bb-print-thanks h2 {
    font-size: 2em;
    font-weight: 300;
    margin-bottom: 16px;
}

.bb-print-thanks p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    max-width: 500px;
    margin: 0 auto 16px;
}

/* ─── Form ────────────────────────────────────────────────── */
.bb-print-form h4 {
    font-size: 1.3em;
    font-weight: 300;
    margin-bottom: 20px;
}

/* ─── Book card ───────────────────────────────────────────── */
.bb-print-book {
    display: flex;
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    align-items: flex-start;
}

.bb-print-book-cover {
    width: 140px;
    flex-shrink: 0;
    text-align: center;
}

.bb-print-book-cover img {
    width: 100%;
    height: auto;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.bb-print-book-title {
    font-size: 12px;
    font-weight: 700;
    margin-top: 6px;
    color: #1d2327;
}

.bb-print-book-details {
    width: 160px;
    flex-shrink: 0;
}

.bb-print-book-options {
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .bb-print-book {
        flex-direction: column;
    }
    .bb-print-book-cover,
    .bb-print-book-details {
        width: 100%;
    }
}

/* ─── Fields ──────────────────────────────────────────────── */
.bb-print-field {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.bb-print-field label:first-child {
    width: 90px;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: #50575e;
}

.bb-print-field input:not([type="radio"]):not([type="checkbox"]),
.bb-print-field select {
    height: 34px;
    padding: 0 8px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    font-size: 13px;
    color: #1d2327;
    background: #fff;
    flex: 1;
    max-width: 220px;
}

.bb-print-field input:focus,
.bb-print-field select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.bb-print-field span {
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
}

.bb-print-radio {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 13px;
    cursor: pointer;
}

/* ─── Shipping ────────────────────────────────────────────── */
.bb-print-shipping {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.bb-print-shipping > div {
    flex: 1;
    min-width: 240px;
}

/* ─── Submit buttons ──────────────────────────────────────── */
.bb-print-submit {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.bb-print-calc-btn,
.bb-print-proceed-btn {
    padding: 14px 36px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: opacity .15s ease;
}

.bb-print-calc-btn {
    background: #b20a4a;
    color: #fff;
}

.bb-print-calc-btn:hover {
    opacity: .85;
}

.bb-print-proceed-btn {
    background: #1a7d36;
    color: #fff;
}

.bb-print-proceed-btn:hover {
    opacity: .85;
}

/* ─── Pricing results ─────────────────────────────────────── */
.bb-print-pricing {
    border-top: 1px solid #dcdcde;
    padding: 16px 0;
    max-width: 380px;
}

.bb-print-pricing-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
    color: #50575e;
}

.bb-print-pricing-total {
    font-size: 17px;
    font-weight: 800;
    color: #1d2327;
    border-top: 2px solid #dcdcde;
    margin-top: 4px;
    padding-top: 8px;
}

.bb-price-discount {
    color: #b32d2e;
}

/* ─── Loading spinner ─────────────────────────────────────── */
.bb-print-spinner {
    text-align: center;
    padding: 20px;
}

.bb-print-spinner div {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    border-radius: 50%;
    background: #b20a4a;
    animation: bb-print-bounce 1s ease-in-out infinite alternate;
}

.bb-print-spinner div:nth-child(2) { animation-delay: .15s; }
.bb-print-spinner div:nth-child(3) { animation-delay: .3s; }
.bb-print-spinner div:nth-child(4) { animation-delay: .45s; }

@keyframes bb-print-bounce {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-14px); }
}

/* ─── Empty state ─────────────────────────────────────────── */
.bb-print-empty {
    text-align: center;
    padding: 60px 20px;
    min-height: 400px;
}

.bb-print-empty h2 {
    font-size: 1.5em;
    font-weight: 300;
    margin-bottom: 12px;
}
