.wa-book-data{color:#15364a}
.wa-book-data table.shop_attributes{width:100%;border:0;border-collapse:collapse;margin:0;font-size:16px;line-height:1.65}
.wa-book-data table.shop_attributes :is(th,td){padding:13px 0;border:0;border-bottom:1px solid #dce3e8;background:transparent;font-style:normal;vertical-align:top}
.wa-book-data table.shop_attributes th{width:36%;padding-right:24px;color:#526675;font-weight:400;text-align:left}
.wa-book-data table.shop_attributes td{color:#15364a;font-weight:600;text-align:left;overflow-wrap:anywhere}
.wa-book-data table.shop_attributes td :is(p,em){font-style:normal;margin:0}
.wa-book-product .wa-book-data table.shop_attributes :is(th,td){padding:13px 0;border:0;border-bottom:1px solid #dce3e8;background:transparent;font-style:normal}
.wa-book-product .wa-book-data table.shop_attributes th{padding-right:24px;font-weight:400}
.wa-book-data a:focus-visible{outline:3px solid #226c9a;outline-offset:3px}
@media(max-width:480px){.wa-book-data table.shop_attributes{font-size:15px}.wa-book-data table.shop_attributes th{width:42%;padding-right:14px}.wa-book-product .wa-book-data table.shop_attributes th{padding-right:14px}}

.wa-book-product .wa-book-navigation ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.wa-book-product .wa-book-navigation a {
  color: #526675;
  font-size: 14px;
  text-underline-offset: 3px;
}
.wa-book-product .wa-book-navigation li:first-child {
  margin-inline-end: 6px;
}
.wa-book-product .wa-book-navigation li + li a {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid #eadcc1;
  border-radius: 999px;
  background: #fbf8f1;
  color: #15364a;
  text-decoration: none;
}
.wa-book-product .wa-book-navigation li + li a:hover {
  background: #f4e8cb;
  text-decoration: underline;
}
.wa-book-product .wa-book-navigation a:focus-visible {
  outline: 3px solid #226c9a;
  outline-offset: 3px;
}

.wa-book-product .wa-book-gallery .onsale {
  background: #fbf8f1 !important;
  border: 1px solid #c49a43 !important;
  border-radius: 6px;
  color: #8d371c !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  min-height: 0;
  min-width: 0;
  padding: 5px 9px !important;
  box-shadow: 0 1px 3px #15364a20;
}

.wa-book-product .wa-book-buy .price del {
  color: #526675 !important;
  opacity: 1;
}
.wa-book-product .wa-book-buy .price ins {
  color: #8d371c !important;
}
.wa-book-product .wa-book-buy .price :is(del, ins) .woocommerce-Price-amount {
  color: inherit !important;
}

.wa-book-product .wa-book-navigation li:first-child a {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid #bcc7cc;
  border-radius: 999px;
  text-decoration: none;
}
.wa-book-product .wa-book-navigation li:first-child a:hover {
  text-decoration: underline;
}
.wa-book-product .wa-book-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.wa-book-product .wa-book-tags a {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #dce3e8;
  border-radius: 999px;
  color: #526675;
  font-size: 0.8125rem;
  text-decoration: none;
}
.wa-book-product .wa-book-tags a:hover {
  text-decoration: underline;
}
.wa-book-product .wa-book-toc,
#tab-wa_plugin_contents .wa-book-toc {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wa-book-product .wa-book-toc li,
#tab-wa_plugin_contents .wa-book-toc li {
  margin-block: 4px;
  overflow-wrap: anywhere;
}
.wa-book-product .wa-book-toc .wa-book-toc-level-1,
#tab-wa_plugin_contents .wa-book-toc .wa-book-toc-level-1 {
  margin-block-start: 16px;
  font-weight: 700;
}
.wa-book-product .wa-book-toc .wa-book-toc-level-1:first-child,
#tab-wa_plugin_contents .wa-book-toc .wa-book-toc-level-1:first-child {
  margin-block-start: 0;
}
.wa-book-product .wa-book-toc .wa-book-toc-level-2,
#tab-wa_plugin_contents .wa-book-toc .wa-book-toc-level-2 {
  padding-inline-start: 1rem;
  font-weight: 400;
}
.wa-book-product .wa-book-toc .wa-book-toc-level-3,
#tab-wa_plugin_contents .wa-book-toc .wa-book-toc-level-3 {
  padding-inline-start: 2rem;
  color: #526675;
  font-size: 0.875em;
}

.wa-book-product .wa-book-buy :has(> .wa-book-sale-timer:not([hidden])) {
  flex-wrap: wrap !important;
}
.wa-book-sale-timer {
  display: block;
  clear: both;
  width: 100%;
  flex: 0 0 100%;
  grid-column: 1 / -1;
  margin: 0 0 10px;
  color: #526675;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.wa-book-sale-timer[hidden] {
  display: none !important;
}
.wa-book-sale-timer strong {
  color: #8d371c;
  white-space: nowrap;
}

/* Stripe controls whether the wallet block is visible. Style its outside only. */
.wa-book-product .wa-book-buy :is(#wc-stripe-express-checkout-element, #wc-stripe-payment-request-wrapper) {
  box-sizing: border-box;
  width: 100%;
  clear: both;
  flex: 0 0 100%;
  grid-column: 1 / -1;
  margin-block-start: 16px !important;
}
/* The express wrapper can lay out its direct children as wallet tiles. */
.wa-book-product .wa-book-buy :is(#wc-stripe-express-checkout-element, #wc-stripe-payment-request-wrapper) > .wa-book-express-intro {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  flex: 0 0 100%;
  grid-column: 1 / -1;
}
.wa-book-product .wa-book-buy .wa-book-express-separator {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #526675;
  font-size: 0.75rem;
  font-weight: 600;
}
.wa-book-product .wa-book-buy .wa-book-express-separator::before,
.wa-book-product .wa-book-buy .wa-book-express-separator::after {
  content: "";
  flex: 1;
  border-block-start: 1px solid #dccfaf;
}
.wa-book-product .wa-book-buy .wa-book-express-label {
  margin: 5px 0 10px;
  color: #15364a;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.wa-book-sample iframe {
  display: block;
  width: 100%;
  height: clamp(22rem, 72vh, 54rem);
  border: 1px solid #dce3e8;
  border-radius: 8px;
}

.wa-book-declaration {
  color: #15364a;
}

.wa-book-ai-scale,
.wa-book-ai-note {
  padding: 12px 16px;
  border: 1px solid #eadcc1;
  border-radius: 8px;
  background: #fbf8f1;
}

.wa-book-ai-scale ol {
  margin-block: 8px 0;
  padding-inline-start: 1.6em;
}

.wa-book-declaration summary {
  cursor: pointer;
}

.wa-book-declaration summary:focus-visible {
  outline: 2px solid #226c9a;
  outline-offset: 3px;
}

.wa-book-declaration .wa-book-ai-stages {
  margin: 16px 0;
}

.wa-book-ai-stages > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding-block: 10px;
  border-bottom: 1px solid #dce3e8;
}

.wa-book-ai-stages :is(dt, dd) {
  margin: 0;
}

.wa-book-ai-stages summary {
  display: block;
}

.wa-book-ai-stages summary::-webkit-details-marker {
  display: none;
}

.wa-book-ai-info {
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-inline-start: 3px;
  border: 1px solid #728491;
  border-radius: 50%;
  font-size: 0.8rem;
  line-height: 1;
}

.wa-book-ai-stages details[open] .wa-book-ai-info,
.wa-book-ai-stages summary:hover .wa-book-ai-info {
  background: #15364a;
  color: #fff;
}

.wa-book-ai-stages p {
  margin: 6px 0 0;
  color: #526675;
  font-size: 0.875rem;
}

.wa-book-ai-stages dd {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: end;
}

.wa-book-ai-note > :last-child {
  margin-bottom: 0;
}

/* Keep every product tab reachable on narrow screens, including long labels. */
@media (max-width: 767px) {
    .wa-book-product .woocommerce-tabs ul.tabs,
    body.wa-plugin-product .woocommerce-tabs ul.tabs {
        display: flex !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
        overflow: visible !important;
        white-space: normal !important;
        gap: 4px !important;
    }

    .wa-book-product .woocommerce-tabs ul.tabs li,
    body.wa-plugin-product .woocommerce-tabs ul.tabs li {
        display: block !important;
        float: none !important;
        flex: 0 1 auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .wa-book-product .woocommerce-tabs ul.tabs li a,
    body.wa-plugin-product .woocommerce-tabs ul.tabs li a {
        display: block !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .wa-book-product .woocommerce-tabs ul.tabs::before,
    .wa-book-product .woocommerce-tabs ul.tabs::after,
    body.wa-plugin-product .woocommerce-tabs ul.tabs::before,
    body.wa-plugin-product .woocommerce-tabs ul.tabs::after {
        display: none !important;
    }
}

/* Preserve label/value pairs when the theme stacks attribute cells on mobile. */
@media (max-width: 767px) {
    .wa-book-product .wa-book-data table.shop_attributes {
        display: table !important;
        table-layout: fixed;
        width: 100% !important;
    }

    .wa-book-product .wa-book-data table.shop_attributes tbody {
        display: table-row-group !important;
    }

    .wa-book-product .wa-book-data table.shop_attributes tr {
        display: table-row !important;
    }

    .wa-book-product .wa-book-data table.shop_attributes :is(th, td) {
        display: table-cell !important;
        float: none !important;
        text-align: left !important;
        vertical-align: top;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .wa-book-product .wa-book-data table.shop_attributes th {
        width: 42% !important;
        padding-right: 14px;
    }

    .wa-book-product .wa-book-data table.shop_attributes td {
        width: 58% !important;
    }

    .wa-book-product .wa-book-data table.shop_attributes td::before {
        display: none !important;
    }
}
