@charset "UTF-8";

.zsg-checkout-page,
.zsg-thankyou {
  --zsg-checkout-red: #e30014;
  --zsg-checkout-red-dark: #bd0011;
  --zsg-checkout-red-soft: rgba(227, 0, 20, .065);
  --zsg-checkout-ink: #171b20;
  --zsg-checkout-text: #343b43;
  --zsg-checkout-muted: #707983;
  --zsg-checkout-line: #e2e6e9;
  --zsg-checkout-line-strong: #d5dadd;
  --zsg-checkout-surface: #ffffff;
  --zsg-checkout-soft: #f5f7f8;
  --zsg-checkout-soft-2: #eef1f3;
  width: 100%;
  color: var(--zsg-checkout-text);
  background: #f7f8f9;
}

.zsg-checkout-page *,
.zsg-checkout-page *::before,
.zsg-checkout-page *::after,
.zsg-thankyou *,
.zsg-thankyou *::before,
.zsg-thankyou *::after {
  box-sizing: border-box;
}

.zsg-checkout-container {
  width: min(100% - 40px, 1320px);
  margin-inline: auto;
}

.zsg-checkout-page {
  padding: 28px 0 72px;
}

.zsg-checkout-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 26px;
  color: var(--zsg-checkout-muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.zsg-checkout-breadcrumbs a {
  color: var(--zsg-checkout-muted);
  text-decoration: none;
}

.zsg-checkout-breadcrumbs a:hover,
.zsg-checkout-breadcrumbs a:focus-visible {
  color: var(--zsg-checkout-red);
}

.zsg-checkout-breadcrumbs a:focus-visible,
.zsg-checkout-page a:focus-visible,
.zsg-thankyou a:focus-visible,
.zsg-checkout-page button:focus-visible,
.zsg-thankyou button:focus-visible {
  outline: 2px solid var(--zsg-checkout-red);
  outline-offset: 3px;
}

.zsg-checkout-header {
  max-width: 760px;
  margin-bottom: 30px;
}

.zsg-checkout-kicker,
.zsg-checkout-section__eyebrow {
  margin: 0 0 7px;
  color: var(--zsg-checkout-red);
  font-size: 10px;
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.zsg-checkout-header h1,
.zsg-thankyou-hero h1 {
  margin: 0;
  color: var(--zsg-checkout-ink);
  font-size: clamp(30px, 3.15vw, 48px);
  line-height: 1.06;
  font-weight: 850;
  letter-spacing: -.035em;
}

.zsg-checkout-header > p:last-child,
.zsg-thankyou-hero__copy > p:last-child {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--zsg-checkout-muted);
  font-size: 15px;
  line-height: 1.65;
}

.zsg-checkout-form {
  margin: 0;
}

.zsg-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, .92fr);
  gap: clamp(24px, 3vw, 42px);
  align-items: start;
}

.zsg-checkout-main-column {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.zsg-checkout-section,
.zsg-checkout-order-card,
.zsg-checkout-confirm,
.zsg-thankyou-summary,
.zsg-thankyou-details,
.zsg-order-receipt {
  position: relative;
  min-width: 0;
  border: 1px solid var(--zsg-checkout-line);
  border-radius: 16px;
  background: var(--zsg-checkout-surface);
  box-shadow: 0 1px 3px rgba(16, 24, 40, .035);
}

.zsg-checkout-section {
  padding: clamp(20px, 2.2vw, 30px);
}

.zsg-checkout-section__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.zsg-checkout-step {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(227, 0, 20, .18);
  border-radius: 11px;
  background: var(--zsg-checkout-red-soft);
  color: var(--zsg-checkout-red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
}

.zsg-checkout-section__head h2,
.zsg-checkout-order-card__head h2,
.zsg-thankyou-section-head h2,
.zsg-order-receipt__head h2 {
  margin: 0;
  color: var(--zsg-checkout-ink);
  font-size: clamp(20px, 1.8vw, 25px);
  line-height: 1.2;
  font-weight: 820;
  letter-spacing: -.02em;
}

.zsg-checkout-section__intro {
  margin: -5px 0 19px;
  color: var(--zsg-checkout-muted);
  font-size: 13px;
  line-height: 1.6;
}

.zsg-checkout-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.zsg-checkout-fields--delivery,
.zsg-checkout-fields--order-notes,
.zsg-checkout-plugin-fields {
  grid-template-columns: 1fr;
}

.zsg-checkout-fields--order-notes:not(:empty),
.zsg-checkout-plugin-fields:not(:empty) {
  margin-top: 14px;
}

.zsg-checkout-page .form-row,
.zsg-checkout-page .woocommerce-billing-fields__field-wrapper > p,
.zsg-checkout-page .woocommerce-shipping-fields__field-wrapper > p {
  width: 100%;
  margin: 0;
}

.zsg-checkout-page .form-row-wide,
.zsg-checkout-page .zsg-checkout-field--delivery-note {
  grid-column: 1 / -1;
}

.zsg-checkout-page .form-row label,
.zsg-checkout-page .woocommerce-input-wrapper,
.zsg-checkout-page .select2-container {
  width: 100%;
}

.zsg-checkout-page .form-row > label {
  display: block;
  margin: 0 0 7px;
  color: #3c444c;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 750;
}

.zsg-checkout-page .required {
  color: var(--zsg-checkout-red);
  text-decoration: none;
}

.zsg-checkout-page input.input-text,
.zsg-checkout-page input[type="text"],
.zsg-checkout-page input[type="email"],
.zsg-checkout-page input[type="tel"],
.zsg-checkout-page input[type="number"],
.zsg-checkout-page select,
.zsg-checkout-page textarea,
.zsg-checkout-page .select2-container .select2-selection--single {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 13px;
  border: 1px solid var(--zsg-checkout-line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--zsg-checkout-ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  box-shadow: none;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.zsg-checkout-page textarea {
  min-height: 92px;
  padding-block: 12px;
  resize: vertical;
}

.zsg-checkout-page .select2-container .select2-selection--single {
  display: flex;
  align-items: center;
}

.zsg-checkout-page .select2-container--default .select2-selection--single .select2-selection__rendered {
  width: 100%;
  padding: 0 28px 0 0;
  color: var(--zsg-checkout-ink);
  line-height: 46px;
}

.zsg-checkout-page .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 11px;
  right: 9px;
}

.zsg-checkout-page input:focus,
.zsg-checkout-page textarea:focus,
.zsg-checkout-page select:focus,
.zsg-checkout-page .select2-container--open .select2-selection--single,
.zsg-checkout-page .select2-container--focus .select2-selection--single {
  border-color: rgba(227, 0, 20, .58);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(227, 0, 20, .08);
}

.zsg-checkout-page .woocommerce-invalid input.input-text,
.zsg-checkout-page .woocommerce-invalid select,
.zsg-checkout-page .woocommerce-invalid textarea,
.zsg-checkout-page .woocommerce-invalid .select2-selection {
  border-color: #d92d20 !important;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, .07);
}

.zsg-checkout-page .woocommerce-validated input.input-text,
.zsg-checkout-page .woocommerce-validated select,
.zsg-checkout-page .woocommerce-validated textarea {
  border-color: #a9b3bb;
}

/* Checkout simplification: ZSG uses one delivery destination flow. */
.zsg-checkout-page #ship-to-different-address {
  display: none !important;
}

/* Native WooCommerce payment list reset (also covers plugin-rendered payment.php). */
.zsg-checkout-page .wc_payment_methods.payment_methods.methods {
  list-style-type: none;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

/* Shipping methods and checkout-section plugin output. */
/* The checkout-sections plugin prints its own numbered shipping heading. ZSG
   already owns the visible section heading, so keep the plugin content only. */
.zsg-checkout-section--shipping .checkout-section-title {
  display: none !important;
}

/* Checkout Sections compatibility: ZSG already renders the visible payment H2. */
.zsg-checkout-section--payment .checkout-section-title {
  display: none !important;
}

/* Checkout Sections compatibility: its legacy shop_table layout otherwise
   constrains the selectable shipping methods to a table-cell width. */
.zsg-checkout-shipping-methods .shop_table.checkout-sections-shipping-table,
.zsg-checkout-shipping-methods .shop_table.checkout-sections-shipping-table > tbody,
.zsg-checkout-shipping-methods .shop_table.checkout-sections-shipping-table > tbody > tr,
.zsg-checkout-shipping-methods .shop_table.checkout-sections-shipping-table > tbody > tr > td {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}

.zsg-checkout-shipping-methods .shop_table.checkout-sections-shipping-table,
.zsg-checkout-shipping-methods .shop_table.checkout-sections-shipping-table > tbody > tr > td {
  padding: 0;
  border: 0;
}

.zsg-checkout-shipping-methods .shop_table.checkout-sections-shipping-table .type_delivery,
.zsg-checkout-shipping-methods .shop_table.checkout-sections-shipping-table #shipping_method,
.zsg-checkout-shipping-methods .shop_table.checkout-sections-shipping-table .woocommerce-shipping-methods,
.zsg-checkout-shipping-methods .shop_table.checkout-sections-shipping-table li,
.zsg-checkout-shipping-methods .shop_table.checkout-sections-shipping-table li > label {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.zsg-checkout-shipping-methods ul,
.zsg-checkout-shipping-methods #shipping_method,
.zsg-checkout-shipping-methods .woocommerce-shipping-methods {
  list-style: none;
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
}

.zsg-checkout-shipping-methods li,
.zsg-checkout-payment-method {
  position: relative;
  margin: 0;
}

.zsg-checkout-shipping-methods li > input[type="radio"],
.zsg-checkout-payment-method > input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.zsg-checkout-shipping-methods li > label,
.zsg-checkout-payment-method > label {
  position: relative;
  min-height: 54px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 !important;
  padding: 13px 15px 13px 48px;
  border: 1px solid var(--zsg-checkout-line);
  border-radius: 12px;
  background: #fff;
  color: var(--zsg-checkout-ink);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 760;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.zsg-checkout-shipping-methods li > label::before,
.zsg-checkout-payment-method > label::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 19px;
  height: 19px;
  border: 1.5px solid #a9b0b7;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
  box-shadow: inset 0 0 0 5px #fff;
  transition: border-color .16s ease, background-color .16s ease;
}

.zsg-checkout-shipping-methods li > input[type="radio"]:checked + label,
.zsg-checkout-payment-method > input[type="radio"]:checked + label {
  border-color: rgba(227, 0, 20, .32);
  background: rgba(227, 0, 20, .035);
  box-shadow: 0 0 0 1px rgba(227, 0, 20, .025);
}

.zsg-checkout-shipping-methods li > input[type="radio"]:checked + label::before,
.zsg-checkout-payment-method > input[type="radio"]:checked + label::before {
  border-color: var(--zsg-checkout-red);
  background: var(--zsg-checkout-red);
}

.zsg-checkout-shipping-methods li > input[type="radio"]:focus-visible + label,
.zsg-checkout-payment-method > input[type="radio"]:focus-visible + label {
  outline: 2px solid var(--zsg-checkout-red);
  outline-offset: 2px;
}

.zsg-checkout-shipping-methods li > label:hover,
.zsg-checkout-payment-method > label:hover {
  border-color: #c5cbd0;
  background: #fafbfb;
}

.zsg-checkout-payment-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.zsg-checkout-payment-method__copy {
  min-width: 0;
}

.zsg-checkout-payment-method__copy strong {
  color: inherit;
  font-weight: 800;
}

.zsg-checkout-payment-method__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.zsg-checkout-payment-method__icon img {
  width: auto;
  max-width: 88px;
  max-height: 28px;
  display: block;
}

.zsg-checkout-payment .payment_box {
  margin: 8px 0 0;
  padding: 13px 15px;
  border: 1px solid var(--zsg-checkout-line);
  border-radius: 10px;
  background: var(--zsg-checkout-soft);
  color: var(--zsg-checkout-muted);
  font-size: 12px;
  line-height: 1.55;
}

.zsg-checkout-payment .payment_box p:last-child {
  margin-bottom: 0;
}

.zsg-checkout-empty-note,
.zsg-checkout-payment-empty,
.zsg-checkout-noscript {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--zsg-checkout-line);
  border-radius: 10px;
  background: var(--zsg-checkout-soft);
  color: var(--zsg-checkout-muted);
  font-size: 13px;
  line-height: 1.55;
}

/* Order summary. */
.zsg-checkout-sidebar {
  min-width: 0;
}

.zsg-checkout-sidebar__sticky {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 14px;
}

.admin-bar .zsg-checkout-sidebar__sticky {
  top: 56px;
}

.zsg-checkout-order-card {
  overflow: hidden;
}

.zsg-checkout-order-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--zsg-checkout-line);
}

.zsg-checkout-order-count {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--zsg-checkout-line);
  border-radius: 999px;
  background: var(--zsg-checkout-soft);
  color: var(--zsg-checkout-muted);
  font-size: 11px;
  font-weight: 800;
}

.zsg-checkout-products {
  display: grid;
}

.zsg-checkout-product {
  min-width: 0;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--zsg-checkout-line);
}

.zsg-checkout-product__image {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e8ebed;
  border-radius: 11px;
  background: #fff;
}

.zsg-checkout-product__image a {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.zsg-checkout-product__image img {
  width: 100%;
  height: 100%;
  display: block;
  padding: 7px;
  object-fit: contain;
}

.zsg-checkout-product__content,
.zsg-checkout-product__identity {
  min-width: 0;
}

.zsg-checkout-product__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.zsg-checkout-product__identity > a,
.zsg-checkout-product__identity > span {
  display: block;
  color: var(--zsg-checkout-ink);
  font-size: 13px;
  line-height: 1.42;
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.zsg-checkout-product__identity > a:hover,
.zsg-checkout-product__identity > a:focus-visible {
  color: var(--zsg-checkout-red);
}

.zsg-checkout-product__sku {
  margin: 5px 0 0;
  color: var(--zsg-checkout-muted);
  font-size: 10px;
  line-height: 1.4;
  font-weight: 700;
}

.zsg-checkout-product__remove-link {
  width: 34px;
  height: 34px;
  display: grid !important;
  place-items: center;
  padding: 0;
  border: 1px solid var(--zsg-checkout-line) !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #7a838c !important;
  text-decoration: none !important;
  font-size: 0 !important;
  line-height: 1 !important;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}

.zsg-checkout-product__remove-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.zsg-checkout-product__remove-link:hover,
.zsg-checkout-product__remove-link:focus-visible {
  color: var(--zsg-checkout-red) !important;
  border-color: rgba(227, 0, 20, .28) !important;
  background: var(--zsg-checkout-red-soft) !important;
}

.zsg-checkout-product__meta {
  margin-top: 7px;
  color: var(--zsg-checkout-muted);
  font-size: 10px;
  line-height: 1.45;
}

.zsg-checkout-product__meta dl,
.zsg-checkout-product__meta p {
  margin: 0;
}

.zsg-checkout-product__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
}

.zsg-checkout-product__quantity {
  min-width: 0;
}

.zsg-checkout-product__label {
  display: block;
  margin: 0 0 5px;
  color: var(--zsg-checkout-muted);
  font-size: 9px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* Standard Woo quantity markup; installed +/- plugin remains functional owner. */
.zsg-checkout-product__quantity .quantity {
  display: grid;
  grid-template-columns: 38px minmax(46px, 58px) 38px;
  min-height: 40px;
  width: fit-content;
  overflow: hidden;
  border: 1px solid var(--zsg-checkout-line-strong);
  border-radius: 10px;
  background: #fff;
}

.zsg-checkout-product__quantity .quantity .qty {
  width: 100%;
  min-width: 0;
  min-height: unset;
  height: 38px;
  padding: 0 4px;
  border: 0;
  border-inline: 1px solid var(--zsg-checkout-line);
  border-radius: 0;
  background: #fff;
  color: var(--zsg-checkout-ink);
  text-align: center;
  font-size: 13px;
  font-weight: 850;
  appearance: textfield;
  box-shadow: none;
}

.zsg-checkout-product__quantity .quantity .qty::-webkit-outer-spin-button,
.zsg-checkout-product__quantity .quantity .qty::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.zsg-checkout-product__quantity .quantity > button.minus,
.zsg-checkout-product__quantity .quantity > button.plus {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #4d5660;
  box-shadow: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
  transition: color .18s ease, background-color .18s ease;
}

/* Quantity plugin SVG paths use hardcoded white fills; override them so the
   +/- controls have the same dark icon weight as the ZSG Side Cart. */
.zsg-checkout-product__quantity .quantity > button.minus svg,
.zsg-checkout-product__quantity .quantity > button.plus svg {
  display: block;
  color: currentColor;
}

.zsg-checkout-product__quantity .quantity > button.minus svg path,
.zsg-checkout-product__quantity .quantity > button.plus svg path {
  fill: currentColor !important;
}

.zsg-checkout-product__quantity .quantity > button.minus:hover,
.zsg-checkout-product__quantity .quantity > button.plus:hover,
.zsg-checkout-product__quantity .quantity > button.minus:focus-visible,
.zsg-checkout-product__quantity .quantity > button.plus:focus-visible {
  color: var(--zsg-checkout-red);
  background: var(--zsg-checkout-red-soft);
}

.zsg-checkout-product__quantity .quantity > button.minus:focus-visible,
.zsg-checkout-product__quantity .quantity > button.plus:focus-visible {
  outline: 2px solid var(--zsg-checkout-red);
  outline-offset: -2px;
}

.zsg-checkout-product__single-quantity {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--zsg-checkout-line);
  border-radius: 9px;
  background: var(--zsg-checkout-soft);
  color: var(--zsg-checkout-text);
  font-size: 12px;
  font-weight: 800;
}

.zsg-checkout-product__price {
  min-width: 110px;
  color: var(--zsg-checkout-ink);
  text-align: right;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 850;
}

.zsg-checkout-totals {
  padding: 17px 22px 20px;
  background: #fafbfb;
}

.zsg-checkout-total-row,
.zsg-checkout-total-plugin-output > div,
.zsg-checkout-total-plugin-output > p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 7px 0;
  color: var(--zsg-checkout-muted);
  font-size: 12px;
  line-height: 1.4;
}

.zsg-checkout-total-row strong,
.zsg-checkout-total-plugin-output strong {
  color: var(--zsg-checkout-ink);
  font-size: 13px;
  font-weight: 850;
  text-align: right;
}

.zsg-checkout-total-row--grand {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--zsg-checkout-line);
  color: var(--zsg-checkout-ink);
  font-size: 14px;
  font-weight: 850;
}

.zsg-checkout-total-row--grand strong {
  color: var(--zsg-checkout-red);
  font-size: 19px;
}

.zsg-checkout-total-row--request strong {
  color: var(--zsg-checkout-red);
}

.zsg-checkout-price-request-note {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--zsg-checkout-red);
  background: rgba(227, 0, 20, .04);
  color: var(--zsg-checkout-muted);
  font-size: 11px;
  line-height: 1.5;
}

/* Confirmation and legal consent. */
.zsg-checkout-confirm {
  padding: 18px 20px 20px;
}

.zsg-checkout-confirm .woocommerce-privacy-policy-text {
  margin-bottom: 12px;
  color: var(--zsg-checkout-muted);
  font-size: 11px;
  line-height: 1.55;
}

.zsg-checkout-confirm .woocommerce-privacy-policy-text p {
  margin: 0;
}

.zsg-checkout-legal {
  margin: 0 0 14px !important;
}

.zsg-checkout-legal > label {
  position: relative;
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  margin: 0 !important;
  padding: 0;
  color: var(--zsg-checkout-text);
  cursor: pointer;
}

.zsg-checkout-legal input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.zsg-checkout-legal__control {
  position: relative;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1.5px solid #aeb5bb;
  border-radius: 6px;
  background: #fff;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.zsg-checkout-legal__control::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 6px;
  height: 11px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  opacity: 0;
  transform: rotate(42deg);
}

.zsg-checkout-legal input:checked + .zsg-checkout-legal__control {
  border-color: var(--zsg-checkout-red);
  background: var(--zsg-checkout-red);
}

.zsg-checkout-legal input:checked + .zsg-checkout-legal__control::after {
  opacity: 1;
}

.zsg-checkout-legal input:focus-visible + .zsg-checkout-legal__control {
  outline: 2px solid var(--zsg-checkout-red);
  outline-offset: 2px;
}

.zsg-checkout-legal__text {
  color: var(--zsg-checkout-muted);
  font-size: 11px;
  line-height: 1.5;
}

.zsg-checkout-legal__text a {
  color: var(--zsg-checkout-ink);
  text-decoration: underline;
  text-decoration-color: rgba(227, 0, 20, .38);
  text-underline-offset: 2px;
}

.zsg-checkout-legal__text a:hover,
.zsg-checkout-legal__text a:focus-visible {
  color: var(--zsg-checkout-red);
}

.zsg-checkout-place-order,
.zsg-checkout-page #place_order {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--zsg-checkout-red) !important;
  border-radius: 11px !important;
  background: var(--zsg-checkout-red) !important;
  color: #fff !important;
  font-size: 14px !important;
  line-height: 1.3;
  font-weight: 850 !important;
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(227, 0, 20, .16) !important;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.zsg-checkout-place-order:hover,
.zsg-checkout-place-order:focus-visible,
.zsg-checkout-page #place_order:hover,
.zsg-checkout-page #place_order:focus-visible {
  border-color: var(--zsg-checkout-red-dark) !important;
  background: var(--zsg-checkout-red-dark) !important;
  box-shadow: 0 8px 22px rgba(227, 0, 20, .2) !important;
}

.zsg-checkout-place-order:disabled,
.zsg-checkout-page #place_order:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.zsg-checkout-confirm__note {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  margin: 13px 0 0;
  color: var(--zsg-checkout-muted);
  font-size: 10px;
  line-height: 1.5;
}

.zsg-checkout-confirm__note svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--zsg-checkout-red);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Woo notices and checkout update overlay. */
.zsg-checkout-page .woocommerce-NoticeGroup,
.zsg-checkout-page .woocommerce-notices-wrapper {
  grid-column: 1 / -1;
}

.zsg-checkout-page .woocommerce-error,
.zsg-checkout-page .woocommerce-info,
.zsg-checkout-page .woocommerce-message,
.zsg-thankyou .woocommerce-error,
.zsg-thankyou .woocommerce-info,
.zsg-thankyou .woocommerce-message,
.zsg-thankyou .woocommerce-notice {
  list-style: none;
  margin: 0 0 18px;
  padding: 13px 15px;
  border: 1px solid var(--zsg-checkout-line);
  border-left: 3px solid var(--zsg-checkout-red);
  border-radius: 10px;
  background: #fff;
  color: var(--zsg-checkout-text);
  font-size: 12px;
  line-height: 1.55;
}

.zsg-checkout-page .woocommerce-error {
  border-color: rgba(217, 45, 32, .22);
  border-left-color: #d92d20;
  background: #fff8f7;
}

.zsg-checkout-page .blockUI.blockOverlay {
  border-radius: inherit;
  background: rgba(255, 255, 255, .72) !important;
  opacity: 1 !important;
  backdrop-filter: blur(1px);
}

/* Thank you page. */
.zsg-thankyou {
  padding: 28px 0 72px;
}

.zsg-thankyou-hero {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: clamp(24px, 3.2vw, 42px);
  border: 1px solid var(--zsg-checkout-line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(227, 0, 20, .055), transparent 31%),
    #fff;
  box-shadow: 0 1px 4px rgba(16, 24, 40, .045);
}

.zsg-thankyou-status {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(227, 0, 20, .18);
  border-radius: 18px;
  background: var(--zsg-checkout-red-soft);
  color: var(--zsg-checkout-red);
}

.zsg-thankyou-status svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.zsg-thankyou-hero--failed .zsg-thankyou-status {
  border-color: rgba(217, 45, 32, .22);
  background: #fff2f0;
  color: #d92d20;
}

.zsg-thankyou-hero h1 {
  font-size: clamp(28px, 3vw, 44px);
}

.zsg-thankyou-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 210px;
}

.zsg-thankyou-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--zsg-checkout-line-strong);
  border-radius: 10px;
  color: var(--zsg-checkout-ink);
  background: #fff;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.zsg-thankyou-button--primary {
  border-color: var(--zsg-checkout-red);
  background: var(--zsg-checkout-red);
  color: #fff;
}

.zsg-thankyou-button--primary:hover,
.zsg-thankyou-button--primary:focus-visible {
  border-color: var(--zsg-checkout-red-dark);
  background: var(--zsg-checkout-red-dark);
  color: #fff;
}

.zsg-thankyou-button--secondary:hover,
.zsg-thankyou-button--secondary:focus-visible {
  border-color: rgba(227, 0, 20, .26);
  color: var(--zsg-checkout-red);
}

.zsg-thankyou-summary,
.zsg-thankyou-details {
  margin-top: 18px;
  padding: clamp(22px, 2.6vw, 32px);
}

.zsg-thankyou-section-head {
  margin-bottom: 18px;
}

.zsg-thankyou-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.zsg-thankyou-meta-card {
  min-width: 0;
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 14px 15px;
  border: 1px solid var(--zsg-checkout-line);
  border-radius: 11px;
  background: var(--zsg-checkout-soft);
}

.zsg-thankyou-meta-card span {
  color: var(--zsg-checkout-muted);
  font-size: 9px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.zsg-thankyou-meta-card strong {
  color: var(--zsg-checkout-ink);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.zsg-thankyou-meta-card--wide {
  grid-column: span 2;
}

.zsg-thankyou-price-note {
  margin: 14px 0 0;
  padding: 11px 13px;
  border-left: 3px solid var(--zsg-checkout-red);
  background: rgba(227, 0, 20, .04);
  color: var(--zsg-checkout-muted);
  font-size: 12px;
  line-height: 1.55;
}

.zsg-thankyou-woo-details > *:first-child {
  margin-top: 0;
}

.zsg-thankyou-woo-details h2,
.zsg-thankyou-woo-details h3 {
  color: var(--zsg-checkout-ink);
  font-weight: 820;
}

.zsg-thankyou-woo-details .woocommerce-order-details,
.zsg-thankyou-woo-details .woocommerce-customer-details {
  margin: 20px 0 0;
}

.zsg-thankyou-woo-details table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--zsg-checkout-line);
  border-radius: 12px;
  background: #fff;
}

.zsg-thankyou-woo-details th,
.zsg-thankyou-woo-details td {
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--zsg-checkout-line);
  text-align: left;
  vertical-align: top;
  color: var(--zsg-checkout-text);
  font-size: 12px;
  line-height: 1.5;
}

.zsg-thankyou-woo-details th {
  color: var(--zsg-checkout-muted);
  font-weight: 760;
}

.zsg-thankyou-woo-details tr:last-child > * {
  border-bottom: 0;
}

.zsg-thankyou-woo-details .woocommerce-table__product-name a {
  color: var(--zsg-checkout-ink);
  font-weight: 800;
  text-decoration: none;
}

.zsg-thankyou--price-request .woocommerce-order-details .woocommerce-table__product-table.product-total,
.zsg-thankyou--price-request .woocommerce-order-details tfoot {
  display: none;
}

.zsg-thankyou-woo-details address {
  padding: 15px;
  border: 1px solid var(--zsg-checkout-line);
  border-radius: 11px;
  background: var(--zsg-checkout-soft);
  color: var(--zsg-checkout-text);
  font-size: 12px;
  line-height: 1.65;
}

.zsg-order-receipt {
  margin: 18px 0;
  padding: 22px;
}

.zsg-order-receipt__head {
  margin-bottom: 16px;
}

.zsg-order-receipt__details {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
}

.zsg-order-receipt__details li {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 13px;
  border: 1px solid var(--zsg-checkout-line);
  border-radius: 10px;
  background: var(--zsg-checkout-soft);
}

.zsg-order-receipt__details span {
  color: var(--zsg-checkout-muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.zsg-order-receipt__details strong {
  color: var(--zsg-checkout-ink);
  font-size: 12px;
  overflow-wrap: anywhere;
}

@media (max-width: 1080px) {
  .zsg-checkout-layout {
    grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr);
    gap: 22px;
  }

  .zsg-checkout-product {
    grid-template-columns: 76px minmax(0, 1fr);
    padding-inline: 18px;
  }

  .zsg-checkout-product__image {
    width: 76px;
    height: 76px;
  }

  .zsg-thankyou-meta-grid,
  .zsg-order-receipt__details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .zsg-checkout-layout {
    grid-template-columns: 1fr;
  }

  .zsg-checkout-sidebar__sticky {
    position: static;
  }

  .zsg-checkout-sidebar {
    order: 2;
  }

  .zsg-thankyou-hero {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .zsg-thankyou-status {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .zsg-thankyou-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    min-width: 0;
  }

  .zsg-thankyou-button {
    min-width: 0;
    flex: 1 1 0;
  }
}

@media (max-width: 767px) {
  .zsg-checkout-container {
    width: min(100% - 28px, 1320px);
  }

  .zsg-checkout-page,
  .zsg-thankyou {
    padding-top: 20px;
    padding-bottom: 54px;
  }

  .zsg-checkout-breadcrumbs {
    margin-bottom: 20px;
  }

  .zsg-checkout-header {
    margin-bottom: 23px;
  }

  .zsg-checkout-header h1,
  .zsg-thankyou-hero h1 {
    font-size: clamp(27px, 8vw, 36px);
  }

  .zsg-checkout-fields {
    grid-template-columns: 1fr;
  }

  .zsg-checkout-section {
    padding: 20px;
  }

  .zsg-checkout-order-card__head,
  .zsg-checkout-product,
  .zsg-checkout-totals {
    padding-inline: 18px;
  }

  .zsg-thankyou-meta-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .zsg-checkout-container {
    width: min(100% - 24px, 1320px);
  }

  .zsg-checkout-page,
  .zsg-thankyou {
    padding-top: 16px;
    padding-bottom: calc(44px + env(safe-area-inset-bottom));
  }

  .zsg-checkout-header > p:last-child,
  .zsg-thankyou-hero__copy > p:last-child {
    font-size: 14px;
  }

  .zsg-checkout-section,
  .zsg-checkout-order-card,
  .zsg-checkout-confirm,
  .zsg-thankyou-summary,
  .zsg-thankyou-details {
    border-radius: 13px;
  }

  .zsg-checkout-section {
    padding: 17px 15px;
  }

  .zsg-checkout-section__head {
    gap: 11px;
    margin-bottom: 15px;
  }

  .zsg-checkout-step {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .zsg-checkout-section__head h2,
  .zsg-checkout-order-card__head h2,
  .zsg-thankyou-section-head h2 {
    font-size: 20px;
  }

  .zsg-checkout-shipping-methods li > label,
  .zsg-checkout-payment-method > label {
    padding-right: 12px;
    padding-left: 45px;
  }

  .zsg-checkout-order-card__head {
    padding: 18px 15px 14px;
  }

  .zsg-checkout-product {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 11px;
    padding: 15px;
  }

  .zsg-checkout-product__image {
    width: 66px;
    height: 66px;
    border-radius: 9px;
  }

  .zsg-checkout-product__identity > a,
  .zsg-checkout-product__identity > span {
    font-size: 12px;
  }

  .zsg-checkout-product__remove-link {
    width: 32px;
    height: 32px;
  }

  .zsg-checkout-product__footer {
    grid-column: 1 / -1;
    flex-wrap: wrap;
    align-items: center;
  }

  .zsg-checkout-product__quantity .quantity {
    grid-template-columns: 40px 48px 40px;
    min-height: 44px;
  }

  .zsg-checkout-product__quantity .quantity .qty,
  .zsg-checkout-product__quantity .quantity > button.minus,
  .zsg-checkout-product__quantity .quantity > button.plus {
    height: 42px;
  }

  .zsg-checkout-product__quantity .quantity > button.minus,
  .zsg-checkout-product__quantity .quantity > button.plus {
    width: 40px;
  }

  .zsg-checkout-product__price {
    min-width: 0;
    margin-left: auto;
  }

  .zsg-checkout-totals {
    padding: 15px;
  }

  .zsg-checkout-confirm {
    padding: 16px 15px 17px;
  }

  .zsg-checkout-place-order,
  .zsg-checkout-page #place_order {
    min-height: 50px;
  }

  .zsg-thankyou-hero {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 16px;
    border-radius: 14px;
  }

  .zsg-thankyou-status {
    width: 52px;
    height: 52px;
    border-radius: 13px;
  }

  .zsg-thankyou-status svg {
    width: 29px;
    height: 29px;
  }

  .zsg-thankyou-actions {
    flex-direction: column;
  }

  .zsg-thankyou-summary,
  .zsg-thankyou-details {
    padding: 18px 15px;
  }

  .zsg-thankyou-meta-grid,
  .zsg-order-receipt__details {
    grid-template-columns: 1fr;
  }

  .zsg-thankyou-meta-card--wide {
    grid-column: auto;
  }

  .zsg-thankyou-woo-details table,
  .zsg-thankyou-woo-details thead,
  .zsg-thankyou-woo-details tbody,
  .zsg-thankyou-woo-details tfoot,
  .zsg-thankyou-woo-details tr,
  .zsg-thankyou-woo-details th,
  .zsg-thankyou-woo-details td {
    display: block;
    width: 100%;
  }

  .zsg-thankyou-woo-details thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .zsg-thankyou-woo-details tr {
    padding: 7px 0;
    border-bottom: 1px solid var(--zsg-checkout-line);
  }

  .zsg-thankyou-woo-details tr:last-child {
    border-bottom: 0;
  }

  .zsg-thankyou-woo-details th,
  .zsg-thankyou-woo-details td {
    padding: 7px 12px;
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zsg-checkout-page *,
  .zsg-checkout-page *::before,
  .zsg-checkout-page *::after,
  .zsg-thankyou *,
  .zsg-thankyou *::before,
  .zsg-thankyou *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* WC Ukraine Shipping / Nova Poshta presentation from the vg reference, adapted to ZSG. */
.zsg-checkout-plugin-fields #wcus-billing-fields,
.zsg-checkout-plugin-fields .wcus-checkout-fields {
  width: 100%;
  margin: 0;
}

/* Keep WC Ukraine Shipping city / branch / parcel-locker fields visually
   separated even when WooCommerce adds validation classes to a form-row. */
.zsg-checkout-plugin-fields #wcus-billing-fields,
.zsg-checkout-plugin-fields .wcus-checkout-fields {
  display: grid;
  row-gap: 14px;
}

.zsg-checkout-plugin-fields .wcus-checkout-fields {
  gap: 14px;
}

.zsg-checkout-plugin-fields .wcus-checkout-fields > h3 {
  margin: 0 0 2px !important;
  color: var(--zsg-checkout-ink);
  font-size: 15px !important;
  line-height: 1.25 !important;
  font-weight: 820 !important;
}

.zsg-checkout-plugin-fields .wcus-checkout-fields > div {
  display: grid;
  gap: 0;
}

.zsg-checkout-plugin-fields .wcus-checkout-fields p.form-row {
  width: 100% !important;
  margin-bottom: 10px;
  padding: 0 !important;
}

.zsg-checkout-plugin-fields .woocommerce-input-wrapper {
  display: block;
  width: 100%;
}

.zsg-checkout-plugin-fields .zen-ui-select {
  position: relative;
  width: 100%;
  min-width: 0;
  font-family: inherit;
}

.zsg-checkout-plugin-fields .zen-ui-select__value {
  min-height: 48px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px;
  border: 1px solid var(--zsg-checkout-line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--zsg-checkout-ink);
  box-shadow: none;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.zsg-checkout-plugin-fields .zen-ui-select__value:hover {
  border-color: #c3c9ce;
  background: #fafbfb;
}

.zsg-checkout-plugin-fields .zen-ui-select__value:focus,
.zsg-checkout-plugin-fields .zen-ui-select.zen-ui-select--open .zen-ui-select__value,
.zsg-checkout-plugin-fields .zen-ui-select.is-open .zen-ui-select__value {
  outline: 0;
  border-color: rgba(227, 0, 20, .5);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(227, 0, 20, .08);
}

.zsg-checkout-plugin-fields .zen-ui-select__value-text {
  min-width: 0;
  overflow: hidden;
  color: var(--zsg-checkout-ink);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zsg-checkout-plugin-fields .zen-ui-select__value svg {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  fill: var(--zsg-checkout-red);
  opacity: .72;
  transition: transform .16s ease, opacity .16s ease;
}

.zsg-checkout-plugin-fields .zen-ui-select.zen-ui-select--open .zen-ui-select__value svg,
.zsg-checkout-plugin-fields .zen-ui-select.is-open .zen-ui-select__value svg {
  transform: rotate(180deg);
  opacity: 1;
}

.zsg-checkout-plugin-fields .woocommerce-invalid .zen-ui-select__value,
.zsg-checkout-plugin-fields .woocommerce-invalid-required-field .zen-ui-select__value {
  border-color: rgba(217, 45, 32, .45);
  background: #fff8f7;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, .06);
}

.zsg-checkout-plugin-fields .woocommerce-validated .zen-ui-select__value {
  border-color: #aeb6bc;
}

.zsg-checkout-plugin-fields .zen-ui-select.is-disabled .zen-ui-select__value,
.zsg-checkout-plugin-fields .zen-ui-select.zen-ui-select--disabled .zen-ui-select__value,
.zsg-checkout-plugin-fields .zen-ui-select__value[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .58;
  background: #f1f3f4;
}

.zsg-checkout-plugin-fields .zen-ui-select.is-loading .zen-ui-select__value::after,
.zsg-checkout-plugin-fields .zen-ui-select.zen-ui-select--loading .zen-ui-select__value::after {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(227, 0, 20, .14);
  border-top-color: var(--zsg-checkout-red);
  border-radius: 50%;
  animation: zsg-checkout-spin .75s linear infinite;
}

.zsg-checkout-plugin-fields .zen-ui-select__dropdown,
.zsg-checkout-plugin-fields .zen-ui-select__options,
.zsg-checkout-plugin-fields .zen-ui-select__menu,
body .zen-ui-select__dropdown,
body .zen-ui-select__options,
body .zen-ui-select__menu {
  z-index: 9999;
  margin-top: 7px;
  padding: 7px;
  border: 1px solid #dfe3e6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(16, 24, 40, .14);
  overflow: hidden;
  font-family: inherit;
}

.zsg-checkout-plugin-fields .zen-ui-select__search,
body .zen-ui-select__search {
  margin: 0 0 7px;
  padding: 0;
}

.zsg-checkout-plugin-fields .zen-ui-select__search input,
.zsg-checkout-plugin-fields .zen-ui-select input[type="search"],
body .zen-ui-select__search input,
body .zen-ui-select input[type="search"] {
  min-height: 40px !important;
  width: 100%;
  padding: 0 11px !important;
  border: 1px solid #d8dde1 !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #171b20 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.zsg-checkout-plugin-fields .zen-ui-select__search input:focus,
.zsg-checkout-plugin-fields .zen-ui-select input[type="search"]:focus,
body .zen-ui-select__search input:focus,
body .zen-ui-select input[type="search"]:focus {
  border-color: rgba(227, 0, 20, .45) !important;
  box-shadow: 0 0 0 3px rgba(227, 0, 20, .07) !important;
  outline: 0 !important;
}

.zsg-checkout-plugin-fields .zen-ui-select__option,
.zsg-checkout-plugin-fields .zen-ui-select__item,
body .zen-ui-select__option,
body .zen-ui-select__item {
  min-height: 38px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  color: #343b43;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  cursor: pointer;
}

.zsg-checkout-plugin-fields .zen-ui-select__option:hover,
.zsg-checkout-plugin-fields .zen-ui-select__item:hover,
.zsg-checkout-plugin-fields .zen-ui-select__option.is-highlighted,
.zsg-checkout-plugin-fields .zen-ui-select__item.is-highlighted,
body .zen-ui-select__option:hover,
body .zen-ui-select__item:hover,
body .zen-ui-select__option.is-highlighted,
body .zen-ui-select__item.is-highlighted {
  background: rgba(227, 0, 20, .055);
  color: #bd0011;
}

.zsg-checkout-plugin-fields .zen-ui-select__option.is-selected,
.zsg-checkout-plugin-fields .zen-ui-select__item.is-selected,
body .zen-ui-select__option.is-selected,
body .zen-ui-select__item.is-selected {
  background: #e30014;
  color: #fff;
}

.zsg-checkout-plugin-fields .zen-ui-select__empty,
.zsg-checkout-plugin-fields .zen-ui-select__no-results,
body .zen-ui-select__empty,
body .zen-ui-select__no-results {
  padding: 12px;
  color: #707983;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.zsg-checkout-plugin-fields .wcus-checkout-fields input[type="hidden"] {
  display: none !important;
}

@keyframes zsg-checkout-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 680px) {
  .zsg-checkout-plugin-fields #wcus-billing-fields,
  .zsg-checkout-plugin-fields .wcus-checkout-fields {
    gap: 12px;
    row-gap: 12px;
  }

  .zsg-checkout-plugin-fields .wcus-checkout-fields > div {
    gap: 0;
    row-gap: 0;
  }

  .zsg-checkout-plugin-fields .zen-ui-select__value {
    min-height: 46px;
    padding-inline: 12px;
  }
}

/* Revision 6: stable, visible WooCommerce checkout error region. */
.zsg-checkout-notices {
  width: 100%;
  margin: 0 0 20px;
  scroll-margin-top: 118px;
}

.zsg-checkout-notices[hidden] {
  display: none !important;
}

.zsg-checkout-notices .woocommerce-NoticeGroup,
.zsg-checkout-notices .woocommerce-error,
.zsg-checkout-notices .woocommerce-info,
.zsg-checkout-notices .woocommerce-message {
  width: 100%;
}

.zsg-checkout-notices .woocommerce-NoticeGroup {
  margin: 0;
}

.zsg-checkout-notices .woocommerce-error,
.zsg-checkout-notices .woocommerce-info,
.zsg-checkout-notices .woocommerce-message {
  margin-bottom: 0;
}

.zsg-checkout-page .checkout-inline-error-message {
  margin: 7px 0 0;
  color: #b42318;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 700;
}

@media (max-width: 767px) {
  .zsg-checkout-notices {
    margin-bottom: 16px;
    scroll-margin-top: 88px;
  }
}

/* Revision 8: compact, price-free order details on the order-received page. */
.zsg-thankyou-product-list {
  list-style: none;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--zsg-checkout-line);
  border-radius: 12px;
  background: #fff;
}

.zsg-thankyou-product-list__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--zsg-checkout-line);
}

.zsg-thankyou-product-list__item:last-child {
  border-bottom: 0;
}

.zsg-thankyou-product-list__main {
  min-width: 0;
}

.zsg-thankyou-product-list__name {
  color: var(--zsg-checkout-ink);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
  text-decoration: none;
}

.zsg-thankyou-product-list a.zsg-thankyou-product-list__name:hover,
.zsg-thankyou-product-list a.zsg-thankyou-product-list__name:focus-visible {
  color: #e30014;
}

.zsg-thankyou-product-list__quantity {
  flex: 0 0 auto;
  min-width: 34px;
  color: var(--zsg-checkout-muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
  text-align: right;
}

.zsg-thankyou-product-list .wc-item-meta {
  list-style: none;
  display: grid;
  gap: 3px;
  margin: 6px 0 0;
  padding: 0;
  color: var(--zsg-checkout-muted);
  font-size: 11px;
  line-height: 1.45;
}

.zsg-thankyou-product-list .wc-item-meta li,
.zsg-thankyou-product-list .wc-item-meta p {
  margin: 0;
}

.zsg-thankyou-billing {
  margin-top: 24px;
}

@media (max-width: 520px) {
  .zsg-thankyou-product-list__item {
    gap: 12px;
    padding: 12px;
  }
}

/* Revision 9: explicit customer contact details on the order-received page. */
.zsg-thankyou-contact {
  margin-top: 24px;
}

.zsg-thankyou-contact__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.zsg-thankyou-contact__item {
  min-width: 0;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid var(--zsg-checkout-line);
  border-radius: 11px;
  background: var(--zsg-checkout-soft);
}

.zsg-thankyou-contact__item dt,
.zsg-thankyou-contact__item dd {
  margin: 0;
}

.zsg-thankyou-contact__item dt {
  margin-bottom: 4px;
  color: var(--zsg-checkout-muted);
  font-size: 10px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.zsg-thankyou-contact__item dd {
  overflow-wrap: anywhere;
  color: var(--zsg-checkout-ink);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 760;
}

.zsg-thankyou-contact__item a {
  color: inherit;
  text-decoration: none;
}

.zsg-thankyou-contact__item a:hover,
.zsg-thankyou-contact__item a:focus-visible {
  color: #e30014;
}

@media (max-width: 520px) {
  .zsg-thankyou-contact__list {
    grid-template-columns: 1fr;
  }
}
