@charset "UTF-8";
/**
 * FairyBooks Shop — an Buchseite / main.css (article, section, Typo) angeglichen
 */

/* --- Kasse & Danke (gleiche Einrückung/Oben-Abstand wie article + section in main.css) --- */
article.book.shop-flow {
  display: block;
}

article.book.shop-flow > section.shop-flow__inner {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0.5rem 0;
}

@media screen and (min-width: 1000px) {
  article.book.shop-flow > section.shop-flow__inner {
    max-width: 1000px;
    padding: 2rem 0;
  }
}

.shop-checkout__error {
  color: #b00020;
  margin: 0 0 1rem;
}

.shop-checkout__summary {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.3;
}

.shop-checkout__summary th,
.shop-checkout__summary td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  padding: 0.65rem 0.5rem 0.65rem 0;
  text-align: left;
  vertical-align: top;
}

.shop-checkout__summary th {
  font-weight: 600;
}

.shop-checkout__form fieldset {
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 1rem 1.25rem 1.25rem;
  margin: 1.5rem 0;
}

.shop-checkout__form legend {
  font-family: "Inter", sans-serif;
  padding: 0 0.35rem;
}

.shop-checkout__form label {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.3;
}

.shop-checkout__form input[type="email"],
.shop-checkout__form input[type="text"] {
  width: 100%;
  max-width: 28rem;
  margin-top: 0.25rem;
  padding: 0.45rem 0.5rem;
  font: inherit;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 2px;
  box-sizing: border-box;
}

/* Primäre Aktionen wie .book__order a (book.css) — gleiche Schriftstärke wie Retail-Links */
.book__order-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 400;
  font-family: inherit;
  padding: 0.3rem 2rem 0.3rem 1rem;
  border-radius: 999px;
  background: #ffffa7;
  background-image: url(/site/templates/images/arrow_right.svg);
  background-position-x: right 10px;
  background-position-y: center;
  background-repeat: no-repeat;
  text-decoration: none;
  line-height: 1;
  transition: all 120ms ease;
  border: 1px solid #000;
  cursor: pointer;
  color: inherit;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.book__order-intro {
  margin: 0.5rem 0;
}

/* Kein Abstand unter dem Warenkorb-Button (Edition-Karte; überschreibt .book__order padding) */
.book__order.book__order--shop {
  margin-bottom: 0;
  padding-bottom: 0;
}

.book__order.book__order--shop .fbs-add-cart {
  margin-bottom: 0;
}

.book__order-btn:hover {
  background: #ffff43;
  background-image: url(/site/templates/images/arrow_right.svg);
  background-position-x: right 5px;
  background-position-y: center;
  background-repeat: no-repeat;
  border-color: transparent;
}

.book__order-btn:active {
  background: #ffff43;
  background-image: url(/site/templates/images/arrow_right.svg);
  background-position-x: right 5px;
  background-position-y: center;
  background-repeat: no-repeat;
}

.shop-thanks .shop-flow__lead {
  font-family: "QuaText", Times, serif;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 46rem;
}

@media screen and (min-width: 1000px) {
  .shop-thanks .shop-flow__lead {
    max-width: 1000px;
  }
}

.shop-thanks .detail {
  font-size: 0.9rem;
  opacity: 0.85;
}

.shop-thanks__meta {
  margin: 1.25rem 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.shop-thanks__meta p {
  margin: 0.5rem 0;
}

.shop-thanks__h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.65rem;
  letter-spacing: -0.02em;
}

.shop-thanks__summary {
  margin-top: 0.5rem;
}

/* Positionszeilen: Thumbnail + Titel wie Kasse / Warenkorb-Drawer */
.shop-thanks__summary tbody td {
  vertical-align: middle;
}

.shop-thanks__artcell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

.shop-thanks__line-title {
  flex: 1;
  min-width: 0;
  padding-left: 0;
}

.shop-thanks__thumb {
  width: 52px;
  height: auto;
  max-height: 78px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: block;
}

.shop-thanks__thumb-link,
.shop-thanks__title-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

.shop-thanks__thumb-link:hover .shop-thanks__thumb,
.shop-thanks__title-link:hover {
  opacity: 0.88;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.shop-thanks__vat {
  font-size: 0.82em;
  color: #555;
  font-weight: 400;
}

.shop-thanks__tot {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.shop-thanks__tot--grand {
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  font-size: 1rem;
}

.shop-thanks__downloads {
  margin: 2rem 0 0.5rem;
}

.shop-thanks__dl-intro {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.95rem;
}

.shop-thanks__dl-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

/* --- Seiten-Warenkorb (Drawer): z-index über fixem Header, gleiche Schrift wie Site --- */
html.fbs-drawer-open,
html.fbs-drawer-open body {
  overflow: hidden;
}

/* FAB: gleiche Grundoptik wie .book__order / .book__order-btn, Icon statt Pfeil */
.fbs-cart-fab {
  position: fixed;
  right: max(28px, env(safe-area-inset-right, 0px));
  bottom: 24px;
  /* Über fixem Header (12000), unter geöffnetem Drawer (12100) */
  z-index: 12050;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  height: 2.75rem;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #000;
  background: #ffffa7;
  color: #000;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  transition: all 120ms ease;
  font: inherit;
  line-height: 0;
}

.fbs-cart-fab:hover {
  background: #ffff43;
  border-color: transparent;
}

.fbs-cart-fab:active {
  background: #ffff43;
}

.fbs-cart-fab__icon {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

.fbs-cart-fab__badge {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: #c00;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  padding: 0 5px;
  border: 1px solid #fff;
  box-sizing: border-box;
}

.fbs-drawer {
  position: fixed;
  inset: 0;
  /* Über fixem Header (z-index 12000), sonst liegt das X unter dem Header und ist nicht klickbar */
  z-index: 12100;
  pointer-events: none;
}

.fbs-drawer:not([hidden]) {
  pointer-events: auto;
}

.fbs-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.2s;
}

.fbs-drawer:not([hidden]) .fbs-drawer__backdrop {
  opacity: 1;
}

.fbs-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 520px;
  height: 100%;
  /* wie body in main.scss (#DFDFDF) */
  background: #dfdfdf;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  font-family: "Inter", sans-serif;
  box-sizing: border-box;
}

.fbs-drawer:not([hidden]) .fbs-drawer__panel {
  transform: translateX(0);
}

.fbs-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  padding: max(0.75rem, env(safe-area-inset-top, 0px)) 1rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.fbs-drawer__head h2 {
  font-family: "Inter", sans-serif;
  font-size: 1.85rem;
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
}

.fbs-drawer__close {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  font-size: 1.75rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  min-width: 2.25rem;
  min-height: 2.25rem;
  font-family: "Inter", sans-serif;
}

.fbs-drawer__body {
  flex: 1;
  overflow: auto;
  padding: 1rem 1rem 1.25rem;
  font-size: 1rem;
  line-height: 1.3;
}

.fbs-drawer__body small {
  font-size: 0.9rem;
}

.fbs-drawer__loading {
  margin: 0;
  opacity: 0.7;
}

.fbs-drawer__foot {
  flex-shrink: 0;
  padding: 1rem 1rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 1rem;
  line-height: 1.3;
}

.fbs-drawer__total {
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.fbs-drawer__line {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.fbs-drawer__line-left {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.fbs-drawer__meta {
  flex: 1;
  min-width: 0;
}

.fbs-drawer__thumb-link,
.fbs-drawer__title-link {
  color: inherit;
  text-decoration: none;
}

.fbs-drawer__thumb-link:hover .fbs-drawer__thumb,
.fbs-drawer__title-link:hover strong {
  opacity: 0.88;
}

.fbs-drawer__thumb-wrap {
  display: block;
  flex-shrink: 0;
}

.fbs-drawer__thumb {
  width: 52px;
  height: auto;
  max-height: 74px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  display: block;
  vertical-align: top;
}

.fbs-drawer__line-actions {
  flex-shrink: 0;
  text-align: right;
}

.fbs-drawer__line input[type="number"] {
  width: 52px;
  padding: 0.25rem;
  font: inherit;
}

.fbs-drawer__foot .book__order {
  display: block;
  padding: 0;
  margin: 0;
  text-align: center;
}

.fbs-drawer__line .book__order-btn.fbs-remove {
  margin-top: 0.35rem;
  width: auto;
  align-self: flex-start;
}
