/* ============================================================================
   PAID E-BOOK STORE — shared styles
   ----------------------------------------------------------------------------
   Loaded only on store pages (gallery, book, auth, account) by setting
   $use_store_css = true before including includes/header.php.

   Deliberately written in the site's own design language (rose #c08b8b +
   gold #c9a96e, rounded cards, soft shadows) rather than pulling a CSS
   framework into the public pages, which would fight with css/style.css and
   restyle the shared header and footer. The admin panel, which already runs
   on Bootstrap 5, keeps using Bootstrap.
   ============================================================================ */

:root {
    --store-rose: #c08b8b;
    --store-gold: #c9a96e;
    --store-ink: #3a2e2e;
    --store-muted: #7a6f6f;
    --store-line: #ecdfe0;
    --store-soft: #f6ecec;
}

/* ---------------------------------------------------------------- flashes -- */
.app-flash {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto 16px;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: .92rem;
    line-height: 1.5;
    border: 1px solid transparent;
}
.app-flash-icon { flex-shrink: 0; }
.app-flash-success { background: #eefaf1; border-color: #c7ecd3; color: #256b3d; }
.app-flash-error   { background: #fdeeee; border-color: #f5cccc; color: #97302f; }
.app-flash-info    { background: #eef4fd; border-color: #cddff5; color: #2b5087; }
.app-flash-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: .55;
}
.app-flash-close:hover { opacity: 1; }

/* ------------------------------------------------------------ book grid --- */
.ebook-toolbar { margin: 0 auto 36px; max-width: 900px; }
.ebook-search { position: relative; margin-bottom: 22px; }
.ebook-search input {
    width: 100%;
    padding: 16px 20px 16px 52px;
    border: 2px solid var(--store-line);
    border-radius: 50px;
    font-size: 1rem;
    background: #fff;
    transition: border-color .25s, box-shadow .25s;
    outline: none;
}
.ebook-search input:focus { border-color: var(--store-rose); box-shadow: 0 0 0 4px rgba(192,139,139,.15); }
.ebook-search .search-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); font-size: 1.1rem; opacity: .6; }

.ebook-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ebook-filter {
    border: 2px solid var(--store-line);
    background: #fff;
    color: var(--store-muted);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s;
}
.ebook-filter:hover { border-color: var(--store-rose); color: var(--store-rose); }
.ebook-filter.active {
    background: linear-gradient(135deg, var(--store-rose), var(--store-gold));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px rgba(192,139,139,.35);
}

.ebook-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 992px) { .ebook-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 560px) { .ebook-grid { grid-template-columns: 1fr; } }

.ebook-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
}
.ebook-card:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(192,139,139,.25); }
/* The cover is a link on the gallery, a plain div elsewhere — display:block
   makes both behave identically. */
.ebook-cover { display: block; position: relative; aspect-ratio: 3/4; overflow: hidden; background: linear-gradient(135deg,#f3e7e7,#efe6d4); }
.ebook-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ebook-card:hover .ebook-cover img { transform: scale(1.06); }
.ebook-cover .cover-fallback {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; color: #b89b9b;
}
.ebook-cover .cover-fallback span.emoji { font-size: 54px; }
.ebook-cover .cover-fallback span.t { font-size: .85rem; font-weight: 600; padding: 0 14px; text-align: center; }

.ebook-cat {
    position: absolute; top: 12px; left: 12px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(4px);
    color: #9a6b6b;
    font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
    padding: 5px 12px; border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
/* Price / ownership pill, top-right of the cover */
.ebook-price-tag {
    position: absolute; top: 12px; right: 12px;
    background: linear-gradient(135deg, var(--store-rose), var(--store-gold));
    color: #fff;
    font-size: .8rem; font-weight: 800;
    padding: 6px 13px; border-radius: 50px;
    box-shadow: 0 4px 12px rgba(192,139,139,.45);
}
.ebook-price-tag.is-free  { background: linear-gradient(135deg,#6cb98f,#8fc9a6); box-shadow: 0 4px 12px rgba(108,185,143,.4); }
.ebook-price-tag.is-owned { background: linear-gradient(135deg,#5b8def,#7aa5f5); box-shadow: 0 4px 12px rgba(91,141,239,.4); }

.ebook-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.ebook-title {
    font-size: 1.05rem; font-weight: 700; color: var(--store-ink);
    margin: 0 0 6px; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ebook-title a { color: inherit; text-decoration: none; }
.ebook-title a:hover { color: var(--store-rose); }
.ebook-author { font-size: .82rem; color: #b08a8a; font-weight: 600; margin: 0 0 10px; }
.ebook-author::before { content: "✍ "; opacity: .7; }
.ebook-desc {
    font-size: .86rem; color: var(--store-muted); line-height: 1.5; margin: 0 0 16px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1;
}
.ebook-actions { display: flex; gap: 10px; margin-top: auto; }

/* ---------------------------------------------------------------- buttons -- */
.ebook-btn {
    flex: 1;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 11px 10px;
    border-radius: 50px;
    font-size: .85rem; font-weight: 700;
    text-decoration: none; cursor: pointer;
    border: none;
    transition: transform .2s, box-shadow .2s, background .2s, opacity .2s;
}
.ebook-btn:disabled { opacity: .6; cursor: not-allowed; }
.ebook-btn-preview { background: var(--store-soft); color: #a86a6a; }
.ebook-btn-preview:hover { background: #efdede; }
.ebook-btn-buy {
    background: linear-gradient(135deg, var(--store-rose), var(--store-gold));
    color: #fff;
    box-shadow: 0 6px 16px rgba(192,139,139,.4);
}
.ebook-btn-buy:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(192,139,139,.5); color: #fff; }
.ebook-btn-read { background: linear-gradient(135deg,#5b8def,#7aa5f5); color: #fff; box-shadow: 0 6px 16px rgba(91,141,239,.35); }
.ebook-btn-read:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(91,141,239,.45); color: #fff; }
.ebook-btn-ghost { background: #fff; color: var(--store-muted); border: 2px solid var(--store-line); }
.ebook-btn-ghost:hover { border-color: var(--store-rose); color: var(--store-rose); }

/* Inline spinner shown while a checkout is being prepared */
.btn-spinner {
    width: 15px; height: 15px;
    border: 2px solid rgba(255,255,255,.45);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: btn-spin .7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ empty state -- */
.ebook-empty { text-align: center; padding: 70px 20px; color: #9a8d8d; }
.ebook-empty .big { font-size: 64px; margin-bottom: 14px; }
.ebook-empty h3 { font-size: 1.5rem; color: #6a5b5b; margin: 0 0 6px; }

/* --------------------------------------------------------- preview modal -- */
.ebook-modal {
    position: fixed; inset: 0;
    background: rgba(30,20,20,.75);
    backdrop-filter: blur(3px);
    z-index: 9999;
    display: none; align-items: center; justify-content: center;
    padding: 24px;
}
.ebook-modal.open { display: flex; }
.ebook-modal-box {
    background: #fff; border-radius: 16px;
    width: min(900px, 100%); height: min(90vh, 100%);
    display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.ebook-modal-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 18px; border-bottom: 1px solid #eee;
}
.ebook-modal-head h4 { margin: 0; font-size: 1rem; color: var(--store-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ebook-modal-close {
    background: #f4eaea; border: none;
    width: 34px; height: 34px; border-radius: 50%;
    font-size: 1.1rem; cursor: pointer; color: #9a6b6b; line-height: 1;
}
.ebook-modal-close:hover { background: #ecdada; }
.ebook-modal-box iframe { flex: 1; width: 100%; border: none; background: #f6f6f6; }
.ebook-modal-foot {
    padding: 12px 18px;
    border-top: 1px solid #eee;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
    background: #fdfafa;
}
.ebook-modal-foot .note { font-size: .82rem; color: var(--store-muted); margin: 0; }
.ebook-modal-foot .ebook-btn { flex: 0 0 auto; padding: 10px 22px; }

/* ------------------------------------------------------- book detail page -- */
.book-detail { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .book-detail { grid-template-columns: 1fr; gap: 26px; } }

.book-detail-cover {
    border-radius: 18px; overflow: hidden;
    box-shadow: 0 14px 40px rgba(0,0,0,.14);
    aspect-ratio: 3/4;
    background: linear-gradient(135deg,#f3e7e7,#efe6d4);
    display: flex; align-items: center; justify-content: center;
}
.book-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-detail h1 { font-size: 2rem; line-height: 1.25; margin: 0 0 10px; color: var(--store-ink); }
.book-detail .meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 18px; }
.book-detail .meta span {
    font-size: .8rem; font-weight: 700;
    background: var(--store-soft); color: #9a6b6b;
    padding: 6px 14px; border-radius: 50px;
}
.book-detail .price-row { display: flex; align-items: baseline; gap: 12px; margin: 0 0 20px; }
.book-detail .price {
    font-size: 2.1rem; font-weight: 800;
    background: linear-gradient(135deg, var(--store-rose), var(--store-gold));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.book-detail .price-note { font-size: .85rem; color: var(--store-muted); }
.book-detail .lead { font-size: 1rem; line-height: 1.75; color: #5f5252; margin: 0 0 24px; white-space: pre-line; }
.book-detail .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.book-detail .cta-row .ebook-btn { flex: 0 1 auto; padding: 13px 30px; font-size: .92rem; }

.owned-banner {
    display: flex; align-items: center; gap: 10px;
    background: #eef4ff; border: 1px solid #cfdffb; color: #2b5087;
    padding: 12px 16px; border-radius: 12px; font-size: .9rem; font-weight: 600;
    margin-bottom: 18px;
}
.trust-list { list-style: none; padding: 0; margin: 0; font-size: .88rem; color: var(--store-muted); }
.trust-list li { padding: 6px 0 6px 26px; position: relative; }
.trust-list li::before { content: "✓"; position: absolute; left: 0; color: #6cb98f; font-weight: 800; }

/* ------------------------------------------------------------- auth forms -- */
.auth-wrap { max-width: 440px; margin: 0 auto; }
.auth-card { background: #fff; border-radius: 18px; padding: 32px 28px; box-shadow: 0 10px 34px rgba(0,0,0,.08); }
.auth-card h1 { font-size: 1.55rem; margin: 0 0 6px; color: var(--store-ink); }
.auth-card .sub { font-size: .9rem; color: var(--store-muted); margin: 0 0 22px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: .85rem; font-weight: 700; color: #5f5252; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
    width: 100%; padding: 12px 15px;
    border: 2px solid var(--store-line); border-radius: 12px;
    font-size: .95rem; font-family: inherit; background: #fff;
    transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    border-color: var(--store-rose); box-shadow: 0 0 0 4px rgba(192,139,139,.14);
}
.form-row .hint { font-size: .78rem; color: #9a8d8d; margin-top: 5px; }
.btn-block { width: 100%; justify-content: center; padding: 13px; }
.auth-alt { text-align: center; font-size: .88rem; color: var(--store-muted); margin: 18px 0 0; }
.auth-alt a { color: var(--store-rose); font-weight: 700; text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }

/* -------------------------------------------------------- account layout -- */
.account-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.account-tabs a {
    padding: 9px 20px; border-radius: 50px;
    border: 2px solid var(--store-line); background: #fff;
    color: var(--store-muted); font-size: .88rem; font-weight: 700; text-decoration: none;
    transition: all .2s;
}
.account-tabs a:hover { border-color: var(--store-rose); color: var(--store-rose); }
.account-tabs a.active {
    background: linear-gradient(135deg, var(--store-rose), var(--store-gold));
    border-color: transparent; color: #fff;
}

.data-table-wrap { background: #fff; border-radius: 16px; box-shadow: 0 6px 24px rgba(0,0,0,.07); overflow-x: auto; }
.data-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .9rem; }
.data-table th {
    text-align: left; padding: 14px 16px;
    background: #fbf6f6; color: #6a5b5b;
    font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; font-weight: 800;
    border-bottom: 1px solid var(--store-line);
}
.data-table td { padding: 14px 16px; border-bottom: 1px solid #f5eeee; color: #5f5252; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table .thumb { width: 40px; height: 54px; object-fit: cover; border-radius: 6px; border: 1px solid #eee; }

.badge-pill { display: inline-block; padding: 4px 12px; border-radius: 50px; font-size: .75rem; font-weight: 800; }
.badge-paid     { background: #e6f7ec; color: #1f7a45; }
.badge-created  { background: #fff5e0; color: #8a6412; }
.badge-failed   { background: #fdecec; color: #9c2f2f; }
.badge-refunded { background: #eef0f4; color: #4c5566; }

/* ------------------------------------------------- payment status screens -- */
.status-card {
    max-width: 560px; margin: 0 auto;
    background: #fff; border-radius: 20px; padding: 40px 32px; text-align: center;
    box-shadow: 0 14px 40px rgba(0,0,0,.09);
}
.status-card .status-icon { font-size: 62px; line-height: 1; margin-bottom: 14px; }
.status-card h1 { font-size: 1.7rem; margin: 0 0 10px; color: var(--store-ink); }
.status-card p { color: var(--store-muted); font-size: .95rem; line-height: 1.65; margin: 0 0 10px; }
.status-meta {
    text-align: left; background: #fbf6f6; border-radius: 12px;
    padding: 16px 18px; margin: 22px 0; font-size: .88rem;
}
.status-meta div { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; }
.status-meta div + div { border-top: 1px solid #f0e6e6; }
.status-meta span:first-child { color: var(--store-muted); }
.status-meta span:last-child { font-weight: 700; color: var(--store-ink); word-break: break-all; }
.status-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.status-actions .ebook-btn { flex: 0 1 auto; padding: 12px 26px; }

/* ------------------------------------------------------ full-page overlay -- */
.pay-overlay {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(255,255,255,.88); backdrop-filter: blur(2px);
    display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
.pay-overlay.open { display: flex; }
.pay-overlay .ring {
    width: 46px; height: 46px;
    border: 4px solid var(--store-line); border-top-color: var(--store-rose);
    border-radius: 50%; animation: btn-spin .8s linear infinite;
}

/* ============================================================================
   CHECKOUT PAGE  (checkout.php)
   ----------------------------------------------------------------------------
   Two columns on desktop — the details form beside a sticky order summary —
   collapsing to a single column under 900px. Same rose/gold language as the
   rest of the store, so it does not read as a bolted-on payment screen.
   ========================================================================== */
.co-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 26px;
    align-items: start;
    max-width: 1050px;
    margin: 0 auto;
}
@media (max-width: 900px) {
    .co-grid { grid-template-columns: 1fr; gap: 20px; }
    .co-summary { position: static !important; order: -1; }
}

.co-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px 26px;
    box-shadow: 0 14px 40px rgba(0,0,0,.08);
}
.co-card > h1 { font-size: 1.45rem; margin: 0 0 4px; color: var(--store-ink); }
.co-card > .co-sub { color: var(--store-muted); font-size: .9rem; margin: 0 0 24px; }

/* ------------------------------------------------------------- form blocks -- */
.co-block { margin-bottom: 26px; }
.co-block:last-of-type { margin-bottom: 20px; }
.co-block-title {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: .95rem; font-weight: 800; color: var(--store-ink);
    margin: 0 0 14px;
}
.co-block-title .co-req-tag {
    font-size: .62rem; font-weight: 800; letter-spacing: .04em;
    background: #fdecec; color: #b23b3b;
    padding: 3px 8px; border-radius: 50px; text-transform: uppercase;
}
.co-block-title .co-opt-tag {
    font-size: .62rem; font-weight: 800; letter-spacing: .04em;
    background: var(--store-soft); color: var(--store-muted);
    padding: 3px 8px; border-radius: 50px; text-transform: uppercase;
}

/* --------------------------------------------------------- method selector -- */
.co-method {
    display: block;
    border: 2px solid var(--store-rose);
    background: linear-gradient(135deg, #fdf7f7, #fffdf9);
    border-radius: 14px;
    padding: 16px 18px;
    max-width: 260px;
    cursor: default;
}
.co-method .co-method-chip {
    display: inline-block;
    background: #0b2540; color: #fff;
    font-size: .68rem; font-weight: 800; letter-spacing: .02em;
    padding: 4px 10px; border-radius: 6px;
    margin-bottom: 10px;
}
.co-method .co-method-name { font-weight: 800; color: var(--store-ink); font-size: .95rem; }
.co-method .co-method-note { color: var(--store-muted); font-size: .78rem; margin-top: 3px; }

/* -------------------------------------------------------------- form field -- */
.co-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 560px) { .co-row { grid-template-columns: 1fr; } }

.co-field { margin-bottom: 14px; }
.co-field label {
    display: block;
    font-size: .82rem; font-weight: 700; color: var(--store-ink);
    margin-bottom: 6px;
}
.co-field label .co-star { color: #d05a5a; }
.co-field input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--store-line);
    border-radius: 12px;
    font-size: .92rem;
    font-family: inherit;
    color: var(--store-ink);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.co-field input::placeholder { color: #bcaeae; }
.co-field input:focus {
    outline: none;
    border-color: var(--store-rose);
    box-shadow: 0 0 0 4px rgba(192,139,139,.15);
}
.co-field input.co-invalid { border-color: #e08a8a; background: #fffafa; }
.co-hint { font-size: .74rem; color: var(--store-muted); margin-top: 5px; }
.co-error {
    display: none;
    font-size: .76rem; font-weight: 700; color: #b23b3b; margin-top: 5px;
}
.co-field.has-error .co-error { display: block; }

/* Server-side refusal shown just above the pay button */
.co-form-error {
    display: none;
    margin: 0 0 14px;
    padding: 12px 15px;
    border-radius: 12px;
    background: #fdeeee;
    border: 1px solid #f5cccc;
    color: #97302f;
    font-size: .85rem;
    font-weight: 700;
    line-height: 1.5;
}
.co-form-error.show { display: block; }

/* -------------------------------------------------------------- pay button -- */
.co-pay {
    width: 100%;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 15px 20px;
    border: none; border-radius: 14px;
    background: linear-gradient(135deg, var(--store-rose), var(--store-gold));
    color: #fff; font-size: 1rem; font-weight: 800; font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(192,139,139,.4);
    transition: transform .2s, box-shadow .2s, opacity .2s;
}
.co-pay:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(192,139,139,.5); }
.co-pay:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ----------------------------------------------------------- trust badges -- */
.co-badges {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
    margin-top: 16px;
}
.co-badges span {
    display: inline-flex; align-items: center; gap: 5px;
    background: #fbf6f6; color: var(--store-muted);
    border-radius: 50px; padding: 7px 13px;
    font-size: .74rem; font-weight: 700;
}
.co-badges span::before { content: "✓"; color: #6cb98f; font-weight: 900; }

/* --------------------------------------------------------- order summary -- */
.co-summary { position: sticky; top: 20px; }
.co-summary h2 {
    font-size: 1rem; font-weight: 800; color: var(--store-ink);
    margin: 0 0 16px; padding-bottom: 14px;
    border-bottom: 1px solid var(--store-line);
}
.co-item { display: flex; gap: 14px; margin-bottom: 18px; }
.co-item img {
    width: 68px; height: 92px; object-fit: cover;
    border-radius: 10px; flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.co-item .co-item-fallback {
    width: 68px; height: 92px; flex-shrink: 0;
    border-radius: 10px; background: var(--store-soft);
    display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.co-item-title { font-weight: 800; color: var(--store-ink); font-size: .92rem; line-height: 1.35; }
.co-item-meta  { color: var(--store-muted); font-size: .78rem; margin-top: 4px; }
.co-lines { font-size: .86rem; }
.co-lines div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.co-lines span:first-child { color: var(--store-muted); }
.co-lines span:last-child  { font-weight: 700; color: var(--store-ink); }
.co-total {
    display: flex; justify-content: space-between; gap: 12px;
    margin-top: 10px; padding-top: 14px;
    border-top: 2px dashed var(--store-line);
    font-size: 1.05rem; font-weight: 800; color: var(--store-ink);
}
.co-total .co-total-amt { color: #a86a6a; }
.co-secure-note {
    margin: 18px 0 0;
    font-size: .76rem; color: var(--store-muted); line-height: 1.6; text-align: center;
}
.co-back {
    display: inline-block; margin-top: 14px;
    font-size: .82rem; font-weight: 700; color: var(--store-muted); text-decoration: none;
}
.co-back:hover { color: var(--store-rose); }
.pay-overlay p { margin: 0; font-weight: 700; color: var(--store-ink); }