/*
 * TitanCart — Packing Slip document styles.
 *
 * Loaded ONLY by templates/checkout/packing-slip.php (a standalone print
 * document rendered outside the theme). Registered as
 * 'titancart-packing-slip-print' and printed via the core styles API; the
 * brand accent arrives as the --tc-ps-accent custom property through
 * wp_add_inline_style().
 */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #f3f4f6; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
    color: #171717;
    font-size: 14px;
    line-height: 1.5;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
.tc-ps {
    max-width: 820px;
    margin: 24px auto;
    background: #fff;
    padding: 44px 48px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}
.tc-ps__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 3px solid var(--tc-ps-accent);
    padding-bottom: 18px;
    margin-bottom: 24px;
}
.tc-ps__brand { font-size: 18px; font-weight: 700; color: #171717; }
.tc-ps__brand img { max-height: 46px; max-width: 230px; display: block; }
.tc-ps__brand-addr { font-size: 12px; color: #737373; margin-top: 6px; line-height: 1.6; }
.tc-ps__title { text-align: right; }
.tc-ps__title h1 {
    margin: 0;
    font-size: 26px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--tc-ps-accent);
}
.tc-ps__title .tc-ps__ordno { font-size: 15px; font-weight: 600; margin-top: 4px; }
.tc-ps__title .tc-ps__meta { font-size: 12.5px; color: #737373; }

.tc-ps__cols { display: flex; gap: 32px; margin-bottom: 26px; }
.tc-ps__col { flex: 1; }
.tc-ps__col h3 {
    margin: 0 0 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #737373;
}
.tc-ps__col .tc-ps__big { font-size: 15px; line-height: 1.7; }
.tc-ps__meta { color: #737373; font-size: 12.5px; }

.tc-ps__facts { display: flex; flex-wrap: wrap; gap: 10px 36px; margin-bottom: 22px; }
.tc-ps__fact { font-size: 13px; }
.tc-ps__fact span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #737373; }
.tc-ps__fact strong { font-weight: 600; }

table.tc-ps__items { width: 100%; border-collapse: collapse; margin-top: 4px; }
table.tc-ps__items th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #737373;
    border-bottom: 2px solid #e5e5e5;
    padding: 8px 10px;
}
table.tc-ps__items td {
    padding: 11px 10px;
    border-bottom: 1px solid #ededed;
    vertical-align: top;
}
.tc-ps__pick { width: 34px; text-align: center; }
.tc-ps__pick-box { display: inline-block; width: 16px; height: 16px; border: 1.5px solid #9ca3af; border-radius: 3px; }
.tc-ps__qty { width: 60px; text-align: center; font-weight: 700; font-size: 16px; }
.tc-ps__pname { font-weight: 600; }
.tc-ps__psku { display: block; font-size: 12px; color: #525252; margin-top: 2px; }
.tc-ps__popts { display: block; font-size: 12px; color: #737373; margin-top: 2px; }

.tc-ps__sign { display: flex; gap: 40px; margin-top: 40px; }
.tc-ps__sign div { flex: 1; border-top: 1px solid #9ca3af; padding-top: 6px; font-size: 12px; color: #737373; }
.tc-ps__note { margin-top: 22px; padding: 12px 14px; background: #fafafa; border: 1px solid #e5e5e5; border-radius: 4px; font-size: 13px; }
.tc-ps__note span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #737373; margin-bottom: 3px; }

.tc-ps__print-bar { max-width: 820px; margin: 0 auto 0; text-align: right; }
.tc-ps__print-btn {
    display: inline-block; margin: 16px 0 0; padding: 9px 18px;
    background: var(--tc-ps-accent); color: #fff; border: none;
    border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer;
}

@media print {
    html, body { background: #fff; }
    .tc-ps { margin: 0; border: none; border-radius: 0; padding: 0; max-width: none; }
    .tc-ps__print-bar { display: none; }
    table.tc-ps__items tr { page-break-inside: avoid; }
}
