/* Approved Thorne & Quill refresh. Scoped to the Bookshop and its native cart dialog. */
.web-bookshop.refresh{padding:0 0 72px;width:min(1240px,100%);margin:0 auto;color-scheme:dark}
.web-bookshop.refresh .shop-nav{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--house-rule);min-height:72px;gap:24px;font-size:14px}
.web-bookshop.refresh .shop-nav>div{display:flex;gap:32px}
.web-bookshop.refresh .shop-nav a{display:flex;align-items:center;gap:9px;min-height:72px;text-decoration:none;color:var(--house-muted);border-bottom:2px solid transparent}
.web-bookshop.refresh .shop-nav a.active{color:var(--house-gold);border-color:var(--house-gold)}
.web-bookshop.refresh .shop-nav a span{color:var(--house-muted);font-size:12px}
.web-bookshop.refresh .shop-nav .cart-jump{color:var(--house-text)}
.web-bookshop.refresh .shop-nav .cart-jump span{border:1px solid var(--house-rule);border-radius:50%;min-width:26px;line-height:24px;text-align:center}
.web-bookshop.refresh .shop-hero{border:0;background:none;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr);align-items:center;gap:60px;padding:42px 0 44px}
.web-bookshop.refresh .shop-hero h1{font-size:clamp(42px,4.8vw,66px);line-height:1.1;letter-spacing:-.035em;margin:16px 0 20px;color:var(--house-text)}
.web-bookshop.refresh .shop-hero h1 em{font-weight:400;color:var(--house-gold)}
.web-bookshop.refresh .shop-hero p:not(.eyebrow){color:var(--house-muted);font-size:16px;line-height:1.65;max-width:580px;margin:0 0 22px}
.web-bookshop.refresh .eyebrow{color:var(--house-gold)}
.web-bookshop.refresh .shop-hero-art{display:flex;align-items:center;justify-content:center;min-width:0;height:250px;padding:8px 15px}
.web-bookshop.refresh .shop-hero-art img{height:205px;width:auto;max-width:37%;object-fit:contain;box-shadow:0 16px 24px #0007;border-radius:3px}
.web-bookshop.refresh .shop-hero-art img:first-child{transform:rotate(-9deg) translateX(12px)}
.web-bookshop.refresh .shop-hero-art img:nth-child(2){height:242px;z-index:1}
.web-bookshop.refresh .shop-hero-art img:last-child{transform:rotate(9deg) translateX(-12px)}
.web-bookshop.refresh .web-bookshop-assurance{border-width:1px 0;display:flex;justify-content:space-between;gap:16px}
.web-bookshop.refresh .web-bookshop-assurance span{font-size:12px;letter-spacing:0;text-transform:none;color:var(--house-muted);padding:15px 0;border:0}
.web-bookshop.refresh .web-bookshop-assurance span:first-child{color:var(--house-gold)}
.web-bookshop.refresh .web-bookshop-member-note{margin-top:0;border:0;background:transparent;padding:16px 0;color:var(--house-muted);font-size:13px;border-bottom:1px solid var(--house-rule)}
.web-bookshop.refresh .web-bookshop-member-note strong{letter-spacing:0;font-weight:500;color:var(--house-text)}
.web-bookshop.refresh .web-bookshop-layout{grid-template-columns:minmax(0,1fr) 320px;gap:36px;scroll-margin-top:24px}
.web-bookshop.refresh .web-bookshop-tools{grid-template-columns:minmax(0,1fr) 170px;gap:16px;margin:32px 0 28px}
.web-bookshop.refresh .web-bookshop-tools input,.web-bookshop.refresh .web-bookshop-tools select{background:#0c1a28;border-color:var(--house-rule);border-radius:6px;min-height:48px;color:var(--house-text);font-size:14px}
.web-bookshop.refresh .web-bookshop-tools label{font-size:11px;letter-spacing:.1em;color:var(--house-muted)}
.web-bookshop.refresh .web-bookshop-heading{display:block;margin-bottom:24px}
.web-bookshop.refresh .web-bookshop-heading .eyebrow{font-size:11px;margin-bottom:7px}
.web-bookshop.refresh .web-bookshop-heading h2{font-size:28px;color:var(--house-text);line-height:1.25}
.web-bookshop.refresh .web-bookshop-heading>p{font-size:13px;margin:8px 0 0;min-height:20px;color:var(--house-muted)}
.web-bookshop.refresh .web-bookshop-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 22px}
.web-bookshop.refresh .web-bookshop-card,.web-bookshop.refresh .web-bookshop-card.is-featured{border:0;background:transparent;box-shadow:none;display:flex;flex-direction:column;min-width:0;border-radius:0;overflow:visible}
.web-bookshop.refresh .web-bookshop-cover{display:flex;position:relative;justify-content:center;align-items:center;height:auto;aspect-ratio:4/5;padding:18px;background:#132432;border:1px solid #243846;border-radius:8px;overflow:hidden}
.web-bookshop.refresh .web-bookshop-cover img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;border-radius:2px;filter:drop-shadow(0 9px 8px #0006);transition:transform .2s ease}
.web-bookshop.refresh .web-bookshop-cover:hover img{transform:translateY(-4px)}
.web-bookshop.refresh .web-bookshop-featured-badge{top:10px;left:10px;background:var(--house-ink);color:var(--house-gold);border:1px solid #4c4b3d;border-radius:4px;padding:4px 7px;letter-spacing:.08em;font-size:9px}
.web-bookshop.refresh .web-bookshop-copy{padding:17px 0 0;display:flex;flex:1;flex-direction:column;gap:0}
.web-bookshop.refresh .web-bookshop-copy .eyebrow{font-size:10px;letter-spacing:.07em;line-height:1.5;min-height:30px;color:var(--house-muted);margin:0 0 8px}
.web-bookshop.refresh .web-bookshop-copy h3{font-family:var(--font-serif);font-size:23px;font-weight:400;line-height:1.22;margin:0 0 12px;min-height:56px;text-transform:none}
.web-bookshop.refresh .web-bookshop-copy h3 a{color:var(--house-text);text-decoration:none}
.web-bookshop.refresh .web-bookshop-copy>p:not(.eyebrow){display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:1.6;color:var(--house-muted);margin:0 0 20px;min-height:62px}
.web-bookshop.refresh .web-bookshop-copy footer{margin-top:auto;padding-top:0;border:0;display:grid;gap:13px}
.web-bookshop.refresh .web-bookshop-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 8px}
.web-bookshop.refresh .web-bookshop-price strong{font-size:18px;color:var(--house-text)}
.web-bookshop.refresh .web-bookshop-price small{font-size:11px;letter-spacing:0;text-transform:none;color:var(--house-gold)}
.web-bookshop.refresh .web-bookshop-card-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}
.web-bookshop.refresh .web-bookshop-card-actions>a{font-size:12px;text-transform:none;letter-spacing:0;color:var(--house-muted);padding:10px 0;min-height:44px}
.web-bookshop.refresh .web-bookshop-card-actions button,.web-bookshop.refresh .web-bookshop-card-actions .web-bookshop-retail-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;min-height:40px;padding:0 14px;border-radius:999px;font-size:12px;letter-spacing:0;text-transform:none;background:transparent;border:1px solid #786f56;color:var(--house-gold)}
.web-bookshop.refresh .web-bookshop-card-actions button:hover,.web-bookshop.refresh .web-bookshop-card-actions .web-bookshop-retail-link:hover{background:var(--house-gold);color:var(--house-ink)}
.web-bookshop.refresh .web-bookshop-cart{margin-top:32px;border:1px solid #46544f;border-radius:10px;background:#102131;box-shadow:none;padding:22px;gap:20px;scroll-margin-top:24px}
.web-bookshop.refresh .web-bookshop-cart .eyebrow{margin:0 0 7px;font-size:10px}
.web-bookshop.refresh .web-bookshop-cart h2{font-size:29px;line-height:1.2;color:var(--house-text)}
.web-bookshop.refresh .web-bookshop-text-button{font-size:11px;letter-spacing:0;text-transform:none;min-height:32px;color:var(--house-muted);text-decoration:underline}
.web-bookshop.refresh .web-bookshop-cart-line{grid-template-columns:1fr auto;gap:10px;padding:12px 0;border-top:0;border-bottom:1px solid var(--house-rule)}
.web-bookshop.refresh .web-bookshop-cart-line>div:first-child{grid-column:1/-1}
.web-bookshop.refresh .web-bookshop-cart-line strong{font-size:13px;font-weight:500;line-height:1.4}
.web-bookshop.refresh .web-bookshop-cart-line small{font-size:11px}
.web-bookshop.refresh .web-bookshop-cart-line>strong{justify-self:end;align-self:center;font-size:14px;color:var(--house-text)}
.web-bookshop.refresh .web-bookshop-quantity{grid-template-columns:repeat(3,32px);justify-self:start;gap:0;line-height:32px;font-size:13px}
.web-bookshop.refresh .web-bookshop-quantity button{width:32px;height:32px;background:transparent;border:1px solid #405260;border-radius:4px;font-size:17px}
.web-bookshop.refresh .web-bookshop-cart>footer{gap:12px;padding-top:18px}
.web-bookshop.refresh .web-bookshop-cart>footer p{font-size:14px}
.web-bookshop.refresh .web-bookshop-cart>footer p strong{color:var(--house-text);font-size:22px}
.web-bookshop.refresh .web-bookshop-cart>footer small{font-size:11px;line-height:1.5}
.web-bookshop.refresh .web-bookshop-cart>footer .web-bookshop-primary{font-size:12px;padding:12px;line-height:1.4;min-height:46px}
.web-bookshop.refresh .web-bookshop-cart-empty{border:0;padding:20px 4px 12px}
.web-bookshop.refresh .web-bookshop-cart-items{gap:0}
.web-bookshop.refresh .web-bookshop-detail-nav{font-size:13px;border:0;padding:25px 0}
.web-bookshop.refresh.is-book-detail .shop-nav{display:flex}
.web-bookshop.refresh.is-book-detail .web-bookshop-layout{margin-top:20px}
.web-bookshop.refresh .web-bookshop-detail-shell{border:0;background:none;padding:0;gap:28px;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
.web-bookshop.refresh .web-bookshop-detail-cover{background:#132432;border-radius:8px;border:1px solid #243846;padding:22px;margin:0;align-self:start}
.web-bookshop.refresh .web-bookshop-detail-copy{padding:0}
.web-bookshop.refresh .web-bookshop-detail-copy h1{font-size:38px;line-height:1.15;color:var(--house-text)}
.web-bookshop.refresh .web-bookshop-detail-description{font-size:14px;line-height:1.8;color:var(--house-muted)}
.web-bookshop.refresh .web-bookshop-detail-facts{grid-template-columns:1fr 1fr;border-color:var(--house-rule)}
.web-bookshop.refresh .web-bookshop-detail-facts div{padding:12px 0;background:none;border:0}
.web-bookshop.refresh .web-bookshop-detail-facts dd{font-size:12px}
.web-bookshop.refresh .web-bookshop-detail-purchase{background:none;border-color:var(--house-rule)}
.web-bookshop.refresh .web-bookshop-detail-purchase button,.web-bookshop.refresh .web-bookshop-detail-purchase .web-bookshop-retail-link{border-radius:999px;letter-spacing:0;text-transform:none;font-size:14px}
.web-bookshop.refresh .web-bookshop-share{border:0;background:#102131;border-radius:6px;padding:15px}
.web-bookshop.refresh .web-bookshop-share span{font-size:12px}
#mobile-cart-dialog{background:var(--house-raised);color:var(--house-text);border:1px solid var(--house-rule);border-radius:12px;padding:32px;max-width:min(480px,calc(100% - 40px))}
#mobile-cart-dialog::backdrop{background:#0009}
#mobile-cart-dialog h2{font-size:30px}
@media(max-width:1100px){.web-bookshop.refresh .web-bookshop-layout{grid-template-columns:minmax(0,1fr) 290px;gap:26px}
.web-bookshop.refresh .web-bookshop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.web-bookshop.refresh .shop-hero-art{height:220px}
.web-bookshop.refresh .shop-hero-art img{height:170px}
.web-bookshop.refresh .shop-hero-art img:nth-child(2){height:210px}
.web-bookshop.refresh .shop-hero{gap:35px}
}
@media(max-width:900px){.web-bookshop.refresh .web-bookshop-layout{grid-template-columns:1fr}
.web-bookshop.refresh .web-bookshop-cart{grid-row:1;max-width:none}
.web-bookshop.refresh .web-bookshop-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.web-bookshop.refresh .shop-hero{grid-template-columns:1fr 1fr;gap:20px}
.web-bookshop.refresh .shop-hero h1{font-size:44px}
.web-bookshop.refresh .shop-hero p:not(.eyebrow){font-size:14px}
.web-bookshop.refresh .web-bookshop-tools{margin-top:10px}
.web-bookshop.refresh .shop-nav>div{gap:24px}
}
@media(max-width:620px){.web-bookshop.refresh .shop-nav{min-height:62px;gap:10px}
.web-bookshop.refresh .shop-nav>div{gap:18px}
.web-bookshop.refresh .shop-nav a{font-size:12px;min-height:62px}
.web-bookshop.refresh .shop-nav a span{display:none}
.web-bookshop.refresh .shop-nav .cart-jump span{display:inline}
.web-bookshop.refresh .shop-nav .cart-jump{gap:6px}
.web-bookshop.refresh .shop-hero{grid-template-columns:1fr;padding:32px 0;gap:24px}
.web-bookshop.refresh .shop-hero h1{font-size:44px;margin:10px 0 18px}
.web-bookshop.refresh .shop-hero p:not(.eyebrow){font-size:15px}
.web-bookshop.refresh .shop-hero-art{height:190px}
.web-bookshop.refresh .shop-hero-art img{height:155px}
.web-bookshop.refresh .shop-hero-art img:nth-child(2){height:185px}
.web-bookshop.refresh .web-bookshop-assurance{flex-wrap:wrap;justify-content:flex-start;gap:0 16px;padding:9px 0}
.web-bookshop.refresh .web-bookshop-assurance span{padding:4px 0;font-size:11px}
.web-bookshop.refresh .web-bookshop-member-note{font-size:12px;padding:14px 0}
.web-bookshop.refresh .web-bookshop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 16px}
.web-bookshop.refresh .web-bookshop-copy h3{font-size:21px;min-height:52px}
.web-bookshop.refresh .web-bookshop-copy>p:not(.eyebrow){font-size:12px;min-height:58px}
.web-bookshop.refresh .web-bookshop-cover{padding:12px}
.web-bookshop.refresh .web-bookshop-card-actions{gap:3px}
.web-bookshop.refresh .web-bookshop-card-actions button,.web-bookshop.refresh .web-bookshop-card-actions .web-bookshop-retail-link{width:100%}
.web-bookshop.refresh .web-bookshop-tools{grid-template-columns:1fr}
.web-bookshop.refresh .web-bookshop-detail-shell{grid-template-columns:1fr}
.web-bookshop.refresh .web-bookshop-detail-cover{max-width:300px;margin:auto}
.web-bookshop.refresh .web-bookshop-detail-copy h1{font-size:36px}
.web-bookshop.refresh .web-bookshop-cart{margin-top:24px}
.web-bookshop.refresh .web-bookshop-heading h2{font-size:27px}
}
@media(prefers-reduced-motion:reduce){.web-bookshop.refresh .web-bookshop-cover img{transition:none}
}

/* Align the start of the catalog and cart so both fit at the shelf anchor. */.web-bookshop.refresh .web-bookshop-layout{margin-top:32px}
.web-bookshop.refresh .web-bookshop-tools,.web-bookshop.refresh .web-bookshop-cart{margin-top:0}
.web-bookshop.refresh .mobile-cart-trigger{display:none}
#mobile-cart-dialog{padding:18px;width:min(480px,calc(100% - 24px));max-width:none;max-height:calc(100dvh - 24px);overflow:hidden}
#mobile-cart-dialog .dialog-tools{display:flex;justify-content:space-between;align-items:center;margin:0 0 12px;font-size:13px;color:var(--house-muted)}
#mobile-cart-dialog .dialog-tools button{min-height:36px;border:1px solid var(--house-rule);border-radius:999px;padding:0 16px;background:transparent;color:var(--house-text);font:inherit}
#mobile-cart-dialog .web-bookshop-cart{margin:0;padding:18px;background:var(--house-raised);border:1px solid var(--house-rule);border-radius:8px;max-height:calc(100dvh - 130px);position:static;gap:12px}
#mobile-cart-dialog .web-bookshop-cart-items{flex:1 1 auto;max-height:none}
#mobile-cart-dialog .web-bookshop-cart-line{padding:12px 0;border-bottom:1px solid var(--house-rule);border-top:0}
#mobile-cart-dialog .web-bookshop-cart h2{font-size:26px}
#mobile-cart-dialog .web-bookshop-cart footer small{font-size:11px}
#mobile-cart-dialog .web-bookshop-cart footer .web-bookshop-primary{font-size:12px;letter-spacing:0;text-transform:none;padding:10px}
@media(max-width:900px){.web-bookshop.refresh .mobile-cart-trigger{display:flex;position:fixed;bottom:16px;right:20px;z-index:30;align-items:center;gap:14px;padding:12px 22px;background:var(--house-gold);color:var(--house-ink);border:1px solid var(--house-gold);border-radius:999px;box-shadow:0 6px 30px #0005;font:500 14px var(--font-sans);min-height:48px}
.web-bookshop.refresh .web-bookshop-layout{margin-top:26px}
}
@media(max-height:540px){#mobile-cart-dialog{overflow:auto}
#mobile-cart-dialog .web-bookshop-cart{max-height:none;flex:0 0 auto}
#mobile-cart-dialog .web-bookshop-cart-items{max-height:40dvh;flex:0 1 auto}
}
.web-bookshop.refresh .web-bookshop-detail-facts{background:transparent;padding:0;border-top:1px solid var(--house-rule);border-bottom:1px solid var(--house-rule)}
.web-bookshop.refresh .web-bookshop-share button{border-radius:999px;font-size:12px;letter-spacing:0;text-transform:none;min-height:40px;padding:0 16px}
.web-bookshop.refresh .web-bookshop-card-actions>a{border:0}

.web-bookshop.refresh .mobile-cart-trigger[hidden]{display:none!important}
.web-bookshop.refresh .shop-nav[hidden]{display:none!important}
.web-bookshop.refresh[data-bookshop-view="landing"] .mobile-cart-trigger{display:none!important}
@media(max-width:900px){.web-bookshop.refresh{padding-bottom:96px}}
/* Preserve the shelf/detail visibility contract after increasing CSS scope. */
.web-bookshop.refresh.is-book-detail .shop-hero,
.web-bookshop.refresh.is-book-detail .web-bookshop-assurance,
.web-bookshop.refresh.is-book-detail .web-bookshop-member-note,
.web-bookshop.refresh.is-book-detail .web-bookshop-tools,
.web-bookshop.refresh.is-book-detail .web-bookshop-heading,
.web-bookshop.refresh.is-book-detail .web-bookshop-grid{display:none}

.web-bookshop.refresh[data-bookshop-view="books"] .shop-nav{display:flex}
.web-bookshop.refresh .mobile-cart-trigger{right:auto;left:20px}

/* Keep checkout feedback visible inside the modal, including long errors. */
#mobile-cart-dialog[open]{display:flex;flex-direction:column;gap:12px}
#mobile-cart-dialog .dialog-tools{flex:0 0 auto;margin-bottom:0}
#mobile-cart-dialog .dialog-status{flex:0 0 auto;max-height:6em;overflow:auto;margin:0;padding:10px 12px;border:1px solid var(--house-rule);border-radius:6px;color:var(--house-text);font-size:13px;line-height:1.5;overflow-wrap:anywhere}
#mobile-cart-dialog .dialog-status[hidden]{display:none}
#mobile-cart-dialog .dialog-status:focus-visible{outline:2px solid var(--house-gold);outline-offset:2px}
#mobile-cart-dialog .web-bookshop-cart{flex:1 1 auto;min-height:0}
@media(max-height:540px){#mobile-cart-dialog .web-bookshop-cart{flex:0 0 auto}}
