.elementor-widget-tnsa-book-purchase .tnsa-purchase {
  --tnsa-width: 365px;
  --tnsa-height: 60px;
  --tnsa-radius: 2px;
  --tnsa-gap: 22px;
  --tnsa-price-padding: 22px;
  --tnsa-background: #111111;
  --tnsa-border: #111111;
  --tnsa-divider: rgba(255,255,255,.3);
  --tnsa-label-color: #ffffff;
  --tnsa-price-color: #ffffff;
  --tnsa-old-color: #ffffff;
  width: 100%;
}
.elementor-widget-tnsa-book-purchase .tnsa-purchase form.cart {
  display: flex;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  /* WooCommerce's form.cart bottom margin would offset the button in a row. */
  margin: 0 !important;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto !important;
  min-height: 0 !important;
}
.elementor-widget-tnsa-book-purchase .tnsa-purchase form.cart::before,
.elementor-widget-tnsa-book-purchase .tnsa-purchase form.cart::after { display: none; }
.elementor-widget-tnsa-book-purchase .tnsa-purchase button.single_add_to_cart_button {
  box-sizing: border-box;
  display: block;
  align-items: center;
  justify-content: space-between;
  flex: 0 1 auto !important;
  width: var(--tnsa-button-size, var(--tnsa-width));
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: var(--tnsa-height);
  gap: var(--tnsa-gap);
  margin: 0;
  padding: 10px 22px;
  float: none;
  border: 1px solid var(--tnsa-border);
  border-radius: var(--tnsa-radius);
  background: var(--tnsa-background);
  color: var(--tnsa-label-color);
  box-shadow: none;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  text-decoration: none;
  text-align: center;
  line-height: 1.35;
  white-space: normal;
  transition: background-color .15s ease, color .15s ease;
  container-type: inline-size;
  container-name: tnsa-book-buy;
}
.elementor-widget-tnsa-book-purchase .tnsa-purchase-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--tnsa-gap);
  width: 100%;
  min-width: 0;
  min-height: max(0px, calc(var(--tnsa-height) - 22px));
}
.elementor-widget-tnsa-book-purchase .tnsa-purchase button.single_add_to_cart_button:hover {
  --tnsa-label-color: #111111;
  --tnsa-price-color: #111111;
  --tnsa-old-color: #111111;
  --tnsa-divider: rgba(17,17,17,.3);
  background: #ffffff;
  color: var(--tnsa-label-color);
}
.elementor-widget-tnsa-book-purchase .tnsa-purchase .tnsa-purchase-label {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--tnsa-label-color);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .035em;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: normal !important;
  white-space: normal !important;
  writing-mode: horizontal-tb;
}
.elementor-widget-tnsa-book-purchase .tnsa-purchase--uppercase .tnsa-purchase-label { text-transform: uppercase; }
.elementor-widget-tnsa-book-purchase .tnsa-purchase .tnsa-purchase-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  align-self: stretch;
  gap: 3px;
  flex: 0 0 auto;
  border-left: 1px solid var(--tnsa-divider);
  padding-left: var(--tnsa-price-padding);
  color: var(--tnsa-price-color);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.1;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.elementor-widget-tnsa-book-purchase .tnsa-purchase .tnsa-purchase-price ins {
  display: block;
  background: transparent;
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
}
.elementor-widget-tnsa-book-purchase .tnsa-purchase .tnsa-purchase-price del {
  display: block;
  color: var(--tnsa-old-color);
  font-size: 12px;
  line-height: 1.25;
  opacity: .75;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.elementor-widget-tnsa-book-purchase .tnsa-purchase .tnsa-purchase-price .amount {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}
.elementor-widget-tnsa-book-purchase .tnsa-purchase .tnsa-purchase-price .woocommerce-price-suffix {
  font-size: 12px;
  color: inherit;
  white-space: normal;
  max-width: 160px;
}
.elementor-widget-tnsa-book-purchase .tnsa-purchase--hide-regular .tnsa-purchase-price del,
.elementor-widget-tnsa-book-purchase .tnsa-purchase--hide-quantity .quantity,
.elementor-widget-tnsa-book-purchase .tnsa-purchase--hide-stock > .stock { display: none; }
.elementor-widget-tnsa-book-purchase .tnsa-purchase--no-divider .tnsa-purchase-price { border-left: 0; padding-left: 0; }
.elementor-widget-tnsa-book-purchase .tnsa-purchase-price .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 767px) {
  .elementor-widget-tnsa-book-purchase .tnsa-purchase { --tnsa-width: 100%; --tnsa-gap: 14px; --tnsa-price-padding: 14px; }
  .elementor-widget-tnsa-book-purchase .tnsa-purchase button.single_add_to_cart_button {
    width: min(100%, max(180px, var(--tnsa-phone-width, 100%))) !important;
    min-height: clamp(44px, var(--tnsa-phone-height, 52px), 96px) !important;
    padding: clamp(0px, var(--tnsa-phone-pad-top, 10px), 24px) clamp(0px, var(--tnsa-phone-pad-right, 14px), 24px) clamp(0px, var(--tnsa-phone-pad-bottom, 10px), 24px) clamp(0px, var(--tnsa-phone-pad-left, 14px), 24px) !important;
  }
  .elementor-widget-tnsa-book-purchase .tnsa-purchase-content { min-height: 30px; gap: clamp(0px, var(--tnsa-phone-gap, 8px), 24px); }
  .elementor-widget-tnsa-book-purchase .tnsa-purchase .tnsa-purchase-label { font-size: clamp(12px, var(--tnsa-phone-label-size, 14px), 22px) !important; line-height: 1.35; }
  .elementor-widget-tnsa-book-purchase .tnsa-purchase .tnsa-purchase-price { font-size: clamp(14px, var(--tnsa-phone-price-size, 20px), 28px) !important; padding-left: clamp(0px, var(--tnsa-phone-price-padding, 8px), 24px); }
  .elementor-widget-tnsa-book-purchase .tnsa-purchase--no-divider .tnsa-purchase-price { padding-left: 0; }
  .elementor-widget-tnsa-book-purchase .tnsa-purchase .tnsa-purchase-price del { font-size: clamp(10px, var(--tnsa-phone-old-size, 12px), 16px) !important; }
}
@media (max-width: 767px) {
 @container tnsa-book-buy (max-width: 280px) {
  .elementor-widget-tnsa-book-purchase .tnsa-purchase-content { grid-template-columns: minmax(0, 1fr); gap: clamp(0px, var(--tnsa-phone-gap, 8px), 24px); }
  .elementor-widget-tnsa-book-purchase .tnsa-purchase .tnsa-purchase-price {
    align-items: center;
    border-left: 0;
    border-top: 1px solid var(--tnsa-divider);
    padding-left: 0;
    padding-top: clamp(0px, var(--tnsa-phone-price-padding, 8px), 24px);
    white-space: normal;
  }
  .elementor-widget-tnsa-book-purchase .tnsa-purchase--no-divider .tnsa-purchase-price { border-top: 0; padding-top: 0; }
 }
}
@supports not (container-type: inline-size) {
  @media (max-width: 767px) {
    .elementor-widget-tnsa-book-purchase .tnsa-purchase-content { grid-template-columns: minmax(0, 1fr); gap: clamp(0px, var(--tnsa-phone-gap, 8px), 24px); }
    .elementor-widget-tnsa-book-purchase .tnsa-purchase .tnsa-purchase-price { align-items: center; border-left: 0; border-top: 1px solid var(--tnsa-divider); padding: clamp(0px, var(--tnsa-phone-price-padding, 8px), 24px) 0 0; white-space: normal; }
    .elementor-widget-tnsa-book-purchase .tnsa-purchase--no-divider .tnsa-purchase-price { border-top: 0; padding-top: 0; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .elementor-widget-tnsa-book-purchase .tnsa-purchase button.single_add_to_cart_button { transition: none; }
}

.tnsa-purchase-frame {
  --tnsa-frame-gap: 16px;
  --tnsa-flow-direction: column;
  --tnsa-flow-wrap: nowrap;
  --tnsa-flow-align: flex-start;
  --tnsa-part-width: 100%;
  --tnsa-title-display: block;
  --tnsa-link-wrap: wrap;
  --tnsa-links-gap: 8px;
  --tnsa-links-height: 44px;
  --tnsa-links-radius: 2px;
  --tnsa-links-background: #ffffff;
  --tnsa-links-text: #111111;
  --tnsa-links-border: #7b7b71;
  --tnsa-links-active: #eeeedc;
  --tnsa-links-active-text: #111111;
  --tnsa-links-hover: #eeeedc;
  --tnsa-links-hover-text: #111111;
  display: flex;
  flex-direction: var(--tnsa-flow-direction);
  flex-wrap: var(--tnsa-flow-wrap);
  align-items: var(--tnsa-flow-align);
  gap: var(--tnsa-frame-gap);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.tnsa-purchase-frame.tnsa-flow-inline,
.tnsa-purchase-frame.tnsa-flow-wrap {
  --tnsa-flow-direction: row;
  --tnsa-flow-align: center;
  --tnsa-part-width: auto;
  --tnsa-title-display: none;
}
.tnsa-purchase-frame.tnsa-flow-inline { --tnsa-flow-wrap: nowrap; --tnsa-link-wrap: nowrap; }
.tnsa-purchase-frame.tnsa-flow-wrap { --tnsa-flow-wrap: wrap; --tnsa-link-wrap: wrap; }
.tnsa-purchase-frame > .tnsa-purchase,
.tnsa-purchase-frame > .tnsa-book-formats,
.tnsa-purchase-frame > .tnsa-book-offers {
  flex: 0 1 auto;
  width: var(--tnsa-part-width);
  min-width: 0;
  max-width: 100%;
}
.tnsa-purchase-frame.tnsa-flow-inline > .tnsa-purchase,
.tnsa-purchase-frame.tnsa-flow-wrap > .tnsa-purchase { width: min(100%, var(--tnsa-width, 365px)); --tnsa-button-size: 100%; }
.tnsa-purchase-frame.tnsa-flow-stacked > .tnsa-purchase { width: 100%; --tnsa-button-size: var(--tnsa-width); }
.tnsa-purchase-frame .tnsa-book-buttons {
  display: flex;
  align-items: stretch;
  flex-wrap: var(--tnsa-link-wrap);
  gap: var(--tnsa-links-gap);
}
.tnsa-purchase-frame .tnsa-links-heading {
  display: var(--tnsa-title-display);
  margin: 0 0 10px;
  color: var(--tnsa-links-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.4;
}
.tnsa-purchase-frame.tnsa-links-no-titles .tnsa-links-heading { display: none; }
.tnsa-purchase-frame .tnsa-book-link {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  min-width: 0;
  min-height: var(--tnsa-links-height);
  padding: 10px 14px;
  border: 1px solid var(--tnsa-links-border);
  border-radius: var(--tnsa-links-radius);
  color: var(--tnsa-links-text);
  background: var(--tnsa-links-background);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.tnsa-purchase-frame.tnsa-links-uppercase .tnsa-book-link { text-transform: uppercase; }
.tnsa-purchase-frame .tnsa-book-link--current {
  background: var(--tnsa-links-active);
  color: var(--tnsa-links-active-text);
}
.tnsa-purchase-frame a.tnsa-book-link:hover {
  background: var(--tnsa-links-hover);
  color: var(--tnsa-links-hover-text);
}
.tnsa-purchase-frame.tnsa-formats-joined .tnsa-book-formats .tnsa-book-buttons { gap: 0; flex-wrap: nowrap; }
.tnsa-purchase-frame.tnsa-formats-joined .tnsa-book-formats .tnsa-book-link { border-radius: 0; }
.tnsa-purchase-frame.tnsa-formats-joined .tnsa-book-formats .tnsa-book-link:first-child { border-radius: var(--tnsa-links-radius) 0 0 var(--tnsa-links-radius); }
.tnsa-purchase-frame.tnsa-formats-joined .tnsa-book-formats .tnsa-book-link:last-child { border-radius: 0 var(--tnsa-links-radius) var(--tnsa-links-radius) 0; border-left: 0; }
@media (max-width: 1024px) {
  .tnsa-purchase-frame.tnsa-tablet-flow-stacked { --tnsa-flow-direction: column; --tnsa-flow-wrap: nowrap; --tnsa-flow-align: flex-start; --tnsa-part-width: 100%; --tnsa-title-display: block; --tnsa-link-wrap: wrap; }
  .tnsa-purchase-frame.tnsa-tablet-flow-inline { --tnsa-flow-direction: row; --tnsa-flow-wrap: nowrap; --tnsa-flow-align: center; --tnsa-part-width: auto; --tnsa-title-display: none; --tnsa-link-wrap: nowrap; }
  .tnsa-purchase-frame.tnsa-tablet-flow-wrap { --tnsa-flow-direction: row; --tnsa-flow-wrap: wrap; --tnsa-flow-align: center; --tnsa-part-width: auto; --tnsa-title-display: none; --tnsa-link-wrap: wrap; }
  .tnsa-purchase-frame.tnsa-tablet-flow-inline > .tnsa-purchase,
  .tnsa-purchase-frame.tnsa-tablet-flow-wrap > .tnsa-purchase { width: min(100%, var(--tnsa-width, 365px)); --tnsa-button-size: 100%; }
  .tnsa-purchase-frame.tnsa-tablet-flow-stacked > .tnsa-purchase { width: 100%; --tnsa-button-size: var(--tnsa-width); }
}
@media (max-width: 767px) {
  .tnsa-purchase-frame.tnsa-mobile-flow-stacked { --tnsa-flow-direction: column; --tnsa-flow-wrap: nowrap; --tnsa-flow-align: flex-start; --tnsa-part-width: 100%; --tnsa-title-display: block; --tnsa-link-wrap: wrap; }
  .tnsa-purchase-frame.tnsa-mobile-flow-inline { --tnsa-flow-direction: row; --tnsa-flow-wrap: nowrap; --tnsa-flow-align: center; --tnsa-part-width: auto; --tnsa-title-display: none; --tnsa-link-wrap: nowrap; }
  .tnsa-purchase-frame.tnsa-mobile-flow-wrap { --tnsa-flow-direction: row; --tnsa-flow-wrap: wrap; --tnsa-flow-align: center; --tnsa-part-width: auto; --tnsa-title-display: none; --tnsa-link-wrap: wrap; }
  .tnsa-purchase-frame.tnsa-mobile-flow-inline { --tnsa-flow-wrap: wrap; --tnsa-link-wrap: wrap; }
  .tnsa-purchase-frame.tnsa-mobile-flow-stacked > .tnsa-purchase,
  .tnsa-purchase-frame.tnsa-mobile-flow-inline > .tnsa-purchase,
  .tnsa-purchase-frame.tnsa-mobile-flow-wrap > .tnsa-purchase { width: 100%; flex: 0 0 auto; --tnsa-button-size: 100%; }
  .tnsa-purchase-frame .tnsa-book-link { overflow-wrap: break-word; word-break: normal; }
  .tnsa-purchase-frame .tnsa-book-formats[data-format-count="3"] .tnsa-book-buttons { display: grid; grid-template-columns: minmax(0, 1fr); }
  .tnsa-purchase-frame .tnsa-book-formats[data-format-count="3"] .tnsa-book-link { width: 100%; }
  .tnsa-purchase-frame.tnsa-formats-joined .tnsa-book-formats[data-format-count="3"] .tnsa-book-link { border: 1px solid var(--tnsa-links-border); border-top: 0; border-radius: 0; }
  .tnsa-purchase-frame.tnsa-formats-joined .tnsa-book-formats[data-format-count="3"] .tnsa-book-link:first-child { border-top: 1px solid var(--tnsa-links-border); border-radius: var(--tnsa-links-radius) var(--tnsa-links-radius) 0 0; }
  .tnsa-purchase-frame.tnsa-formats-joined .tnsa-book-formats[data-format-count="3"] .tnsa-book-link:last-child { border-radius: 0 0 var(--tnsa-links-radius) var(--tnsa-links-radius); }
}
