/* Books & Resources and its same-site checkout review. All styles are scoped. */
.bk-checkout-open:has(.bk-checkout[open]) { overflow: hidden; }
.bk-section {
  padding: 64px clamp(18px, 4vw, 56px);
  color: #0b3539;
  background: linear-gradient(135deg, #fbf7ef, #f3fbf5 70%, #e9f8f5);
  border: 1px solid #ded9c9;
  border-radius: 18px;
}
.bk-heading { max-width: 800px; margin: 0 auto 45px; text-align: center; }
.bk-eyebrow,
.bk-product-type,
.bk-checkout-kicker {
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #006d70;
}
.bk-heading h2 {
  margin: 0;
  font-family: var(--ed-serif, "Dream Serif", Georgia, serif);
  font-size: clamp(37px, 4.2vw, 55px);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -.025em;
}
.bk-subtitle { margin: 16px 0 24px; color: #006d70; font-size: 18px; line-height: 1.65; }
.bk-heading .bk-intro { margin: 15px auto 0; max-width: 72ch; color: #526964; font-size: 16px; line-height: 1.9; }
.bk-product {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(30px, 6vw, 84px);
  max-width: 1090px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 46px);
  background: #fffdf8;
  border: 1px solid #d4dfd3;
  border-radius: 14px;
  box-shadow: 0 18px 50px #0b353909;
}
.bk-cover,
.bk-product-copy { min-width: 0; }
.bk-cover { padding: 14px 12px 22px; }
.bk-cover-note { max-width: 340px; margin: 24px auto 0; color: #526964; font-size: 11px; line-height: 1.8; text-align: center; }
.bk-book-cover { width: min(100%, 340px); margin: 0 auto; transform: rotate(-2deg); }
.bk-book-cover .ed-image-frame {
  padding: 0;
  background: transparent;
  border-radius: 2px;
  box-shadow: -3px 2px 0 #f8f1e2, -5px 3px 0 #bac9bf, 14px 20px 32px #0b353927;
  overflow: visible;
}
.bk-book-cover .ed-image-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  border-radius: 2px;
}
.bk-book-cover figcaption { margin-top: 22px; font-size: 11px; line-height: 1.7; color: #526964; }
.bk-product-copy h3 {
  margin: 0;
  font-family: var(--ed-serif, "Dream Serif", Georgia, serif);
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.12;
  letter-spacing: -.025em;
  font-weight: 400;
  color: #0b3539;
}
.bk-author { margin: 15px 0 22px; color: #006d70; font-size: 14px; line-height: 1.8; }
.bk-description { color: #526964; font-size: 16px; line-height: 1.9; }
.bk-description p { margin: 13px 0; }
.bk-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 23px 0 24px;
  font-family: var(--ed-serif, "Dream Serif", Georgia, serif);
  font-size: 39px;
  line-height: 1.2;
  color: #006d70;
}
.bk-price span { font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 1.7; letter-spacing: .04em; color: #526964; }
.bk-format-options { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; min-width: 0; padding: 0; margin: 0; border: 0; }
.bk-format-options legend { padding: 0 0 12px; color: #0b3539; font-size: 14px; line-height: 1.7; font-weight: 600; }
.bk-format-choice {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  gap: 2px 9px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid #ccd9ce;
  border-radius: 8px;
  background: #fffdf8;
  color: #0b3539;
  cursor: pointer;
  min-height: 72px;
  transition: background .18s, border-color .18s, box-shadow .18s;
}
.bk-format-choice:hover { background: #f0fbf7; border-color: #00a99a; }
.bk-format-choice:has(input:checked) { background: #e7f9f3; border-color: #006d70; box-shadow: inset 0 0 0 1px #006d70; }
.bk-format-choice:has(input:focus-visible) { outline: 3px solid #926722; outline-offset: 4px; }
.bk-format-choice input { grid-column: 1; grid-row: 1 / span 2; width: 18px; height: 18px; margin: 0; accent-color: #007c76; }
.bk-format-name { grid-column: 2; font-size: 15px; line-height: 1.5; font-weight: 600; }
.bk-format-price { grid-column: 2; font-size: 12px; line-height: 1.6; color: #526964; }
.bk-format-help { margin: 13px 0 0; color: #526964; font-size: 12px; line-height: 1.8; }
.bk-format-error,
.bk-validation { margin: 12px 0; color: #8b361c; font-size: 13px; line-height: 1.7; }
.bk-section .bk-button,
.bk-checkout .bk-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 49px;
  max-width: 100%;
  padding: 14px 24px;
  border: 1px solid #007d79;
  border-radius: 8px;
  background: #007d79;
  color: #fffdf8;
  font: 600 14px/1.5 Arial, Helvetica, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.bk-button:hover:not(:disabled) { background: #006565; transform: translateY(-1px); }
.bk-button:focus-visible,
.bk-edit:focus-visible,
.bk-close:focus-visible { outline: 3px solid #926722; outline-offset: 4px; }
.bk-button:disabled { background: #dce5dc; color: #5c6f66; border-color: #c5d1c5; cursor: not-allowed; box-shadow: none; transform: none; opacity: 1; }
.bk-buy { width: 100%; margin-top: 22px; }
.bk-purchase-state { margin: 14px 0 0; color: #526964; font-size: 12px; line-height: 1.8; }
.bk-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1090px; margin: 30px auto 0; }
.bk-details > * { min-width: 0; margin: 0; padding: 24px; border: 1px solid #d8dfd1; border-radius: 10px; background: #fffdf8a3; }
.bk-details h3,
.bk-details h4 { margin: 0 0 13px; font-family: var(--ed-serif, "Dream Serif", Georgia, serif); font-weight: 400; font-size: 24px; line-height: 1.25; color: #0b3539; }
.bk-details p { margin: 9px 0 0; font-size: 14px; line-height: 1.85; color: #526964; }
.bk-details a { color: #006d70; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.bk-checkout {
  width: min(620px, calc(100% - 32px));
  max-width: calc(100% - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  box-sizing: border-box;
  padding: 38px 32px 30px;
  border: 1px solid #b4cfc0;
  border-radius: 14px;
  background: #fffdf8;
  color: #0b3539;
  box-shadow: 0 25px 90px #0b353945;
  overscroll-behavior: contain;
}
.bk-checkout::backdrop { background: #062c32a8; backdrop-filter: blur(5px); }
.bk-checkout [hidden] { display: none !important; }
.bk-close { position: absolute; top: 12px; right: 12px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 11px; border: 0; border-radius: 50%; background: transparent; color: #006d70; cursor: pointer; }
.bk-close:hover { background: #eaf6ed; }
.bk-close svg { width: 21px; height: 21px; }
.bk-checkout-heading { padding-right: 23px; margin-bottom: 24px; }
.bk-checkout h2 { margin: 0; font-family: var(--ed-serif, "Dream Serif", Georgia, serif); font-size: 35px; line-height: 1.15; font-weight: 400; color: #0b3539; letter-spacing: -.025em; }
.bk-checkout h3 { margin: 0 0 18px; font-family: var(--ed-serif, "Dream Serif", Georgia, serif); font-size: 27px; line-height: 1.2; font-weight: 400; color: #0b3539; }
.bk-checkout label { display: block; margin: 0 0 9px; font-size: 14px; line-height: 1.7; color: #0b3539; font-weight: 600; }
.bk-checkout input[type="email"] { width: 100%; min-height: 49px; box-sizing: border-box; border: 1px solid #a9c6b8; border-radius: 6px; padding: 12px 13px; background: #fff; color: #0b3539; font: 16px/1.5 Arial, Helvetica, sans-serif; }
.bk-checkout input[type="email"]:focus-visible { outline: 3px solid #00b7ae; outline-offset: 2px; }
.bk-checkout input[aria-invalid="true"] { border-color: #8b361c; }
.bk-email-help { margin: 11px 0 19px; color: #526964; font-size: 12px; line-height: 1.8; }
.bk-review { width: 100%; margin-top: 5px; }
.bk-review-panel { margin-top: 25px; padding-top: 25px; border-top: 1px solid #d4dfd3; }
.bk-order-summary { margin: 0; padding: 0; }
.bk-order-summary > div { display: grid; grid-template-columns: minmax(92px, .7fr) minmax(0, 1.3fr); gap: 15px; padding: 13px 0; border-bottom: 1px solid #e2e6db; }
.bk-order-summary dt { color: #526964; font-size: 13px; line-height: 1.7; }
.bk-order-summary dd { margin: 0; text-align: right; color: #0b3539; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.bk-delivery-note,
.bk-ready-status,
.bk-checkout-status { margin: 19px 0; font-size: 13px; line-height: 1.85; color: #526964; }
.bk-ready-status { padding: 15px 17px; border: 1px solid #d7dbc1; border-radius: 7px; background: #f8f6e6; color: #626347; }
.bk-payment { width: 100%; margin-top: 3px; }
.bk-edit { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; padding: 10px 0; border: 0; background: transparent; color: #006d70; font: 600 13px/1.6 Arial, Helvetica, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bk-checkout-status a { color: #006d70; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (max-width: 1000px) {
  .bk-section { padding-left: 24px; padding-right: 24px; }
  .bk-product { gap: 32px; padding: 28px; }
  .bk-details { grid-template-columns: 1fr; gap: 13px; }
  .bk-details > * { padding: 22px; }
}
@media (max-width: 700px) {
  .bk-section { padding: 38px 17px; border-radius: 12px; }
  .bk-heading { margin-bottom: 30px; }
  .bk-heading h2 { font-size: clamp(32px, 7.5vw, 43px); }
  .bk-subtitle { font-size: 16px; margin-bottom: 19px; }
  .bk-heading .bk-intro { font-size: 15px; line-height: 1.85; }
  .bk-product { grid-template-columns: 1fr; padding: 25px 20px; gap: 29px; }
  .bk-cover { padding: 12px 15px 21px; }
  .bk-book-cover { width: min(100%, 290px); }
  .bk-product-copy h3 { font-size: 34px; }
  .bk-description { font-size: 15px; }
  .bk-price { font-size: 36px; }
  .bk-format-choice { padding: 12px; }
  .bk-details { margin-top: 22px; }
  .bk-checkout { padding: 45px 23px 25px; border-radius: 11px; }
  .bk-checkout h2 { font-size: 31px; }
}
@media (max-width: 360px) {
  .bk-section { padding-left: 12px; padding-right: 12px; }
  .bk-product { padding: 22px 16px; }
  .bk-format-options { gap: 9px; }
  .bk-format-choice { grid-template-columns: 18px minmax(0, 1fr); gap: 2px 6px; padding: 11px 9px; }
  .bk-format-name { font-size: 14px; }
  .bk-format-price { font-size: 11px; }
  .bk-product-copy h3 { font-size: 30px; }
  .bk-checkout { padding-left: 19px; padding-right: 19px; }
  .bk-order-summary > div { grid-template-columns: minmax(72px, .65fr) minmax(0, 1.35fr); gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .bk-format-choice,
  .bk-button { transition: none; }
  .bk-button:hover:not(:disabled) { transform: none; }
}
