/* ============================================================
 * BookBildr Plugin — Frontend Print Orders Styles
 * ============================================================ */

.bb-orders-wrap {
    max-width: 860px;
    margin: 0 auto;
}

.bb-orders-title {
    font-size: 1.6em;
    font-weight: 300;
    margin-bottom: 28px;
    color: #1d2327;
}

/* ─── Order card ──────────────────────────────────────────── */
.bb-order-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    margin-bottom: 20px;
    overflow: hidden;
}

.bb-order-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #f0f0f1;
    gap: 12px;
}

.bb-order-card-head-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bb-order-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #f0f6fc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2271b1;
    flex-shrink: 0;
}

.bb-order-id {
    font-size: 15px;
    font-weight: 700;
    color: #1d2327;
}

.bb-order-date {
    font-size: 12px;
    color: #8c8f94;
    margin-top: 1px;
}

.bb-order-card-head-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.bb-order-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 3px 10px;
    border-radius: 12px;
    line-height: 1.4;
}

.bb-order-pill.placed {
    background: #edfaef;
    color: #1a7d36;
}

.bb-order-pill.pending {
    background: #fcf9e8;
    color: #996800;
}

.bb-order-cost {
    font-size: 16px;
    font-weight: 800;
    color: #1d2327;
}

/* ─── Card body ───────────────────────────────────────────── */
.bb-order-card-body {
    padding: 18px 20px 20px;
}

.bb-order-card-body h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #8c8f94;
    font-weight: 700;
    margin: 0 0 10px;
}

/* ─── Books list ──────────────────────────────────────────── */
.bb-order-books {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f1;
}

.bb-order-book {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f6f7f7;
}

.bb-order-book:last-child {
    border-bottom: none;
}

.bb-order-book-thumb {
    width: 48px;
    height: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    flex-shrink: 0;
}

.bb-order-book-info {
    flex: 1;
    min-width: 0;
}

.bb-order-book-title {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}

.bb-order-book-meta {
    font-size: 12px;
    color: #8c8f94;
    margin-top: 2px;
}

/* ─── Details grid ────────────────────────────────────────── */
.bb-order-details {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.bb-order-detail-col {
    flex: 1;
    min-width: 180px;
}

.bb-order-detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bb-order-detail-list li {
    display: flex;
    gap: 8px;
    padding: 3px 0;
    font-size: 13px;
    color: #50575e;
}

.bb-order-detail-list li span {
    font-weight: 600;
    color: #8c8f94;
    min-width: 72px;
    flex-shrink: 0;
}

.bb-order-detail-list code {
    font-size: 12px;
    background: #f0f0f1;
    padding: 1px 5px;
    border-radius: 3px;
}

/* ─── Empty state ─────────────────────────────────────────── */
.bb-orders-empty {
    text-align: center;
    padding: 80px 20px;
}

.bb-orders-empty-icon {
    margin-bottom: 16px;
}

.bb-orders-empty h3 {
    font-size: 1.3em;
    font-weight: 400;
    color: #1d2327;
    margin: 0 0 8px;
}

.bb-orders-empty p {
    font-size: 14px;
    color: #8c8f94;
    line-height: 1.6;
    margin: 0 0 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.bb-orders-empty-actions .bb-btn-primary {
    display: inline-flex;
    padding: 11px 28px;
    background: var(--bb-brand, #b20a4a);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .15s ease;
}

.bb-orders-empty-actions .bb-btn-primary:hover {
    opacity: .85;
    color: #fff;
}

.bb-order-empty-actions .button {
    white-space: nowrap;
}

/* Remove theme overrides that are now inline in PHP */
