.guest-flow { max-width: 1020px; margin-inline: auto; min-width: 0; }
.gf-preview-controls { max-width: 1020px; margin: 0 auto 24px; padding: 12px 16px; border: 1px dashed #b9a9c5; border-radius: 8px; background: #f6f1f8; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; }
.gf-preview-controls strong, .gf-preview-controls span { display: block; }
.gf-preview-controls span { color: #625667; font-size: .875rem; }
.gf-preview-controls button { min-height: 44px; }
.guest-flow h1 { margin: 0 0 14px; font: 800 clamp(2.35rem, 5vw, 4rem)/1.03 var(--display); letter-spacing: -.065em; overflow-wrap: anywhere; }
.guest-flow h1:focus, .gf-renew-notice:focus { outline: none; }
.guest-flow h2, .guest-flow h3 { line-height: 1.15; letter-spacing: -.045em; }
.guest-flow .order-back { margin-bottom: clamp(20px, 3vw, 34px); }
.guest-flow .order-primary { min-height: 46px; gap: 8px; }
.gf-lead { max-width: 52ch; margin-bottom: 24px; line-height: 1.6; color: #564c58; }
.gf-lead strong { color: var(--ink); overflow-wrap: anywhere; }
.gf-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.gf-status-layout, .gf-provider-layout { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.gf-status-layout > *, .gf-provider-layout > * { min-width: 0; }
.gf-summary { border: 1px solid #dacda9; border-top: 4px solid #c49336; border-radius: 10px; background: #fff2ce; padding: clamp(18px, 2.7vw, 32px); }
.gf-summary h2, .gf-letter-body h3 { margin: 0 0 12px; font-size: 1.4rem; }
.gf-books, .gf-threads { list-style: none; margin: 0; padding: 0; }
.gf-book { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; }
.gf-cover { width: 100%; aspect-ratio: .71; overflow: hidden; border-radius: 2px; box-shadow: 1px 2px 4px #2c1d382a; }
.gf-book-name { min-width: 0; display: grid; gap: 3px; }
.gf-book-name strong { font: 700 1rem/1.22 var(--display); overflow-wrap: anywhere; }
.gf-book-name span, .gf-expiry { font-size: .85rem; color: #665c62; line-height: 1.5; }
.gf-price { align-self: center; font-size: .94rem; font-weight: 650; }
.gf-totals { margin: 12px 0 0; border-top: 1px solid #d8ccae; padding-top: 12px; }
.gf-totals > div { display: flex; align-items: baseline; gap: 16px; justify-content: space-between; margin-block: 4px; font-size: .94rem; }
.gf-totals dd { margin: 0; font-weight: 650; }
.gf-totals .gf-discount { color: #4d603a; }
.gf-totals .gf-total { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid #d8ccae; font: 750 1.4rem/1.2 var(--display); letter-spacing: -.035em; }
.gf-total small { color: #655b58; font: 600 .74rem var(--body); letter-spacing: .035em; }
.gf-status { padding: clamp(20px, 3vw, 34px); border: 1px solid #d7cddd; border-radius: 15px; background: #f5eef8; }
.gf-status-icon, .gf-sender-mark { display: inline-grid; justify-content: center; align-content: center; width: 44px; height: 44px; border-radius: 12px; background: #e7dbf0; color: #55316e; }
.gf-status-icon { margin-bottom: 16px; }
.gf-reference { margin: -8px 0 22px; font-weight: 650; font-size: .91rem; }
.gf-text-button { padding: 6px 0; border: 0; background: transparent; color: #4f3862; font-weight: 650; text-decoration: underline; text-underline-offset: .2em; }
.gf-error { margin-block: 14px 0; color: #97283c; font-weight: 600; }
.gf-feedback { color: #325f47; font-size: .88rem; margin: 9px 0; }
.gf-feedback:empty { display: none; }
.gf-options { margin-top: 22px; border-top: 1px solid #d3c8d8; padding-top: 13px; }
.gf-options summary { cursor: pointer; font-weight: 650; font-size: .9rem; color: #52435c; }
.gf-options > p { margin: 9px 0 3px; color: #5e5462; font-size: .91rem; }
.gf-options > .gf-actions { margin-top: 15px; }

.gf-provider { background: #fffefa; border: 1px solid #bfcec6; border-radius: 14px; overflow: hidden; }
.gf-provider-label { padding: 13px clamp(18px, 3vw, 36px); display: flex; align-items: center; gap: 9px; background: #223e38; color: #f5fff8; font-weight: 650; }
.gf-provider-label > .ico { width: 17px; height: 17px; }
.gf-provider-label span { margin-left: auto; padding: 3px 9px; border-radius: 5px; border: 1px solid #72968a; font-size: .74rem; font-weight: 600; }
.gf-provider-layout { padding: clamp(20px, 3.5vw, 44px); }
.gf-provider .gf-summary { border-color: #d5dfd4; border-top-color: #819f8e; background: #eef3ec; }
.gf-provider .gf-totals, .gf-provider .gf-total { border-color: #c7d4c6; }
.gf-shop-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px; font-weight: 700; }
.gf-shop-brand img { width: 52px; height: auto; }
.gf-provider h1 { font-size: clamp(2.25rem, 4.2vw, 3.5rem); }
.gf-provider .order-primary { background: #244940; border-color: #244940; }
.gf-provider .order-primary:hover { background: #19372e; }
.gf-provider .gf-text-button, .gf-provider .order-link, .gf-provider summary { color: #355b4f; }
.gf-provider .gf-options { border-color: #d5dfd4; }
.gf-pay-to { margin: 0 0 24px; display: grid; gap: 10px; }
.gf-pay-to > div { display: grid; gap: 2px; }
.gf-pay-to dt, .gf-envelope dt { color: #685e68; font-size: .8rem; }
.gf-pay-to dd, .gf-envelope dd { margin: 0; overflow-wrap: anywhere; }
.gf-pay-to dd { font-weight: 620; }

.gf-inbox, .gf-email, .gf-downloads { max-width: 760px; }
.gf-mailhead { display: flex; align-items: center; gap: clamp(13px, 2.2vw, 24px); margin-bottom: 24px; }
.gf-mailhead > .ico { flex: none; width: clamp(40px, 5.6vw, 60px); height: auto; aspect-ratio: 1; border: 1px solid #d4c3dd; border-radius: 12px; padding: 10px; color: #55316a; background: #eee5f4; }
.gf-mailhead h1, .gf-download-head h1 { margin-bottom: 7px; }
.gf-mailhead p, .gf-download-head p { margin: 0; color: #655967; }
.gf-threads { border-block: 2px solid #413347; }
.gf-threads li + li { border-top: 1px solid var(--rule); }
.gf-threads a { padding: 17px 10px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 15px; text-decoration: none; }
.gf-threads a:is(:hover,:focus-visible) { background: #f0e9f4; }
.gf-thread { display: grid; gap: 3px; overflow-wrap: anywhere; }
.gf-thread small, .gf-threads time { color: #655967; font-size: .82rem; }
.gf-inbox-empty, .gf-empty { padding: clamp(22px, 4vw, 40px); border: 1px solid var(--rule); border-radius: 14px; background: #fffdf7; }
.gf-inbox-empty h2 { margin-bottom: 6px; }
.gf-empty { max-width: 620px; }
.gf-empty .order-primary { margin-top: 12px; }
.gf-envelope { padding: 0 0 21px; }
.gf-envelope h1 { font-size: clamp(2.05rem, 4vw, 3.2rem); }
.gf-envelope dl { margin: 0; display: grid; gap: 4px; }
.gf-envelope dl > div { display: grid; align-items: baseline; grid-template-columns: 42px minmax(0,1fr); gap: 6px; font-size: .89rem; }
.gf-letter { border-radius: 9px; overflow: hidden; border: 1px solid #d8cbb0; background: #fffefb; box-shadow: 0 5px 0 -2px #ede2ce; }
.gf-letter-brand { padding: 13px clamp(18px, 3vw, 36px); display: flex; align-items: center; justify-content: space-between; gap: 15px; background: #ffdf80; border-bottom: 1px solid #e1bf6b; }
.gf-letter-brand img { width: 75px; height: auto; }
.gf-letter-brand span { color: #49392c; font-size: .82rem; font-weight: 650; overflow-wrap: anywhere; }
.gf-letter-body { padding: clamp(21px, 3.5vw, 38px); }
.gf-letter-body h2 { margin: 0 0 10px; font-size: clamp(2rem, 3.7vw, 3rem); }
.gf-letter-body > p { max-width: 56ch; }
.gf-letter-body > .gf-expiry { margin: 13px 0 28px; }
.gf-letter-body h3 { margin: 0; border-top: 1px solid var(--rule); padding-top: 18px; }
.gf-letter-body .gf-books, .gf-letter-body .gf-totals { max-width: 100%; }
.gf-download-head { margin-bottom: 24px; }
.gf-downloads .gf-books { border-block: 2px solid #3f3345; }
.gf-downloads .gf-book + .gf-book { border-top: 1px solid var(--rule); }
.gf-downloads .gf-book { grid-template-columns: 52px minmax(0,1fr) auto; padding: 18px 0; }
.gf-downloads .gf-book-name strong { font-size: clamp(1.08rem, 2.1vw, 1.4rem); }
.gf-download-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 13px; min-height: 44px; border: 1px solid #c4afce; border-radius: 7px; background: #f4edf7; color: #4c3063; font-size: .88rem; font-weight: 650; }
.gf-download-button:hover { background: #ebdef1; }
.gf-delivery { margin: 12px 0 20px; }
.gf-delivery p { margin: 12px 0 0; overflow-wrap: anywhere; }
.gf-downloaded { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: #36553b; }
.gf-downloaded .ico { width: 17px; height: 17px; }
.gf-downloads [data-file-status]:empty, .gf-renew [role="status"]:empty { display: none; }
.gf-download-button .ico { width: 17px; height: 17px; }
.gf-downloads > .gf-expiry { margin-top: 20px; }
.gf-renew-box { margin-top: 14px; }
.gf-recover { max-width: 620px; }
.gf-renew { display: grid; gap: 15px; justify-items: start; max-width: 490px; padding: clamp(17px, 2.5vw, 25px); border: 1px solid var(--rule); border-radius: 10px; background: #fffdf8; }
.gf-renew-box .gf-renew { margin-top: 14px; }
.gf-renew label { display: grid; gap: 5px; width: 100%; font-weight: 650; font-size: .9rem; }
.gf-renew input { min-width: 0; width: 100%; min-height: 43px; padding: 8px 11px; border-radius: 7px; border: 1px solid #aaa1ad; background: white; }
.gf-renew-notice { margin-block: 15px; }
.gf-renew-notice p { max-width: 50ch; }
.gf-actions button:disabled, .gf-download-button:disabled { opacity: .65; cursor: wait; }
@media (max-width: 740px) {
  .gf-provider-layout, .gf-status-layout { grid-template-columns: minmax(0,1fr); }
  .gf-provider .gf-pay-panel, .gf-summary { width: 100%; }
}
@media (max-width: 470px) {
  .gf-provider-layout { padding: 18px 13px; }
  .gf-provider .gf-summary { padding: 14px; }
  .gf-actions { align-items: stretch; gap: 10px 14px; }
  .gf-actions > .order-primary { flex: 1 1 100%; }
  .gf-threads a { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; padding-inline: 3px; }
  .gf-sender-mark { display: none; }
  .gf-threads time { align-self: start; padding-top: 2px; }
  .gf-downloads .gf-book { grid-template-columns: 43px minmax(0,1fr); gap: 8px 12px; }
  .gf-downloads .gf-cover { grid-row: span 2; align-self: start; }
  .gf-download-button, .gf-downloaded { grid-column: 2; justify-self: start; }
  .gf-book { gap: 9px; }
}
