/* Commerce, account, and configurator frame. Visual tokens come from the homepage stylesheet. */

.hp-cart-btn {
  position: relative;
}

.hp-cart-count {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--hp-accent);
  color: var(--hp-night);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.hp-commerce,
.hp-configurator-page {
  color: var(--hp-ink);
}

.hp-account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.hp-account-single {
  max-width: 520px;
}

.hp-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.hp-buy {
  margin-top: 28px;
}

.hp-buy .cart,
.hp-commerce form.checkout,
.hp-commerce .woocommerce-EditAccountForm,
.hp-commerce .woocommerce-address-fields {
  display: grid;
  gap: 14px;
}

.hp-buy .quantity .qty,
.hp-commerce input[type="text"],
.hp-commerce input[type="email"],
.hp-commerce input[type="tel"],
.hp-commerce input[type="password"],
.hp-commerce input[type="number"]:not(.wc-block-components-quantity-selector__input),
.hp-commerce select,
.hp-commerce textarea,
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-md);
  background: var(--hp-surface);
  color: var(--hp-ink);
  font: inherit;
}

.hp-buy .single_add_to_cart_button,
.hp-commerce .button,
.hp-commerce button.button,
.wc-block-components-button,
.wc-block-cart__submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: var(--hp-radius-md);
  background: var(--hp-accent) !important;
  color: var(--hp-night) !important;
  font-family: var(--hp-font-display);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.woocommerce-MyAccount-navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.woocommerce-MyAccount-navigation a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-md);
  background: var(--hp-surface);
}

.woocommerce-MyAccount-navigation .is-active a {
  background: var(--hp-night);
  color: #fff;
  border-color: var(--hp-night);
}

.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-md);
  background: var(--hp-surface);
  padding: 14px 16px;
  margin: 0 0 18px;
  list-style: none;
}

.hp-commerce .woocommerce-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.hp-commerce .woocommerce-info .button {
  float: none;
  margin: 0;
}

.woocommerce-message {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  max-width: 820px;
  margin: 0 auto 18px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--hp-line);
  border-inline-start: 4px solid var(--hp-accent);
  border-radius: var(--hp-radius-md);
  font-size: 17px;
  line-height: 1.45;
  list-style: none;
}

.woocommerce-message .hp-added-copy {
  flex: 1 1 220px;
}

.woocommerce-message .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 8px 18px;
  border-radius: var(--hp-radius-md);
  background: var(--hp-night) !important;
  color: #fff !important;
  font-family: var(--hp-font-display);
  font-weight: 600;
  text-decoration: none;
}

.hp-commerce table,
.wc-block-cart-items {
  width: 100%;
  border-collapse: collapse;
}

.hp-commerce th,
.hp-commerce td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--hp-line);
  text-align: start;
}

.wc-block-cart,
.wc-block-checkout {
  font-family: var(--hp-font-body);
  color: var(--hp-ink);
}

.wc-block-cart .wc-block-components-sidebar,
.wc-block-checkout .wc-block-components-sidebar {
  background: #fff;
  color: var(--hp-ink);
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-xl);
  padding: 24px 22px 20px;
  box-shadow: 0 12px 32px rgba(0, 45, 66, 0.06);
}

.wc-block-cart__main,
.wc-block-checkout__main {
  background: #fff;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-lg);
  padding: 18px 20px 22px;
}

.wc-block-cart .wc-block-components-sidebar a,
.wc-block-checkout .wc-block-components-sidebar a {
  color: var(--hp-night);
}

.wc-block-components-product-name,
.wc-block-components-totals-item,
.wc-block-components-totals-footer-item {
  color: inherit;
}

.hp-configurator-page .hannis-cfg {
  margin-top: 8px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hp-account-intro {
  font-size: 18px;
  margin: 0 0 18px;
}

.hp-account-work {
  margin: 0 0 28px;
  padding: 16px;
  border-radius: var(--hp-radius-xl);
  background: var(--hp-night);
  color: #fff;
}

.hp-account-work-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 6px 12px;
}

.hp-account-work-head h2 {
  margin: 0;
  font-family: var(--hp-font-display);
  font-size: 22px;
  line-height: 1.2;
  color: #fff;
}

.hp-account-work-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.hp-account-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.hp-account-work .hp-account-tool {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 0;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  border-inline-start: 4px solid var(--hp-accent);
  background: #fff;
  color: var(--hp-night);
  text-decoration: none;
}

.hp-account-work .hp-account-tool:hover,
.hp-account-work .hp-account-tool:focus-visible {
  background: #f3f8f2;
  color: var(--hp-night);
}

.hp-account-tool-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hp-account-work .hp-account-tool strong {
  color: var(--hp-night);
  font-family: var(--hp-font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

.hp-account-work .hp-account-tool-copy span {
  color: var(--hp-ink);
  font-size: 15px;
  line-height: 1.35;
}

.hp-account-go {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  margin-inline-start: auto;
  border-radius: 50%;
  background: var(--hp-accent);
  color: var(--hp-night);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.hp-account-work .hp-account-tool:hover .hp-account-go,
.hp-account-work .hp-account-tool:focus-visible .hp-account-go {
  background: var(--hp-night);
  color: #fff;
}

.hp-account-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hp-account-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 128px;
  padding: 22px 22px 20px;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-lg);
  background: var(--hp-surface);
  color: var(--hp-night);
  text-decoration: none;
}

.hp-account-card strong {
  font-family: var(--hp-font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
}

.hp-account-card span {
  font-size: 16px;
  line-height: 1.45;
  color: var(--hp-ink);
}

.hp-account-card:hover,
.hp-account-card:focus-visible {
  border-color: var(--hp-night);
  background: #fff;
}

.hp-account-card:focus-visible,
.hp-account-nav a:focus-visible,
.hp-account-person a:focus-visible {
  outline: 3px solid var(--hp-accent);
  outline-offset: 3px;
}

.hp-account-person {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: var(--hp-radius-lg);
  background: var(--hp-night);
  color: #fff;
}

.hp-account-person h2 {
  margin: 0 0 8px;
  font-family: var(--hp-font-display);
  font-size: 22px;
  color: #fff;
}

.hp-account-person p {
  margin: 0 0 10px;
  color: var(--hp-mist);
  font-size: 16px;
}

.hp-account-person a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hp-account-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.hp-account-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-md);
  background: var(--hp-surface);
  color: var(--hp-night);
  font-weight: 600;
  text-decoration: none;
}

.hp-account-nav .is-active a {
  background: var(--hp-night);
  color: #fff;
  border-color: var(--hp-night);
}

.hp-account-grid .hp-form input,
.hp-account-single .hp-form input,
.hp-commerce .woocommerce-EditAccountForm input,
.hp-commerce .woocommerce-address-fields input,
.hp-commerce .woocommerce-address-fields select,
.hp-commerce .woocommerce-EditAccountForm select {
  min-height: 48px;
  font-size: 17px;
}

/* Edge crashes (error code 5) while typing in an RTL password field that uses a web font. */
.hannis-hp input[type="password"] {
  direction: ltr;
  text-align: right;
  text-rendering: auto;
  font-family: "Segoe UI", Arial, sans-serif;
}

.hp-form label.hp-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-weight: 600;
}

.hp-account-grid .hp-form label.hp-check input,
.hp-account-single .hp-form label.hp-check input,
.hp-form label.hp-check input {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  margin: 0;
  padding: 0;
  flex: 0 0 22px;
  accent-color: var(--hp-night);
}

.hp-account-grid .hp-btn,
.hp-account-single .hp-btn,
.hp-commerce .woocommerce-MyAccount-content .button {
  min-height: 48px;
  font-size: 17px;
}

.hp-commerce .woocommerce-orders-table,
.hp-commerce .woocommerce-table {
  font-size: 16px;
}

.hp-commerce .woocommerce-orders-table__cell-order-actions,
.hp-commerce .woocommerce-table--order-details td:has(.order-actions-button) {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hp-commerce .woocommerce-orders-table__cell-order-actions .button,
.hp-commerce .order-actions-button {
  margin: 0;
}

.hp-commerce .woocommerce-MyAccount-content > p:has(mark.order-status) {
  max-width: 820px;
  margin: 0 0 18px;
  padding: 18px 20px;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-lg);
  background: var(--hp-surface);
  font-size: 18px;
  line-height: 1.7;
}

.hp-commerce mark.order-number,
.hp-commerce mark.order-date,
.hp-commerce mark.order-status {
  background: none;
  color: inherit;
  font-weight: 700;
}

.hp-commerce mark.order-status {
  display: inline-block;
  margin-inline-start: 4px;
  padding: 3px 12px;
  border-radius: 99px;
  background: #f5e6c8;
  color: #6b4a12;
  line-height: 1.4;
}

.hp-order-is-processing mark.order-status,
.hp-order-is-completed mark.order-status {
  background: #d7ead6;
  color: #1d4a28;
}

.hp-order-is-pending mark.order-status,
.hp-order-is-on-hold mark.order-status,
.hp-order-is-failed mark.order-status {
  background: #fde8e8;
  color: #b42318;
}

.hp-hero.is-thanks {
  padding-top: 64px;
  padding-bottom: 72px;
}

.hp-hero.is-thanks .hp-hero-grid {
  display: block;
  max-width: 42rem;
}

.hp-hero.is-thanks .hp-h1 {
  margin-bottom: 14px;
}

.hp-hero.is-thanks .hp-lead {
  font-size: 19px;
  line-height: 1.75;
}

.hp-section.is-shop:has(.hp-thanks-order) {
  padding-top: 56px;
  padding-bottom: 88px;
}

.hp-thanks-order .woocommerce-columns--addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.hp-thanks-order .woocommerce-columns--addresses .woocommerce-column {
  float: none;
  width: auto;
}

.hp-thanks-order .woocommerce-customer-details--phone,
.hp-thanks-order .woocommerce-customer-details--email {
  direction: ltr;
  text-align: right;
}

.hp-thanks-order > .hp-thanks-letter,
.hp-thanks-order > .hp-thanks-block,
.hp-thanks-order > .hp-thanks-close,
.hp-thanks-order > .hp-thanks-failed {
  margin-bottom: 56px;
}

.hp-thanks-letter,
.hp-thanks-band {
  padding: 40px 44px 36px;
  border-radius: var(--hp-radius-xl);
}

.hp-thanks-letter {
  background: #fff;
  border: 1px solid var(--hp-line);
  box-shadow: var(--hp-shadow);
}

.hp-thanks-letter .hp-h2,
.hp-thanks-block .hp-h2,
.hp-thanks-band .hp-h2,
.hp-thanks-close .hp-h2 {
  margin-top: 8px;
  margin-bottom: 16px;
}

.hp-thanks-letter p,
.hp-thanks-close p,
.hp-thanks-failed p,
.hp-thanks-steps p,
.hp-thanks-why p {
  max-width: 28rem;
  font-size: 18px;
  line-height: 1.7;
}

.hp-thanks-letter p + p,
.hp-thanks-close p + p,
.hp-thanks-failed p + p,
.hp-thanks-steps p + p,
.hp-thanks-why p + p {
  margin-top: 10px;
}

.hp-thanks-mail {
  color: var(--hp-muted);
  font-size: 16px !important;
}

.hp-thanks-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 26px;
}

.hp-thanks-steps article {
  margin: 0;
  padding: 28px 28px 32px;
  background: #fff;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-xl);
  box-shadow: 0 8px 24px rgba(0, 45, 66, 0.05);
}

.hp-thanks-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #e7f3ea;
  color: var(--hp-night);
  font-family: var(--hp-font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.hp-thanks-steps p {
  margin-top: 10px;
  color: var(--hp-muted);
}

.hp-thanks-band {
  background: #e7f3ea;
}

.hp-thanks-why {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.hp-thanks-why article {
  margin: 0;
  padding: 28px 26px 30px;
  background: #fff;
  border-radius: var(--hp-radius-xl);
  box-shadow: 0 10px 28px rgba(0, 45, 66, 0.06);
}

.hp-thanks-why p {
  margin-top: 12px;
  color: var(--hp-muted);
  font-size: 17px;
}

.hp-thanks-order .woocommerce-order-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 22px 0 22px;
  padding: 0;
  list-style: none;
}

.hp-thanks-order .woocommerce-order-overview li {
  margin: 0;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-card);
  color: var(--hp-muted);
  font-size: 15px;
}

.hp-thanks-order .woocommerce-order-overview strong {
  display: block;
  margin-top: 4px;
  color: var(--hp-night);
  font-family: var(--hp-font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.hp-thanks-close {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px 36px;
  padding: 40px 44px;
  background: var(--hp-night);
  color: #fff;
  border-radius: var(--hp-radius-xl);
}

.hp-thanks-close .hp-h2,
.hp-thanks-close p {
  color: #fff;
}

.hp-thanks-close .hp-h2 {
  margin-top: 8px;
}

.hp-thanks-shop {
  flex: 1 0 100%;
  margin: 0 !important;
}

.hp-thanks-shop a {
  color: var(--hp-mist);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hp-thanks-failed {
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--hp-line);
  border-inline-start: 5px solid #b42318;
  border-radius: var(--hp-radius-card);
}

.hp-commerce .woocommerce-order-details,
.hp-commerce .woocommerce-customer-details {
  max-width: none;
  margin: 0 0 16px;
  padding: 6px 22px 18px;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-lg);
  background: var(--hp-surface);
}

.hp-thanks-order .woocommerce-order-details,
.hp-thanks-order .woocommerce-customer-details {
  padding: 32px 36px 36px;
  margin-bottom: 24px;
  border-radius: var(--hp-radius-xl);
}

.hp-commerce .woocommerce-order-details h2,
.hp-commerce .woocommerce-customer-details h2 {
  margin: 16px 0 8px;
  font-family: var(--hp-font-display);
  font-size: 24px;
}

.hp-commerce .woocommerce-customer-details address,
.hp-commerce .woocommerce-Address address {
  margin: 0;
  font-style: normal;
  font-size: 17px;
  line-height: 1.65;
}

.hp-commerce .wc-item-meta {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.hp-commerce .woocommerce-Addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

.hp-commerce .woocommerce-Address {
  float: none;
  width: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 190px;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-lg);
  background: var(--hp-surface);
}

.hp-commerce .woocommerce-Address-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}

.hp-commerce .woocommerce-Address h2 {
  margin: 0;
  font-family: var(--hp-font-display);
  font-size: 26px;
}

.hp-commerce .woocommerce-Address .edit {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--hp-radius-md);
  background: var(--hp-accent);
  color: var(--hp-night);
  font-weight: 600;
  text-decoration: none;
}

.woocommerce-edit-address .woocommerce-MyAccount-content > form,
.hp-commerce .woocommerce-EditAccountForm {
  max-width: 560px;
}

.hp-commerce .woocommerce-EditAccountForm .form-row,
.woocommerce-edit-address .woocommerce-address-fields .form-row {
  float: none;
  clear: both;
  width: 100%;
  margin: 0 0 14px;
}

.hp-commerce .woocommerce-EditAccountForm label,
.woocommerce-edit-address .woocommerce-address-fields label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
}

.hp-commerce .woocommerce-EditAccountForm fieldset {
  margin: 10px 0 0;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid var(--hp-line);
}

.hp-commerce .woocommerce-EditAccountForm fieldset legend {
  padding: 0;
  font-family: var(--hp-font-display);
  font-size: 22px;
  font-weight: 600;
}

.hp-commerce .woocommerce-orders-table a,
.hp-commerce .woocommerce-Address a,
.hp-commerce .woocommerce-MyAccount-content > p a {
  font-weight: 600;
}

@media (max-width: 720px) {
  .hp-account-grid,
  .hp-account-cards,
  .hp-account-tools,
  .hp-commerce .woocommerce-Addresses {
    grid-template-columns: 1fr;
  }

  .hp-account-work {
    padding: 14px;
  }

  .hp-account-work-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 10px;
  }
}

/* Order pay */

.hp-pay {
  display: grid;
  gap: 18px;
  max-width: 760px;
}

.hp-pay-card,
.hp-pay-methods {
  background: #fff;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-lg);
  padding: 22px 22px 8px;
}

.hp-pay-methods {
  padding-bottom: 22px;
}

.hp-pay-kicker {
  margin: 0;
  color: var(--hp-muted);
  font-size: 15px;
}

.hp-pay-due {
  margin: 6px 0 8px;
  font-family: var(--hp-font-display);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  line-height: 1.2;
}

.hp-pay-due .woocommerce-Price-amount {
  font-weight: 700;
}

.hp-pay-items,
.hp-pay .payment_methods {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hp-pay-items li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 20px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--hp-line);
  font-size: 17px;
}

.hp-pay-name {
  font-family: var(--hp-font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

.hp-pay-meta {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.5;
}

.hp-pay-meta .wc-item-meta,
.hp-pay-meta ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hp-pay-meta li {
  display: block;
  padding: 0;
  border: 0;
  font-size: 16px;
}

.hp-pay-qty {
  margin-top: 8px;
  font-size: 16px;
}

.hp-pay-line {
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.hp-pay-totals div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  font-size: 17px;
}

.hp-pay-totals .is-total {
  border-top: 1px solid var(--hp-line);
  font-size: 22px;
  font-weight: 700;
}

.hp-pay-methods h2 {
  margin: 0 0 12px;
  font-family: var(--hp-font-display);
  font-size: 26px;
}

.hp-pay .woocommerce-info {
  margin: 0;
  padding: 16px 18px;
  background: #fff6e8;
  border: 1px solid #e8c48a;
  border-radius: var(--hp-radius-md);
  font-size: 18px;
  line-height: 1.55;
}

.hp-pay-alt {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.hp-pay .woocommerce-privacy-policy-text,
.hp-pay .woocommerce-terms-and-conditions-wrapper {
  max-width: 40rem;
  margin: 16px 0;
  font-size: 16px;
  line-height: 1.6;
}

.hp-pay #place_order {
  width: 100%;
  min-height: 52px;
  font-size: 18px;
}

.hp-pay a:focus-visible,
.hp-pay button:focus-visible {
  outline: 2px solid var(--hp-night);
  outline-offset: 3px;
}

/* Empty cart */

.wc-block-cart__empty-cart__title.with-empty-cart-icon::before {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  mask-image: none !important;
}

.wc-block-cart__empty-cart__title {
  font-family: var(--hp-font-display);
  font-size: clamp(32px, 4vw, 44px) !important;
  font-weight: 600;
  color: var(--hp-night);
  margin: 8px 0 12px;
}

.wp-block-woocommerce-empty-cart-block {
  max-width: 36rem;
  margin: 0 auto 8px;
  text-align: center;
}

.wp-block-woocommerce-empty-cart-block p {
  font-size: 18px;
  line-height: 1.55;
}

.hp-empty-cart-btn .wp-block-button__link {
  background: var(--hp-accent) !important;
  color: var(--hp-night) !important;
  border-radius: var(--hp-radius-md);
  font-family: var(--hp-font-display);
  font-weight: 600;
  font-size: 16px;
  min-height: 48px;
  padding: 12px 28px;
  text-decoration: none;
}

.hp-cart-picks {
  margin-top: 36px;
}

/* Product page */

.hp-product {
  padding: 28px 0 8px;
}

.hp-product-notices {
  padding-top: 24px;
}

.hp-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 28px;
  align-items: start;
}

.hp-product-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--hp-surface);
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-lg);
}

.hp-product-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.hp-product-buy h1 {
  margin: 6px 0 10px;
  font-family: var(--hp-font-display);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
}

.hp-product-price {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 700;
}

.hp-product-price del {
  font-size: 18px;
  font-weight: 500;
}

.hp-product-price ins {
  text-decoration: none;
}

.hp-product-short {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.55;
}

.hp-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.hp-product-meta span {
  padding: 4px 12px;
  border: 1px solid var(--hp-line);
  border-radius: 999px;
  background: var(--hp-surface);
  font-size: 15px;
}

.hp-product-meta .is-in {
  background: #d7ead6;
  border-color: #d7ead6;
  color: #1d4a28;
}

.hp-product-meta .is-out {
  background: #fde8e8;
  border-color: #fde8e8;
  color: #b42318;
}

.hp-product-buy p.stock {
  display: none;
}

.hp-product-buy form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.hp-product-buy .quantity {
  width: 96px;
}

.hp-product-buy .quantity .screen-reader-text {
  position: static;
  width: auto;
  height: auto;
  margin: 0 0 6px;
  overflow: visible;
  clip: auto;
  white-space: normal;
  font-size: 14px;
  font-weight: 600;
}

.hp-product-buy .quantity .qty {
  width: 96px;
  font-size: 18px;
  text-align: center;
}

.hp-product-buy .single_add_to_cart_button {
  flex: 1 1 180px;
  min-height: 52px;
  font-size: 18px;
}

.hp-product-buy .single_add_to_cart_button:disabled,
.hp-product-buy .single_add_to_cart_button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

body.hannis-hp .hp-product-buy form.variations_form.cart {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

body.hannis-hp .hp-product-buy form.cart table.variations {
  display: block;
  width: 100%;
  margin: 0;
  padding: 16px 16px 14px;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-lg);
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 45, 66, 0.05);
}

body.hannis-hp .hp-product-buy form.cart table.variations::before {
  content: "בחירת אפשרויות";
  display: block;
  margin: 0 0 14px;
  font-family: var(--hp-font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--hp-night);
}

body.hannis-hp .hp-product-buy form.cart table.variations tbody,
body.hannis-hp .hp-product-buy form.cart table.variations tr,
body.hannis-hp .hp-product-buy form.cart table.variations th,
body.hannis-hp .hp-product-buy form.cart table.variations td {
  display: block;
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 1.4;
  text-align: start;
  vertical-align: top;
}

body.hannis-hp .hp-product-buy form.cart table.variations tr + tr {
  margin-top: 12px;
}

body.hannis-hp .hp-product-buy form.cart table.variations td.value {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

body.hannis-hp .hp-product-buy form.cart table.variations label {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--hp-muted);
}

body.hannis-hp .hp-product-buy form.cart table.variations select {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 48px;
  margin: 0;
  padding: 10px 16px;
  padding-inline-end: 44px;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-md);
  background-color: #f7f9fa;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6.2 8 10.2 12 6.2' stroke='%23002d42' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  background-size: 16px 16px;
  color: var(--hp-night);
  font: inherit;
  font-size: 16px;
  line-height: 1.3;
  cursor: pointer;
  box-shadow: none;
}

body.hannis-hp .hp-product-buy form.cart table.variations select:hover {
  border-color: var(--hp-mist);
}

body.hannis-hp .hp-product-buy form.cart table.variations select:focus,
body.hannis-hp .hp-product-buy form.cart table.variations select:focus-visible {
  outline: 2px solid var(--hp-night);
  outline-offset: 2px;
  border-color: var(--hp-night);
  background-color: #fff;
}

body.hannis-hp .hp-product-buy form.cart table.variations select:has(option[value=""]:checked) {
  color: var(--hp-muted);
}

body.hannis-hp .hp-product-buy form.cart table.variations select:has(option:checked:not([value=""])) {
  border-color: #b7c4c8;
  background-color: #fff;
}

body.hannis-hp .hp-product-buy .reset_variations {
  align-self: flex-start;
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--hp-teal-aa);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.hannis-hp .hp-product-buy .reset_variations[hidden],
body.hannis-hp .hp-product-buy .reset_variations[style*="hidden"] {
  display: none !important;
}

body.hannis-hp .hp-product-buy .single_variation_wrap {
  display: grid;
  gap: 12px;
  width: 100%;
}

body.hannis-hp .hp-product-buy .woocommerce-variation-add-to-cart,
body.hannis-hp .hp-product-buy .variations_button {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  width: 100%;
}

body.hannis-hp .hp-product-buy .single_variation:empty {
  display: none;
}

body.hannis-hp .hp-product-buy .woocommerce-variation-description p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

body.hannis-hp .hp-product-buy .woocommerce-variation-price,
body.hannis-hp .hp-product-buy .woocommerce-variation-price .price {
  margin: 0;
  font-family: var(--hp-font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--hp-night);
}

body.hannis-hp .hp-product-buy form.variations_form .quantity {
  position: relative;
}

body.hannis-hp .hp-product-buy form.variations_form .quantity::before {
  content: "כמות";
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--hp-muted);
}

body.hannis-hp .hp-product-buy form.variations_form .quantity .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.hp-product-ask {
  margin: 12px 0 0;
  font-size: 16px;
}

.hp-product-ask a,
.hp-product-trust a,
.hp-cat-note a {
  font-weight: 600;
}

.hp-product-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.hp-product-trust li {
  padding: 12px;
  background: var(--hp-surface);
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-md);
}

.hp-product-trust strong,
.hp-product-trust span {
  display: block;
}

.hp-product-trust strong {
  margin-bottom: 4px;
  font-size: 15px;
}

.hp-product-trust span {
  font-size: 14px;
  line-height: 1.45;
  color: var(--hp-ink);
}

.hp-save,
.hp-cart-save {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #d7ead6;
  border-radius: var(--hp-radius-md);
  color: #1d4a28;
  font-size: 16px;
  line-height: 1.45;
}

.wc-block-checkout .hp-cart-save {
  margin-inline: 16px;
}

.hp-save {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
}

.hp-save strong {
  font-family: var(--hp-font-display);
  font-size: 22px;
}

.hp-badge.is-save {
  background: #d7ead6;
  color: #1d4a28;
}

.hp-product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 36px;
  align-items: start;
}

.hp-product-story .hp-prose {
  font-size: 18px;
  line-height: 1.65;
}

.hp-specs {
  display: grid;
  grid-template-columns: 160px 1fr;
  margin: 0;
}

.hp-specs dt,
.hp-specs dd {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--hp-line);
  font-size: 17px;
}

.hp-specs dt {
  font-weight: 600;
}

.hp-empty-cat {
  max-width: 560px;
  padding: 28px;
  background: var(--hp-surface);
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-lg);
}

.hp-empty-cat h2 {
  margin: 0 0 8px;
  font-family: var(--hp-font-display);
  font-size: 28px;
}

.hp-empty-cat p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.5;
}

.hp-cat-note {
  margin: 22px 0 0;
  font-size: 16px;
}

.hp-product-buy a:focus-visible,
.hp-product-buy button:focus-visible,
.hp-product-buy input:focus-visible {
  outline: 2px solid var(--hp-night);
  outline-offset: 3px;
}

@media (max-width: 800px) {
  .hp-product-grid,
  .hp-product-detail,
  .hp-specs,
  .hp-product-trust {
    grid-template-columns: 1fr;
  }

  .hp-pay-items li {
    grid-template-columns: 1fr;
  }
}

.wc-block-cart .wp-block-woocommerce-product-collection {
  display: none;
}

.wc-block-components-sale-badge,
.wc-block-components-product-sale-badge,
.wc-block-components-product-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  padding: 3px 10px;
  background: #d7ead6 !important;
  color: #1d4a28 !important;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}

body.hannis-hp .wc-block-cart-item__quantity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}

body.hannis-hp .wc-block-components-quantity-selector {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: 40px;
  min-height: 40px;
  border: 1px solid var(--hp-line);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

body.hannis-hp .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button,
body.hannis-hp .wc-block-components-quantity-selector .wc-block-components-quantity-selector__input {
  width: 36px;
  min-width: 36px;
  height: 40px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--hp-night);
  font-size: 16px;
  font-weight: 700;
  line-height: 40px;
  opacity: 1;
}

body.hannis-hp .wc-block-components-quantity-selector .wc-block-components-quantity-selector__input {
  width: 34px;
  min-width: 34px;
  border-inline: 1px solid var(--hp-line);
  font-family: var(--hp-font-body);
  -moz-appearance: textfield;
  appearance: textfield;
}

body.hannis-hp .wc-block-components-quantity-selector .wc-block-components-quantity-selector__input::-webkit-outer-spin-button,
body.hannis-hp .wc-block-components-quantity-selector .wc-block-components-quantity-selector__input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

body.hannis-hp .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button svg {
  width: 14px;
  height: 14px;
}

body.hannis-hp table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--hp-teal-aa);
  font-family: var(--hp-font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
}

body.hannis-hp .wc-block-cart-item__remove-link svg {
  display: none;
}

body.hannis-hp .wc-block-cart-item__remove-link::before {
  content: "הסרה";
}

body.hannis-hp table.wc-block-cart-items .wc-block-cart-item__total {
  vertical-align: top;
}

body.hp-cart-ship-ready .wc-block-components-totals-shipping {
  display: none;
}

.hp-cart-ship {
  margin: 0 0 14px;
  padding-bottom: 4px;
}

.hp-cart-ship-kicker {
  margin: 0 0 8px;
  color: var(--hp-night);
  font-family: var(--hp-font-display);
  font-size: 16px;
  font-weight: 700;
}

.hp-cart-ship-options {
  display: grid;
  gap: 8px;
}

.hp-cart-ship.is-busy .hp-cart-ship-options {
  opacity: 0.55;
  pointer-events: none;
}

.hp-cart-ship-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: start;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-md);
  background: #fff;
  cursor: pointer;
}

.hp-cart-ship-option.is-selected {
  border-color: var(--hp-night);
  background: #f7fbf6;
}

.hp-cart-ship-option input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--hp-night);
}

.hp-cart-ship-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.hp-cart-ship-name {
  color: var(--hp-night);
  font-weight: 700;
  line-height: 1.35;
}

.hp-cart-ship-note,
.hp-ship-note {
  margin: 4px 0 0;
  color: var(--hp-teal-aa);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.hp-cart-ship-price {
  color: var(--hp-night);
  font-weight: 700;
  white-space: nowrap;
}

.wc-block-components-radio-control__option .hp-ship-note {
  grid-column: 1 / -1;
}

.wc-block-components-product-metadata__description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wc-block-components-checkout-step__title,
.wc-block-components-title {
  font-family: var(--hp-font-display);
}

.hp-side-trust {
  display: grid;
  gap: 6px;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--hp-line);
  list-style: none;
  font-size: 15px;
  line-height: 1.4;
}

.hp-side-trust li {
  padding-inline-start: 16px;
  position: relative;
}

.hp-side-trust li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--hp-accent);
}

.hp-pay-help {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}

.wc-block-components-order-summary-item__image img,
.wc-block-cart-item__image img {
  border-radius: var(--hp-radius-md);
}

/* Catalog quick view */

button.hp-btn {
  font-family: inherit;
}

.hp-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.hp-card .hp-card-actions .hp-btn {
  width: 100%;
  margin-top: 0;
}

.hp-card .hp-btn.is-ghost:hover {
  background: var(--hp-bg);
  border-color: var(--hp-teal);
  color: var(--hp-night);
}

.hp-qv[hidden] {
  display: none !important;
}

.hp-qv {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(0, 33, 47, 0.72);
}

.hp-qv-dialog {
  position: relative;
  width: min(980px, 100%);
  max-height: min(880px, calc(100vh - 32px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: var(--hp-radius-xl);
  box-shadow: var(--hp-shadow);
}

.hp-qv-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--hp-night);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 45, 66, 0.16);
}

.hp-qv-close svg,
.hp-qv-nav svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hp-qv-body {
  overflow: auto;
}

.hp-qv-loading {
  margin: 0;
  padding: 64px 24px;
  text-align: center;
  font-size: 18px;
}

.hp-qv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 22px;
  padding: 18px;
}

.hp-qv-stage {
  position: relative;
  background: var(--hp-bg);
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-lg);
  overflow: hidden;
}

.hp-qv-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--hp-bg);
}

.hp-qv-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--hp-night);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 45, 66, 0.16);
}

.hp-qv-nav.is-prev {
  inset-inline-start: 10px;
}

.hp-qv-nav.is-next {
  inset-inline-end: 10px;
}

.hp-qv-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}

.hp-qv-thumbs button {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-sm);
  background: var(--hp-bg);
  cursor: pointer;
  overflow: hidden;
}

.hp-qv-thumbs button[aria-current="true"] {
  border-color: var(--hp-night);
}

.hp-qv-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-qv-copy h2 {
  margin: 4px 0 8px;
  font-family: var(--hp-font-display);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  color: var(--hp-night);
}

.hp-qv-price {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 700;
}

.hp-qv-price del {
  font-size: 16px;
  font-weight: 500;
}

.hp-qv-price ins {
  text-decoration: none;
}

.hp-qv-summary {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.55;
}

.hp-qv-varnote {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.45;
}

.hp-qv-specs {
  grid-template-columns: 108px 1fr;
  margin-bottom: 14px;
}

.hp-qv-specs dt,
.hp-qv-specs dd {
  font-size: 15px;
}

.hp-qv form.cart:not(.variations_form) {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-top: 4px;
}

.hp-qv form.variations_form {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.hp-qv table.variations {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
}

.hp-qv table.variations tbody,
.hp-qv table.variations tr,
.hp-qv table.variations th,
.hp-qv table.variations td {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: start;
}

.hp-qv table.variations tr + tr {
  margin-top: 10px;
}

.hp-qv table.variations label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.hp-qv select,
.hp-qv .qty {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-md);
  background: #fff;
  color: var(--hp-ink);
  font: inherit;
}

.hp-qv .reset_variations {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}

.hp-qv .reset_variations[hidden] {
  display: none !important;
}

.hp-qv .single_variation:empty {
  display: none;
}

.hp-qv .woocommerce-variation-add-to-cart,
.hp-qv .variations_button {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.hp-qv .quantity {
  width: 96px;
}

.hp-qv .quantity .screen-reader-text {
  position: static;
  width: auto;
  height: auto;
  margin: 0 0 6px;
  overflow: visible;
  clip: auto;
  white-space: normal;
  font-size: 14px;
  font-weight: 600;
}

.hp-qv .quantity .qty {
  width: 96px;
  text-align: center;
}

.hp-qv .single_add_to_cart_button {
  flex: 1 1 180px;
  min-height: 48px;
  border: 0;
  border-radius: var(--hp-radius-md);
  background: var(--hp-accent);
  color: var(--hp-night);
  font-family: var(--hp-font-display);
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
}

.hp-qv .single_add_to_cart_button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.hp-qv p.stock {
  display: none;
}

.hp-qv-status {
  margin: 10px 0 0;
  min-height: 1.4em;
  font-size: 15px;
  font-weight: 600;
}

.hp-qv-status.is-error {
  color: #b42318;
}

.hp-qv-status.is-ok {
  color: #1d4a28;
}

.hp-qv-status a,
.hp-qv-more a {
  font-weight: 700;
}

.hp-qv-more {
  margin: 8px 0 0;
  font-size: 15px;
}

@media (max-width: 800px) {
  .hp-qv {
    padding: 20px 14px;
    align-items: center;
  }

  .hp-qv-dialog {
    width: min(440px, 100%);
    max-height: min(86vh, 760px);
    height: auto;
    border-radius: var(--hp-radius-xl);
  }

  .hp-qv-grid,
  .hp-qv-specs {
    grid-template-columns: 1fr;
  }
}

/* Phone and tablet. WooCommerce's own small-screen sheet is not loaded. */

body.hannis-hp .wc-block-cart .wc-block-cart__submit-container--sticky {
  display: block;
  position: static;
  width: auto;
  inset: auto;
  padding: 12px 0 0;
  background: transparent;
  box-shadow: none;
  z-index: auto;
}

body.hannis-hp .wc-block-cart .wc-block-cart__submit-container--sticky::before {
  content: none;
}

body.hannis-hp .wc-block-cart .wc-block-cart__submit-button {
  width: 100%;
  min-height: 48px;
}

body.hannis-hp table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image,
body.hannis-hp .wc-block-components-order-summary-item__image {
  width: 88px !important;
  min-width: 0 !important;
  max-width: 88px !important;
  overflow: hidden;
}

body.hannis-hp table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image a {
  display: block;
  width: 88px;
}

body.hannis-hp table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image img,
body.hannis-hp .wc-block-components-order-summary-item__image img {
  width: 88px;
  max-width: 88px;
  height: 88px;
  object-fit: cover;
  display: block;
}

body.hannis-hp .wc-block-cart-item__product .wc-block-components-product-name,
body.hannis-hp .wc-block-components-order-summary-item__description .wc-block-components-product-name {
  max-width: 100%;
  overflow-wrap: anywhere;
}

body.hannis-hp .wc-block-cart:not(.is-small):not(.is-mobile):not(.is-medium) table.wc-block-cart-items .wc-block-cart-items__header {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
  color: var(--hp-muted);
}

body.hannis-hp .wc-block-cart:not(.is-small):not(.is-mobile):not(.is-medium) table.wc-block-cart-items .wc-block-cart-items__header-image {
  width: 164px;
}

body.hannis-hp .wc-block-cart:not(.is-small):not(.is-mobile):not(.is-medium) .wc-block-cart__main table.wc-block-cart-items td {
  padding-top: 22px;
  padding-bottom: 22px;
}

body.hannis-hp .wc-block-cart:not(.is-small):not(.is-mobile):not(.is-medium) table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image {
  width: 164px !important;
  min-width: 164px !important;
  max-width: 164px !important;
  padding-inline-end: 40px;
  overflow: visible;
}

body.hannis-hp .wc-block-cart:not(.is-small):not(.is-mobile):not(.is-medium) table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image a,
body.hannis-hp .wc-block-cart:not(.is-small):not(.is-mobile):not(.is-medium) table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image img {
  width: 112px;
  max-width: 112px;
  height: 112px;
}

body.hannis-hp .wc-block-cart:not(.is-small):not(.is-mobile):not(.is-medium) .wc-block-cart-item__product .wc-block-components-product-name {
  font-family: var(--hp-font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--hp-night);
}

body.hannis-hp .wc-block-cart:not(.is-small):not(.is-mobile):not(.is-medium) .wc-block-cart-item__product .wc-block-components-product-price {
  max-width: none;
  margin-top: 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--hp-ink);
}

body.hannis-hp .wc-block-cart:not(.is-small):not(.is-mobile):not(.is-medium) .wc-block-cart-item__product .wc-block-components-product-metadata,
body.hannis-hp .wc-block-cart:not(.is-small):not(.is-mobile):not(.is-medium) .wc-block-cart-item__product .wc-block-components-product-metadata__description {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--hp-ink);
}

body.hannis-hp .wc-block-cart:not(.is-small):not(.is-mobile):not(.is-medium) table.wc-block-cart-items .wc-block-cart-item__total {
  padding-top: 26px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--hp-night);
}

body.hannis-hp .wc-block-cart:not(.is-small):not(.is-mobile):not(.is-medium) .wc-block-cart-item__quantity {
  margin-top: 14px;
}

body.hannis-hp .wc-block-cart.is-small table.wc-block-cart-items .wc-block-cart-items__row,
body.hannis-hp .wc-block-cart.is-mobile table.wc-block-cart-items .wc-block-cart-items__row,
body.hannis-hp .wc-block-cart.is-medium table.wc-block-cart-items .wc-block-cart-items__row {
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: start;
}

body.hannis-hp .wc-block-cart.is-small table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image,
body.hannis-hp .wc-block-cart.is-mobile table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image,
body.hannis-hp .wc-block-cart.is-medium table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image {
  grid-column: 1;
  grid-row: 1 / span 2;
  padding: 0;
}

body.hannis-hp .wc-block-cart.is-small table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product,
body.hannis-hp .wc-block-cart.is-mobile table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product,
body.hannis-hp .wc-block-cart.is-medium table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product {
  grid-column: 2 / 3;
  grid-row: 1;
  min-width: 0;
}

body.hannis-hp .wc-block-cart.is-small table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total,
body.hannis-hp .wc-block-cart.is-mobile table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total,
body.hannis-hp .wc-block-cart.is-medium table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
  grid-column: 3;
  grid-row: 1;
}

body.hannis-hp .wc-block-cart.is-small table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity,
body.hannis-hp .wc-block-cart.is-mobile table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity,
body.hannis-hp .wc-block-cart.is-medium table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity {
  grid-column: 2 / -1;
  grid-row: 2;
  padding: 8px 0 0;
}

body.hannis-hp .wc-block-cart.is-small .wc-block-cart-item__product .wc-block-components-product-name,
body.hannis-hp .wc-block-cart.is-mobile .wc-block-cart-item__product .wc-block-components-product-name,
body.hannis-hp .wc-block-cart.is-medium .wc-block-cart-item__product .wc-block-components-product-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--hp-night);
}

body.hannis-hp .wc-block-cart.is-small .wc-block-cart-item__product .wc-block-components-product-price,
body.hannis-hp .wc-block-cart.is-mobile .wc-block-cart-item__product .wc-block-components-product-price,
body.hannis-hp .wc-block-cart.is-medium .wc-block-cart-item__product .wc-block-components-product-price,
body.hannis-hp .wc-block-cart.is-small .wc-block-cart-item__product .wc-block-components-product-metadata__description,
body.hannis-hp .wc-block-cart.is-mobile .wc-block-cart-item__product .wc-block-components-product-metadata__description,
body.hannis-hp .wc-block-cart.is-medium .wc-block-cart-item__product .wc-block-components-product-metadata__description,
body.hannis-hp .wc-block-cart.is-small table.wc-block-cart-items .wc-block-cart-item__total,
body.hannis-hp .wc-block-cart.is-mobile table.wc-block-cart-items .wc-block-cart-item__total,
body.hannis-hp .wc-block-cart.is-medium table.wc-block-cart-items .wc-block-cart-item__total {
  font-size: 15px;
  line-height: 1.45;
  color: var(--hp-ink);
}

.hp-commerce .select2-container {
  width: 100% !important;
}

.hp-commerce .select2-container .select2-selection--single {
  height: 48px;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-md);
}

.hp-commerce .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 46px;
  padding-inline: 12px;
  color: var(--hp-ink);
}

.hp-commerce .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 46px;
}

@media (max-width: 1024px) {
  .hp-hero.is-shop {
    padding: 28px 0 20px;
  }

  .hp-hero.is-shop .hp-h1 {
    margin-bottom: 10px;
  }

  .hp-hero.is-shop .hp-lead {
    margin-bottom: 0;
  }

  .hp-hero.is-shop .hp-hero-figure,
  .hp-hero.is-shop .hp-hero-figure img {
    min-height: 0;
    height: auto;
    max-height: none;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  .hp-section.is-shop {
    padding-top: 28px;
    padding-bottom: 48px;
  }

  .hp-commerce table.woocommerce-orders-table {
    border: 0;
  }

  .hp-commerce table.woocommerce-orders-table thead {
    display: none;
  }

  .hp-commerce table.woocommerce-orders-table tr {
    display: block;
    margin: 0 0 14px;
    padding: 4px 16px 8px;
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius-lg);
    background: #fff;
  }

  .hp-commerce table.woocommerce-orders-table td,
  .hp-commerce table.woocommerce-orders-table th {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    width: auto;
    padding: 12px 0;
    border-bottom: 1px solid var(--hp-line);
    text-align: start;
  }

  .hp-commerce table.woocommerce-orders-table tr > :last-child {
    border-bottom: 0;
  }

  .hp-commerce table.woocommerce-orders-table td::before,
  .hp-commerce table.woocommerce-orders-table th::before {
    content: attr(data-title);
    font-weight: 700;
  }

  .hp-commerce .woocommerce-orders-table__cell-order-actions {
    justify-content: flex-start;
  }

  .hp-commerce .woocommerce-orders-table__cell-order-actions::before {
    flex: 1 0 100%;
  }
}

@media (max-width: 900px) {
  body.hannis-hp .wc-block-components-sidebar-layout {
    flex-direction: column;
  }

  body.hannis-hp .wc-block-components-sidebar-layout .wc-block-components-main,
  body.hannis-hp .wc-block-components-sidebar-layout .wc-block-components-sidebar {
    width: 100%;
    padding: 22px 20px 24px;
  }
}

@media (max-width: 767px) {
  .hp-hero.is-shop .hp-hero-figure,
  .hp-hero.is-shop .hp-hero-figure img {
    height: auto;
    max-height: none;
    aspect-ratio: 1 / 1;
  }

  .hp-pay-card,
  .hp-pay-methods {
    padding: 24px 22px 26px;
  }

  .hp-commerce table.woocommerce-table--order-details thead {
    display: none;
  }

  .hp-commerce table.woocommerce-table--order-details tr {
    display: block;
  }

  .hp-commerce table.woocommerce-table--order-details td,
  .hp-commerce table.woocommerce-table--order-details th {
    display: block;
    width: 100%;
    text-align: start;
  }

  .hp-commerce .woocommerce-order-details,
  .hp-commerce .woocommerce-customer-details {
    padding-inline: 16px;
  }

  .hp-thanks-why {
    grid-template-columns: 1fr 1fr;
  }

  .hp-thanks-steps {
    grid-template-columns: 1fr;
  }

  .hp-thanks-letter,
  .hp-thanks-band,
  .hp-thanks-close {
    padding: 28px 22px;
  }

  .hp-section.is-shop:has(.hp-thanks-order) {
    padding-top: 36px;
  }

  .hp-hero.is-thanks {
    padding-top: 36px;
    padding-bottom: 40px;
  }
}

@media (max-width: 700px) {
  .hp-thanks-why,
  .hp-thanks-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hp-thanks-letter,
  .hp-thanks-band,
  .hp-thanks-close,
  .hp-thanks-steps article,
  .hp-thanks-why article {
    padding: 24px 22px 22px;
  }

  .hp-thanks-order > .hp-thanks-letter,
  .hp-thanks-order > .hp-thanks-block,
  .hp-thanks-order > .hp-thanks-close {
    margin-bottom: 28px;
  }

  .hp-thanks-letter p,
  .hp-thanks-close p,
  .hp-thanks-steps p,
  .hp-thanks-why p {
    line-height: 1.55;
  }

  .hp-thanks-letter p + p,
  .hp-thanks-close p + p,
  .hp-thanks-steps p + p,
  .hp-thanks-why p + p {
    margin-top: 6px;
  }

  .hp-thanks-letter .hp-h2,
  .hp-thanks-band .hp-h2,
  .hp-thanks-close .hp-h2 {
    margin-bottom: 12px;
    line-height: 1.25;
  }

  .hp-section.is-shop:has(.hp-thanks-order) {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .hp-hero.is-thanks {
    padding-top: 40px;
    padding-bottom: 44px;
  }

  .hp-thanks-order .woocommerce-order-overview,
  .hp-thanks-order .woocommerce-columns--addresses {
    grid-template-columns: 1fr;
  }
}
