.bookstores-page{background:#08080a;color:#f3eff0;min-height:100vh;font-family:Arial,Helvetica,sans-serif}.bookstore-header{max-width:1140px;margin:auto;padding:24px 22px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #38232a}.bookstore-header span,.bookstore-eyebrow{font-size:11px;letter-spacing:2px;color:#e33b50;font-weight:700}.bookstore-logo{color:#fff;font-size:22px;font-weight:900;letter-spacing:2px;text-decoration:none}.bookstore-wrap{max-width:1140px;margin:auto;padding:55px 22px 70px}.bookstore-wrap h1{font-size:clamp(2rem,4vw,3.7rem);max-width:820px;line-height:1.03;margin:10px 0 14px;color:#fff}.bookstore-subtitle{max-width:730px;color:#c8bcc0;line-height:1.65;margin-bottom:32px}.bookstore-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.bookstore-panel{border:1px solid #40252e;border-radius:12px;background:#131216;padding:29px}.bookstore-panel h2{font-size:24px;margin:0 0 10px;color:#fff}.bookstore-panel p{color:#c6b9be;line-height:1.6}.bookstores-page form{display:grid;gap:17px;margin-top:23px}.bookstores-page form label,.bookstore-shipping label{display:grid;gap:8px;font-weight:700;font-size:13px;color:#e6dfe1}.bookstores-page form input,.bookstores-page form textarea,.bookstore-quantity,.bookstore-shipping input{background:#09090b;border:1px solid #59424b;border-radius:7px;color:#fff;padding:13px;width:100%;font:inherit;box-sizing:border-box}.bookstores-page input:focus,.bookstores-page textarea:focus{outline:2px solid #d81a36;outline-offset:1px}.bookstore-primary,.bookstore-secondary{padding:14px 20px;background:#ba1730;border:1px solid #d1243d;color:#fff;font-weight:800;cursor:pointer;border-radius:7px}.bookstore-primary:disabled{opacity:.5;cursor:not-allowed}.bookstore-secondary{background:transparent;border-color:#5c4850}.bookstore-small{font-size:13px;margin-top:25px}#bookstore-alert{max-width:950px;padding:15px 18px;border:1px solid #96505c;background:#321821;margin:0 0 22px;border-radius:8px}#bookstore-alert[hidden]{display:none}.bookstore-catalog-header{display:flex;justify-content:space-between;gap:15px;align-items:start}.bookstore-item{display:flex;align-items:center;gap:21px;border-bottom:1px solid #35272d;padding:23px 0}.bookstore-item img{width:78px;height:108px;object-fit:cover;border:1px solid #4a333b}.bookstore-item-copy{flex:1}.bookstore-item h3{color:#fff;font-size:18px;margin:0 0 8px}.bookstore-item p{font-size:13px;margin:3px 0}.bookstore-item-price{font-weight:800;color:#fff}.bookstore-quantity{width:84px}.bookstore-bottom{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:20px}.bookstore-bottom b{font-size:23px}.bookstore-bottom p{font-size:13px;margin:7px 0}.bookstore-footer{padding:24px;text-align:center;border-top:1px solid #35252a;font-size:12px;color:#ad9ea3}.bookstores-page a{color:#f58092}@media(max-width:750px){.bookstore-grid{grid-template-columns:1fr}.bookstore-panel{padding:20px}.bookstore-header{align-items:start}.bookstore-header span{max-width:100px;text-align:right}.bookstore-catalog-header,.bookstore-bottom{flex-direction:column;align-items:stretch}.bookstore-item{gap:12px}.bookstore-item img{width:55px;height:79px}.bookstore-item h3{font-size:16px}}

.bookstore-shipping{border-top:1px solid #432b32;margin-top:20px;padding-top:22px}.bookstore-shipping h3{color:#fff;font-size:18px;margin:0 0 5px}.bookstore-shipping p{font-size:12px;color:#c7adb5}.bookstore-address-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.bookstore-address-grid label{font-size:12px;display:grid;gap:5px}.bookstore-address-grid input{padding:11px;max-width:100%;box-sizing:border-box;background:#111;border:1px solid #74505c;color:white;border-radius:5px}.bookstore-address-grid label:nth-child(2){grid-column:span 2}@media(max-width:560px){.bookstore-address-grid{grid-template-columns:1fr}.bookstore-address-grid label:nth-child(2){grid-column:span 1}}

/* Bookstore application: selectable store formats and conditional addresses. */
.bookstores-page [hidden]{display:none !important}
.bookstore-fieldset{min-width:0;margin:1px 0;padding:16px;border:1px solid #503440;border-radius:9px;display:grid;gap:14px}
.bookstore-fieldset legend{font-size:14px;font-weight:800;color:#fff;padding:0 8px}
.bookstore-required{font-weight:400;font-size:12px;color:#b8a9af}
.bookstore-type-choices{display:flex;flex-wrap:wrap;gap:10px 19px;margin-top:2px}
.bookstores-page form .bookstore-checkbox{display:flex;align-items:center;gap:9px;font-weight:600;font-size:14px;cursor:pointer}
.bookstores-page form input[type="checkbox"]{width:18px;height:18px;min-width:18px;padding:0;accent-color:#d21d3b;cursor:pointer}
.bookstore-application-address{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.bookstore-application-address .bookstore-wide{grid-column:1/-1}
.bookstore-shipping-same{margin:3px 0 1px}
.bookstore-address-note{font-size:12px !important;margin:0;color:#b8a8ae !important}
@media(max-width:560px){.bookstore-application-address{grid-template-columns:1fr}}

/* Public site anchor styling must not recolor the bookstore brand heading. */
.bookstores-page .bookstore-header a.bookstore-logo,
.bookstores-page .bookstore-header a.bookstore-logo:link,
.bookstores-page .bookstore-header a.bookstore-logo:visited,
.bookstores-page .bookstore-header a.bookstore-logo:hover,
.bookstores-page .bookstore-header a.bookstore-logo:focus { color: #fff !important; text-decoration: none; }
.bookstores-page form select { background: #09090b; border: 1px solid #59424b; border-radius: 7px; color: #fff; padding: 13px; width: 100%; font: inherit; box-sizing: border-box; }
.bookstores-page form select:focus { outline: 2px solid #d81a36; outline-offset: 1px; }

/* V5: private partner catalog — dark cards, conspicuous formats and clear quantities. */
.bookstore-products-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin:20px 0 6px}
.bookstore-catalog-toolbar{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;border-top:1px solid #34272c;margin-top:22px;padding-top:20px}
.bookstore-filter-label{font-size:11px;letter-spacing:1.6px;font-weight:800;color:#c5aeb6}
.bookstore-format-filters{display:flex;flex-wrap:wrap;gap:8px}
.bookstore-filter{background:#1a171d;border:1px solid #61444d;border-radius:6px;color:#f3e8ec;padding:10px 13px;font:700 13px Arial,Helvetica,sans-serif;cursor:pointer}
.bookstore-filter[aria-pressed="true"]{background:#80152c;border-color:#e74660;color:#fff}
.bookstore-filter:disabled{opacity:.38;cursor:not-allowed}
.bookstore-filter:focus-visible,.bookstore-step:focus-visible{outline:2px solid #fa647a;outline-offset:2px}
.bookstore-result-count{margin-left:auto;font-size:12px;color:#b9abb0}
.bookstore-item{display:grid;grid-template-columns:92px minmax(0,1fr);grid-template-areas:"cover info" "quantity quantity";align-items:start;gap:13px 18px;margin:0;padding:18px;min-width:0;border:1px solid #4e2835;border-radius:10px;background:linear-gradient(138deg,#24131b 0%,#151317 70%)}
.bookstore-item[data-format="hardcover"]{background:linear-gradient(138deg,#27231d 0%,#151317 75%);border-color:#5b4836}
.bookstore-item[data-format="unspecified"]{background:linear-gradient(138deg,#211b22 0%,#151317 75%)}
.bookstore-cover{grid-area:cover;width:92px;min-height:127px;background:#09090c;border:1px solid #4b3037;display:flex;align-items:center;justify-content:center;text-align:center;color:#9d8992;font-size:10px;letter-spacing:.8px}
.bookstore-item .bookstore-cover img{width:100%;height:133px;object-fit:cover;border:0;display:block}
.bookstore-item-copy{grid-area:info;min-width:0}
.bookstore-item h3{font-size:17px;line-height:1.3;margin:10px 0 16px;overflow-wrap:anywhere}
.bookstore-format-badge{display:inline-block;border:1px solid #ae4660;background:#631728;border-radius:4px;padding:5px 8px;color:#ffecf0;font-size:11px;letter-spacing:.6px;font-weight:800;text-transform:uppercase}
.bookstore-format-hardcover{border-color:#b28a50;background:#53402b;color:#fff3dc}
.bookstore-format-unspecified{border-color:#777079;background:#353039;color:#e2dce1}
.bookstore-item .bookstore-price-label{font-size:10px;color:#b9a9af;letter-spacing:1.1px;font-weight:800;margin:0 0 4px}
.bookstore-item-price{font-size:22px}
.bookstore-quantity-control{grid-area:quantity;border-top:1px solid #4a3038;padding-top:12px;display:flex;gap:14px;align-items:center;justify-content:space-between}
.bookstore-quantity-control label{font-size:11px;letter-spacing:1px;font-weight:800;color:#d4c0c7}
.bookstore-quantity-row{display:flex;gap:5px;align-items:center}
.bookstore-quantity-row .bookstore-quantity{width:64px;padding:10px 6px;text-align:center}
.bookstore-step{background:#372129;color:white;border:1px solid #734251;border-radius:6px;min-width:37px;min-height:40px;font-size:21px;line-height:1;cursor:pointer}
.bookstore-step:hover{background:#752137}
.bookstore-empty{grid-column:1/-1;padding:22px;color:#d4bdc5;border:1px dashed #704654;border-radius:10px}
@media(max-width:840px){.bookstore-products-grid{grid-template-columns:1fr}.bookstore-item{grid-template-columns:95px minmax(0,1fr)}}
@media(max-width:460px){.bookstore-item{padding:14px;gap:12px;grid-template-columns:76px minmax(0,1fr)}.bookstore-cover{width:76px;min-height:108px}.bookstore-item .bookstore-cover img{height:108px}.bookstore-item h3{font-size:15px}.bookstore-quantity-control{gap:8px}.bookstore-result-count{margin-left:0}}

/* Approved partner identity and private self-service account */
.bookstore-account-nav{display:flex;gap:14px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.bookstore-account-nav a{color:#fff!important;text-decoration:none;border:1px solid #6c374a;border-radius:999px;padding:9px 13px;font-size:12px;font-weight:800}
.bookstore-profile-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:30px;margin-top:24px}
.bookstore-profile-grid h3{font-size:19px;color:#fff;margin:10px 0}
.bookstore-profile-grid form{margin-top:12px;gap:13px}
.bookstore-profile-orders{display:grid;gap:12px}
.bookstore-order-card{border:1px solid #4d2d38;border-radius:9px;background:#19141a;padding:16px}
.bookstore-order-card h4{margin:0 0 8px;color:#fff}
.bookstore-order-card p{margin:5px 0;font-size:13px}
#bookstore-profile-status{color:#ecb6c0}
@media(max-width:720px){.bookstore-profile-grid{grid-template-columns:1fr}.bookstore-account-nav{justify-content:flex-start}}

/* V9: signed-in partner identity stays below the author mark at left. */
.bookstores-page .bookstore-header .bookstore-logo { display:flex; flex-direction:column; align-items:flex-start; gap:5px; flex:0 0 auto; line-height:1.1; }
.bookstores-page .bookstore-header .bookstore-logo .bookstore-logo-name { color:white; font-size:22px; letter-spacing:2px; font-weight:900; }
.bookstores-page .bookstore-header .bookstore-logo .bookstore-logo-subtitle { max-width:none; color:#e34a56; font-size:10px; text-align:left; letter-spacing:1.6px; font-weight:800; }
.bookstores-page .bookstore-header .bookstore-account-nav { margin-left:auto; min-width:0; }
.bookstores-page .bookstore-account-nav #bookstore-account-link { display:block; white-space:normal; overflow-wrap:anywhere; text-align:right; }
.bookstores-page .bookstore-account-nav #bookstore-account-link[hidden] { display:none!important; }
html.bookstore-partner-active .bookstore-wrap { padding-top:26px; }
html.bookstore-partner-active #bookstore-partner-hero { display:none!important; }
.bookstore-session-loader { display:none; border:1px solid #493139; border-radius:9px; background:#141016; padding:24px; color:#f1dde3; margin:0 0 24px; }
html.bookstore-session-restoring .bookstore-session-loader { display:block; }
html.bookstore-session-restoring #bookstore-guest-hero,
html.bookstore-session-restoring #bookstore-partner-hero,
html.bookstore-session-restoring #bookstore-intro,
html.bookstore-session-restoring #bookstore-catalog,
html.bookstore-session-restoring #bookstore-profile { display:none!important; }
.bookstore-policy-short { max-width:670px; font-size:12px; color:#cdbfc5; line-height:1.5; }
@media(max-width:650px){ .bookstore-header{gap:10px;align-items:center;} .bookstores-page .bookstore-header .bookstore-logo .bookstore-logo-name{font-size:18px;} .bookstores-page .bookstore-header .bookstore-logo .bookstore-logo-subtitle{font-size:9px;letter-spacing:1px;} .bookstores-page .bookstore-account-nav #bookstore-account-link{font-size:11px;padding:8px;max-width:52vw;} }

/* V10: quantity steppers, bestseller merchandising, and partner navigation */
.bookstores-page .bookstore-quantity-row .bookstore-quantity { appearance:textfield; -moz-appearance:textfield; }
.bookstores-page .bookstore-quantity-row .bookstore-quantity::-webkit-inner-spin-button,
.bookstores-page .bookstore-quantity-row .bookstore-quantity::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.bookstore-badges { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
.bookstore-format-badge,.bookstore-bestseller-badge { display:inline-flex; align-items:center; justify-content:center; min-height:28px; box-sizing:border-box; border-radius:4px; padding:0 10px; font:800 11px/1 Arial,Helvetica,sans-serif; letter-spacing:.8px; text-transform:uppercase; white-space:nowrap; }
.bookstore-format-badge { border:1px solid #ae4660; background:#631728; color:#ffecf0; }
.bookstore-bestseller-badge { border:1px solid #c99a1a; background:#f2c94c; color:#201200; }
.bookstore-filter-bestseller { border-color:#a63b55; color:#fff; }
.bookstore-filter-bestseller[aria-pressed="true"] { background:#80152c; border-color:#e74660; color:#fff; }
.bookstores-page .bookstore-account-nav .bookstore-header-signout { background:#1d1419; border:1px solid #65404c; border-radius:999px; color:#fff; min-height:36px; padding:8px 13px; font:800 12px Arial,Helvetica,sans-serif; cursor:pointer; }
.bookstores-page .bookstore-account-nav .bookstore-header-signout:hover { border-color:#d04b68; background:#3a1b27; }
.bookstores-page .bookstore-account-nav .bookstore-header-signout:focus-visible { outline:2px solid #e85b70; outline-offset:2px; }
.bookstores-page .bookstore-account-nav .bookstore-header-signout[hidden] { display:none!important; }
.bookstores-page .bookstore-account-nav { gap:8px; }
@media(max-width:650px) { .bookstores-page .bookstore-account-nav .bookstore-header-signout { padding:8px 10px; font-size:11px; } }

@media(max-width:560px) {
  .bookstores-page .bookstore-header { flex-wrap:wrap; }
  .bookstores-page .bookstore-header .bookstore-account-nav { flex:1 1 100%; justify-content:flex-end; margin-left:0; }
  .bookstores-page .bookstore-account-nav #bookstore-account-link { max-width:calc(100vw - 148px); }
}

/* V11: always-visible partner cart, authenticated product details, and accessible clickable cards. */
.bookstores-page .bookstore-account-nav .bookstore-header-cart {
  display:inline-flex; align-items:center; gap:8px; justify-content:center;
  min-height:37px; padding:8px 15px; border:1px solid #d92a46; border-radius:999px;
  background:#a81430; color:#fff!important; font:800 12px Arial,Helvetica,sans-serif;
  text-decoration:none; white-space:nowrap;
}
.bookstores-page .bookstore-account-nav .bookstore-header-cart:hover { background:#c01e3c; border-color:#e94a63; }
.bookstores-page .bookstore-account-nav .bookstore-header-cart:focus-visible { outline:2px solid #fff; outline-offset:3px; }
.bookstores-page .bookstore-account-nav .bookstore-header-cart[hidden] { display:none!important; }
#bookstore-cart-count { display:inline-flex; min-width:21px; justify-content:center; align-items:center; border-radius:999px; background:#2b0d16; padding:2px 5px; font-size:11px; }
.bookstores-page .bookstore-cover-link { padding:0; cursor:pointer; border:1px solid #69404b; }
.bookstore-cover-link:hover,.bookstore-cover-link:focus-visible { border-color:#e24c69; outline-offset:3px; }
.bookstore-title-link { padding:0; border:0; background:none; color:#fff; font:inherit; text-align:left; line-height:inherit; cursor:pointer; }
.bookstore-title-link:hover,.bookstore-title-link:focus-visible { color:#ffc3ce; text-decoration:underline; text-underline-offset:3px; }
.bookstore-details-link { display:block; margin-top:14px; padding:0; background:none; border:0; color:#f49dad; font:800 12px Arial,Helvetica,sans-serif; cursor:pointer; text-align:left; }
.bookstore-details-link:hover,.bookstore-details-link:focus-visible { color:#fff; text-decoration:underline; }
.bookstore-detail-layout { display:grid; grid-template-columns:minmax(160px,230px) minmax(0,1fr); gap:30px; align-items:start; margin-top:22px; }
.bookstore-detail-cover { background:#09080a; border:1px solid #4d2e38; border-radius:7px; min-height:260px; display:flex; justify-content:center; align-items:center; color:#b6a4aa; text-align:center; padding:8px; }
.bookstore-detail-cover img { width:100%; height:auto; display:block; border-radius:3px; }
#bookstore-detail-title { margin:13px 0 16px; font-size:clamp(23px,3vw,32px); line-height:1.2; }
.bookstore-detail-short { font-size:15px!important; color:#dcc8d0!important; }
.bookstore-detail-section-title { font-size:15px; color:#fff; letter-spacing:.3px; margin:22px 0 10px; }
.bookstore-detail-description { color:#d6cbd0; font:15px/1.7 Arial,Helvetica,sans-serif; overflow-wrap:anywhere; }
.bookstore-detail-description p { color:inherit; margin:0 0 13px; white-space:pre-line; }
.bookstore-detail-description ul,.bookstore-detail-description ol { margin:10px 0 16px; padding-left:24px; }
.bookstore-detail-description h2,.bookstore-detail-description h3 { color:#fff; font-size:17px; margin:15px 0 8px; }
.bookstore-detail-purchase { border-top:1px solid #503039; padding-top:20px; margin-top:22px; }
.bookstore-detail-price { display:block; font-size:27px; margin-top:6px; }
.bookstore-detail-actions { display:flex; flex-wrap:wrap; align-items:flex-end; gap:13px 16px; margin-top:17px; }
.bookstore-detail-actions label { font:800 11px Arial,Helvetica,sans-serif; letter-spacing:1px; color:#d9bac5; }
.bookstore-detail-actions .bookstore-quantity { background:#0b090d; border:1px solid #69414d; border-radius:6px; color:#fff; width:63px; text-align:center; padding:10px 6px; appearance:textfield; -moz-appearance:textfield; }
.bookstore-detail-actions .bookstore-quantity::-webkit-inner-spin-button,.bookstore-detail-actions .bookstore-quantity::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.bookstore-detail-cart-action { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; min-height:40px; padding:10px 16px; font-size:14px; line-height:1.1; }
.bookstores-page .bookstore-detail-cart-action:link,.bookstores-page .bookstore-detail-cart-action:visited { color:#fff; }
.bookstore-detail-help { margin-top:14px; font-size:12px!important; }
@media(max-width:650px) { .bookstore-detail-layout { grid-template-columns:1fr; gap:17px; } .bookstore-detail-cover { max-width:190px; min-height:0; } .bookstores-page .bookstore-account-nav { gap:6px; } .bookstores-page .bookstore-account-nav .bookstore-header-cart { padding:8px 10px; } }

/* V15 bookstore account registration and reset forms. */
.bookstore-auth-links {display:flex; flex-wrap:wrap; gap:8px; margin-top:14px;}
.bookstore-auth-links button {font-size:12px; padding:9px 13px;}
#bookstore-password-accounts [hidden],#bookstore-login[hidden]{display:none!important}
#bookstore-password-accounts form h3{color:#fff;margin:0}
#bookstore-password-accounts form p{font-size:13px}

/* V16: focused account-first entrance; application reveals only on request. */
.bookstores-page .bookstore-header { justify-content:space-between; }
.bookstores-page .bookstore-header .bookstore-logo { margin:0 auto 0 0; min-width:0; text-align:left; align-items:flex-start; }
.bookstores-page .bookstore-header .bookstore-logo span { max-width:none!important; text-align:left!important; display:block; }
.bookstores-page .bookstore-header .bookstore-logo-name { white-space:nowrap; }
.bookstores-page #bookstore-intro { display:flex; flex-direction:column; gap:18px; align-items:flex-start; }
.bookstores-page #bookstore-login-panel { width:100%; max-width:580px; box-sizing:border-box; order:1; }
.bookstores-page #bookstore-application-panel { width:100%; max-width:760px; box-sizing:border-box; order:2; }
.bookstores-page #bookstore-intro [hidden],.bookstores-page #bookstore-new-partner[hidden] { display:none!important; }
.bookstores-page .bookstore-new-partner { margin-top:25px; border-top:1px solid #45313b; padding-top:20px; }
.bookstores-page .bookstore-new-partner p { font-size:13px; margin:0 0 12px; }
.bookstores-page .bookstore-text-action { display:inline-block; background:none; border:0; padding:8px 0; color:#fff; text-decoration:underline; text-underline-offset:3px; font:700 13px Arial,Helvetica,sans-serif; cursor:pointer; }
.bookstores-page .bookstore-text-action:hover { color:#e64c59; }
.bookstores-page .bookstore-auth-links { margin-top:0; }
.bookstores-page #bookstore-back-to-signin { margin-top:15px; }
.bookstores-page .bookstore-existing-reader-help { border-top:1px solid #45313b; margin-top:16px; padding-top:16px; display:flex; flex-wrap:wrap; gap:8px 12px; align-items:center; font-size:13px; color:#ded4d8; }
.bookstores-page .bookstore-existing-reader-help[hidden] { display:none!important; }
.bookstores-page #bookstore-password-accounts { max-width:100%; }
.bookstores-page #bookstore-password-accounts form { margin-top:18px; }
.bookstores-page #bookstore-guest-hero { margin-bottom:16px; }
.bookstores-page .bookstore-wrap { padding-top:30px; }
@media(max-width:750px) {
 .bookstores-page .bookstore-header { width:auto; padding:17px 20px; align-items:flex-start; justify-content:flex-start; }
 .bookstores-page .bookstore-header .bookstore-logo { flex:0 1 auto; align-items:flex-start; margin:0 auto 0 0; }
 .bookstores-page .bookstore-header .bookstore-logo .bookstore-logo-name { font-size:20px; letter-spacing:1.3px; }
 .bookstores-page .bookstore-header .bookstore-logo .bookstore-logo-subtitle { font-size:9px; letter-spacing:.8px; }
 .bookstores-page .bookstore-wrap { padding:25px 20px 55px; }
 .bookstores-page #bookstore-guest-hero h1 { font-size:clamp(26px,7vw,37px); max-width:100%; }
 .bookstores-page #bookstore-guest-hero .bookstore-subtitle { font-size:14px; margin-bottom:14px; line-height:1.55; }
}

/* V18: focused sign-in, without a second hero or onboarding noise. */
html.bookstore-password-mode #bookstore-guest-hero,
html.bookstore-password-mode #bookstore-auth-description,
html.bookstore-password-mode #bookstore-invite-help { display:none!important; }
html.bookstore-password-mode:not(.bookstore-partner-active) .bookstore-wrap { padding-top:clamp(30px,6vh,70px); }
html.bookstore-password-mode #bookstore-intro {
  align-items:center;
  margin:0 auto;
  max-width:820px;
  gap:24px;
}
html.bookstore-password-mode #bookstore-login-panel {
  width:100%; max-width:490px;
  order:1; padding:clamp(22px,4vw,38px);
}
html.bookstore-password-mode #bookstore-login-panel h2 { margin-bottom:20px; font-size:26px; }
.bookstores-page .bookstore-primary, .bookstores-page .bookstore-secondary { font-family:Arial,Helvetica,sans-serif; }
html.bookstore-password-mode #bookstore-password-signin { gap:19px; margin-top:0; }
html.bookstore-password-mode #bookstore-password-signin .bookstore-primary {
  width:100%; min-height:49px; font-size:15px;
}
html.bookstore-password-mode #bookstore-signin-actions {
  justify-content:center; margin-top:12px;
}
html.bookstore-password-mode .bookstore-new-partner {
  border-top:1px solid #49333d;
  padding-top:24px; margin-top:25px;
}
html.bookstore-password-mode #bookstore-show-application {
  display:block; width:100%; min-height:48px;
  border:1px solid #b34156;
  border-radius:999px;
  color:#fff; font-size:14px;
  font-weight:800;
  background:transparent;
}
html.bookstore-password-mode #bookstore-show-application:hover,
html.bookstore-password-mode #bookstore-show-application:focus-visible {
  background:#461725; border-color:#ec5269;
}
html.bookstore-password-mode #bookstore-application-panel {
  width:100%; max-width:760px; margin:0 auto;
}
html.bookstore-password-mode #bookstore-application-panel h2 { line-height:1.18; }
@media(max-width:650px) {
  html.bookstore-password-mode .bookstore-wrap { padding:25px 16px 55px; }
  html.bookstore-password-mode #bookstore-login-panel { padding:25px 22px; }
}

/* V21: In-context feedback under form actions. */
.bookstore-inline-feedback{margin:0 !important;padding:11px 13px;border-radius:7px;border:1px solid #56705f;color:#d5f1dd !important;background:#122119;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.bookstore-inline-feedback[data-error="true"]{border-color:#d32844;background:#35141d;color:#fff !important}
.bookstore-inline-feedback[hidden]{display:none!important}


/* V24: a single sign-in and one clear application action. */
.bookstores-page .bookstore-existing-reader-help { display:none!important; }
html.bookstore-password-mode .bookstore-new-partner {
  margin-top:20px;
  padding-top:0;
  border-top:0;
  display:grid;
  gap:12px;
}
html.bookstore-password-mode #bookstore-show-application {
  display:block;
  width:100%;
  min-height:49px;
  padding:12px 18px;
  box-sizing:border-box;
  border:1px solid #b31632;
  border-radius:999px;
  background:#111014;
  color:#fff;
  font:800 14px/1.3 Arial,Helvetica,sans-serif;
  text-align:center;
  cursor:pointer;
}
html.bookstore-password-mode #bookstore-show-application:hover,
html.bookstore-password-mode #bookstore-show-application:focus-visible {
  background:#461725;
  border-color:#db2b46;
}
.bookstores-page .bookstore-existing-reader-note {
  margin:5px 0 22px;
  font-size:13px;
  line-height:1.5;
  color:#e1d9dd;
}
.bookstores-page .bookstore-existing-reader-note .bookstore-text-action {
  padding:0;
  font-size:13px;
  font-weight:700;
}
.bookstores-page .bookstore-existing-reader-note[hidden] { display:none!important; }

/* Hide ALL main content until async config and session checks finish. */
.bookstore-session-loader {
  display:none;
  margin:clamp(32px,8vh,90px) auto 0;
  padding:24px;
  width:100%;
  max-width:490px;
  box-sizing:border-box;
  border:0;
  background:transparent;
  color:#eee6e9;
  align-items:center;
  justify-content:center;
  gap:14px;
  font-size:14px;
}
html.bookstore-session-restoring .bookstore-session-loader { display:flex; }
html.bookstore-session-restoring .bookstore-wrap > :not(.bookstore-session-loader) { display:none!important; }
.bookstore-loader-spinner {
  width:26px;height:26px;display:block;flex:none;
  border:3px solid #49313b;
  border-top-color:#ce263e;
  border-radius:50%;
  animation:bookstore-loader-spin .8s linear infinite;
}
@keyframes bookstore-loader-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .bookstore-loader-spinner { animation:none; } }

html.bookstore-session-restoring .bookstore-header,
html.bookstore-session-restoring .bookstore-footer { visibility:hidden; }

/* V25: clear bookstore navigation and pen-name filtering. */
.bookstores-page .bookstore-account-nav #bookstore-catalog-link[hidden]{display:none!important}
.bookstores-page .bookstore-account-nav #bookstore-catalog-link{white-space:nowrap}
.bookstore-author-toolbar{margin-top:0;padding-top:14px;border-top:0}
.bookstore-badges{display:flex;flex-wrap:wrap;align-items:center;gap:7px}
.bookstore-author-badge{display:inline-flex;align-items:center;justify-content:center;min-height:28px;box-sizing:border-box;padding:0 10px;border:1px solid #d04b55;border-radius:4px;color:#fff;background:#2c141b;font:800 10px/1.15 Arial,Helvetica,sans-serif;letter-spacing:.6px;text-transform:uppercase;white-space:normal;text-align:center}
.bookstore-author-nora{border-color:#cab59a;background:#302922;color:#fff0df}
.bookstore-author-unassigned{border-color:#766d70;background:#29262a;color:#ddd5d8}
@media(max-width:650px){.bookstores-page .bookstore-account-nav{gap:5px}.bookstore-author-toolbar{gap:7px}.bookstore-author-badge{font-size:9px;min-height:26px;padding:4px 7px}}

/* V26: compact searchable catalog; the redundant welcome panel was removed. */
.bookstores-page #bookstore-catalog>.bookstore-search-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:0 0 12px}
.bookstores-page #bookstore-search{box-sizing:border-box;width:min(100%,440px);min-width:180px;flex:1 1 240px;min-height:42px;padding:10px 14px;border:1px solid #67404d;border-radius:7px;color:#fff;background:#09090b;font:14px Arial,Helvetica,sans-serif}
.bookstores-page #bookstore-search::placeholder{color:#ad9ca3;opacity:1}
.bookstores-page #bookstore-search:focus-visible{outline:2px solid #bd203c;outline-offset:2px}
.bookstores-page .bookstore-search-clear{padding:10px 13px;border:1px solid #814052;border-radius:7px;color:#fff;background:transparent;cursor:pointer;font-weight:700}
.bookstores-page .bookstore-search-clear[hidden]{display:none!important}
.bookstores-page #bookstore-catalog>.bookstore-catalog-toolbar{margin-top:6px;padding-top:12px}
.bookstores-page #bookstore-catalog>.bookstore-author-toolbar{padding-top:8px}
@media(max-width:520px){.bookstores-page #bookstore-catalog>.bookstore-search-row{align-items:stretch}.bookstores-page #bookstore-search{min-width:0;width:100%}}
/* V26: shared bookstore navigation on the checkout page (public carts unaffected). */
.shop-preview-page.bookstore-cart-mode .site-header{gap:14px;flex-wrap:wrap;border-bottom-color:#38232a}
.shop-preview-page.bookstore-cart-mode .brand{flex:0 0 auto}
.shop-preview-page.bookstore-cart-mode .brand-tag{color:#e34a56}
.shop-preview-page.bookstore-cart-mode .checkout-header-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap;margin-left:auto}
.shop-preview-page.bookstore-cart-mode .checkout-header-actions>a,.shop-preview-page.bookstore-cart-mode .checkout-header-actions>button,.shop-preview-page.bookstore-cart-mode .checkout-header-actions>.bookstore-cart-current{display:inline-flex;align-items:center;justify-content:center;min-height:36px;box-sizing:border-box;padding:8px 13px;border:1px solid #6c374a;border-radius:999px;background:#1d1419;color:#fff;text-decoration:none;white-space:nowrap;font:800 12px Arial,Helvetica,sans-serif;cursor:pointer}
.shop-preview-page.bookstore-cart-mode .checkout-header-actions>.bookstore-cart-current{background:#a81430;border-color:#d92a46;cursor:default}
.shop-preview-page.bookstore-cart-mode .checkout-header-actions>[hidden]{display:none!important}
.shop-preview-page.bookstore-cart-mode .checkout-header-actions>a:hover,.shop-preview-page.bookstore-cart-mode .checkout-header-actions>button:hover{border-color:#e24a65;background:#361721}
@media(max-width:650px){.shop-preview-page.bookstore-cart-mode .site-header{align-items:flex-start}.shop-preview-page.bookstore-cart-mode .checkout-header-actions{width:100%;margin-left:0;justify-content:flex-end}.shop-preview-page.bookstore-cart-mode .checkout-header-actions>a,.shop-preview-page.bookstore-cart-mode .checkout-header-actions>button,.shop-preview-page.bookstore-cart-mode .checkout-header-actions>.bookstore-cart-current{font-size:11px;padding:7px 10px}}
/* Keep both address lines full-width on desktop and mobile checkout. */
.shop-preview-page.bookstore-cart-mode .bookstore-address-grid label:first-of-type,
.shop-preview-page.bookstore-cart-mode .bookstore-address-grid label:nth-of-type(2){grid-column:1/-1}

/* V27: Bookstore FAQ page */
.bookstore-faq-panel{max-width:860px;margin:0 auto;}
.bookstore-faq-panel h1{font-size:clamp(25px,4vw,38px);line-height:1.2;margin:0 0 27px;color:#fff;}
.bookstore-faq-list{display:grid;gap:10px;}
.bookstore-faq-item{border:1px solid #51323f;background:#141116;border-radius:9px;overflow:hidden;}
.bookstore-faq-item summary{cursor:pointer;padding:18px 20px;font-weight:800;color:#fff;list-style-position:inside;}
.bookstore-faq-item summary:hover{background:#24161d;}
.bookstore-faq-item[open] summary{border-bottom:1px solid #49313a;}
.bookstore-faq-answer{padding:17px 21px;color:#e0d7da;line-height:1.7;overflow-wrap:anywhere;}
.bookstore-faq-answer>*:first-child{margin-top:0;}.bookstore-faq-answer>*:last-child{margin-bottom:0;}
.bookstore-faq-answer a{color:#f38191;text-decoration:underline;}
.bookstore-faq-help{margin:26px 0 0;color:#bfaeb3;font-size:14px;}
.bookstore-faq-page .bookstore-account-nav [aria-current="page"]{border-color:#b6193b;background:#3d1521;}
@media(max-width:600px){.bookstore-faq-item summary{padding:16px}.bookstore-faq-answer{padding:15px 16px}}

/* Bookstore registration: clear existing-account action with generous separation. */
.bookstores-page #bookstore-application-panel > h2 { margin-bottom: 24px; }
.bookstores-page .bookstore-existing-reader-note { margin:0 0 27px; display:flex; flex-direction:column; align-items:flex-start; gap:13px; }
.bookstores-page .bookstore-existing-reader-note p { margin:0; color:#f3eff0; font-size:14px; }
.bookstores-page .bookstore-existing-reader-note .bookstore-existing-login-button { display:inline-flex; justify-content:center; align-items:center; min-height:46px; max-width:100%; text-align:center; text-decoration:none; line-height:1.35; border-radius:7px; background:#a71024; color:#fff; font-weight:800; font-size:14px; padding:12px 20px; }
.bookstores-page .bookstore-existing-reader-note .bookstore-existing-login-button:hover,
.bookstores-page .bookstore-existing-reader-note .bookstore-existing-login-button:focus-visible { background:#c51c32; border-color:#e34b57; color:#fff; }

/* V29: immutable identity email, styled distinctly from editable delivery fields */
.bookstore-locked-email{display:grid;gap:7px;margin-bottom:16px}.bookstore-field-title{font-weight:700}.bookstore-email-value{display:block;overflow-wrap:anywhere;border:1px solid #49414a;background:#211e22;border-radius:7px;padding:14px;color:#ddd}.bookstore-locked-email small{color:#bbb}
