html {
  margin: 0;
  background: #fff;
}

body.klebstar-store-page {
  margin: 0;
  color: var(--ks-ink, #241f2e);
  background: color-mix(in srgb, var(--ks-surface, #fff7fb) 54%, #fff);
  font-family: var(--ks-body, Inter, ui-sans-serif, system-ui, sans-serif);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.klebstar-store-page *,
body.klebstar-store-page *::before,
body.klebstar-store-page *::after {
  box-sizing: border-box;
}

body.klebstar-store-page a {
  color: inherit;
}

.ks-store-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ks-store-container {
  width: min(calc(100% - 40px), var(--ks-width, 1180px));
  margin-inline: auto;
}

.ks-store-header {
  position: sticky;
  z-index: 80;
  top: 0;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid color-mix(in srgb, var(--ks-ink) 9%, transparent);
  box-shadow: 0 10px 30px rgba(44, 31, 69, .06);
  backdrop-filter: blur(16px);
}

.admin-bar .ks-store-header {
  top: 32px;
}

.ks-store-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  min-height: 74px;
}

.ks-store-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ks-heading, var(--ks-body));
  font-size: clamp(22px, 2vw, 29px);
  font-weight: 900;
  letter-spacing: -.04em;
  text-decoration: none;
}

.ks-store-brand > span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: #fff;
  background: var(--ks-primary);
  border-radius: 10px 10px 10px 3px;
  font-size: 16px;
  transform: rotate(-7deg);
}

.ks-store-brand img {
  display: block;
  width: auto;
  height: 42px;
  object-fit: contain;
}

.ks-store-header nav {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.ks-store-header nav a {
  color: color-mix(in srgb, var(--ks-ink) 72%, transparent);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.ks-store-header nav a:hover,
.ks-store-header nav a:focus-visible {
  color: var(--ks-primary);
}

.ks-store-header-action {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  color: #fff !important;
  background: var(--ks-primary);
  border-radius: 999px;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--ks-primary) 24%, transparent);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.ks-store-header-action:hover,
.ks-store-header-action:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 13px 28px color-mix(in srgb, var(--ks-primary) 30%, transparent);
}

.ks-store-main {
  flex: 1;
  padding: clamp(42px, 7vw, 82px) 0 64px;
}

.ks-store-intro {
  max-width: 780px;
  margin: 0 auto 30px;
  text-align: center;
}

.ks-store-intro > p {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 6px 11px;
  color: var(--ks-primary);
  background: color-mix(in srgb, var(--ks-primary) 10%, #fff);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
}

.ks-store-intro h1 {
  margin: 0;
  color: var(--ks-ink);
  font-family: var(--ks-heading, var(--ks-body));
  font-size: clamp(38px, 5.3vw, 64px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.ks-store-intro > span {
  display: block;
  max-width: 640px;
  margin: 15px auto 0;
  color: var(--ks-muted);
  font-size: 15px;
}

.ks-woocommerce-card {
  padding: clamp(18px, 2.6vw, 32px);
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--ks-ink) 8%, transparent);
  border-radius: min(var(--ks-radius), 34px);
  box-shadow: 0 24px 70px rgba(42, 29, 68, .1);
}

.ks-woocommerce-card .woocommerce,
.ks-woocommerce-card .wp-block-woocommerce-cart,
.ks-woocommerce-card .wp-block-woocommerce-checkout {
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--ks-ink);
  font-family: var(--ks-body);
}

.ks-woocommerce-card h2,
.ks-woocommerce-card h3,
.ks-woocommerce-card .wc-block-components-title {
  color: var(--ks-ink);
  font-family: var(--ks-heading, var(--ks-body));
  letter-spacing: -.025em;
}

.ks-woocommerce-card h2 {
  font-size: clamp(25px, 3vw, 34px);
}

.ks-woocommerce-card h3,
.ks-woocommerce-card #order_review_heading {
  margin-top: 0;
  font-size: 22px;
}

/* Notices */
.klebstar-store-page .woocommerce-error,
.klebstar-store-page .woocommerce-info,
.klebstar-store-page .woocommerce-message,
.klebstar-store-page .wc-block-components-notice-banner {
  margin: 0 0 18px !important;
  padding: 14px 17px 14px 48px !important;
  color: var(--ks-ink) !important;
  background: color-mix(in srgb, var(--ks-primary) 7%, #fff) !important;
  border: 1px solid color-mix(in srgb, var(--ks-primary) 20%, transparent) !important;
  border-left: 5px solid var(--ks-primary) !important;
  border-radius: 15px !important;
  box-shadow: none !important;
  font-size: 14px;
}

.klebstar-store-page .woocommerce-error {
  background: #fff4f5 !important;
  border-color: #f0bbc1 !important;
  border-left-color: #c43c4a !important;
}

/* Tables and sticker previews */
.klebstar-store-page .woocommerce table.shop_table,
.klebstar-store-page .woocommerce table.shop_table_responsive,
.klebstar-store-page .woocommerce-checkout-review-order-table {
  width: 100%;
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ks-ink) 10%, transparent);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 18px;
}

.klebstar-store-page .woocommerce table.shop_table th,
.klebstar-store-page .woocommerce table.shop_table td {
  padding: 16px 14px;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ks-ink) 8%, transparent);
  text-align: left;
  vertical-align: middle;
}

.klebstar-store-page .woocommerce table.shop_table tr:last-child th,
.klebstar-store-page .woocommerce table.shop_table tr:last-child td {
  border-bottom: 0;
}

.klebstar-store-page .woocommerce table.shop_table thead th {
  color: var(--ks-muted);
  background: color-mix(in srgb, var(--ks-surface) 60%, #fff);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.klebstar-store-page .woocommerce-cart-form .product-thumbnail img,
.klebstar-store-page .wc-block-cart-item__image img {
  width: 64px !important;
  height: 82px !important;
  padding: 4px;
  object-fit: contain;
  background: color-mix(in srgb, var(--ks-surface) 58%, #fff);
  border-radius: 12px;
}

.klebstar-store-page .ks-design-preview-button {
  display: inline-grid;
  place-items: center;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
  cursor: zoom-in;
  -webkit-user-select: none;
  user-select: none;
}

.klebstar-store-page .ks-design-preview-button:disabled {
  cursor: default;
  opacity: 1;
}

.klebstar-store-page .ks-design-preview-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ks-primary) 24%, transparent);
  outline-offset: 3px;
}

.klebstar-store-page .ks-preview-visual {
  position: relative;
  display: block;
  width: 64px;
  height: 82px;
  overflow: hidden;
  padding: 4px;
  background: color-mix(in srgb, var(--ks-surface) 58%, #fff);
  border: 1px solid color-mix(in srgb, var(--ks-ink) 9%, transparent);
  border-radius: 10px;
}

.klebstar-store-page .ks-preview-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}

.klebstar-store-page .ks-preview-format {
  position: absolute;
  z-index: 2;
  top: 3px;
  left: 3px;
  min-width: 22px;
  padding: 2px 5px;
  color: #fff;
  background: #241f2e;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 950;
  line-height: 1.25;
  letter-spacing: .04em;
  text-align: center;
}

.klebstar-store-page .ks-preview-watermark {
  position: absolute;
  z-index: 2;
  right: 3px;
  bottom: 3px;
  padding: 2px 4px;
  color: #fff;
  background: rgba(36, 31, 46, .76);
  border-radius: 4px;
  font-size: 5px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .08em;
}

.klebstar-store-page .ks-preview-name-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 8px 3px;
  overflow: hidden;
  color: var(--ks-primary);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-align: center;
}

.klebstar-store-page .product-name a,
.klebstar-store-page .wc-block-components-product-name {
  color: var(--ks-ink);
  font-weight: 850;
  text-decoration: none;
}

.klebstar-store-page .ks-sticker-name {
  display: block;
  margin-top: 4px;
  color: var(--ks-primary);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
}

.klebstar-store-page .ks-order-product {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.klebstar-store-page .ks-order-item-thumb {
  flex: 0 0 auto;
  border-radius: 10px;
}

.klebstar-store-page .ks-order-item-thumb img {
  width: 100%;
  height: 100%;
}

.klebstar-store-page .ks-order-item-thumb .ks-preview-visual {
  width: 54px;
  height: 68px;
}

.klebstar-store-page .ks-checkout-product {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.klebstar-store-page .ks-checkout-design-thumb .ks-preview-visual {
  width: 48px;
  height: 60px;
  padding: 3px;
  border-radius: 8px;
}

.klebstar-store-page .ks-checkout-product-copy {
  min-width: 0;
}

.klebstar-store-page .ks-checkout-remove-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 7px;
  padding: 3px 7px;
  color: #a43a47;
  background: #fff2f3;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: 750 9px/1.3 var(--ks-body);
}

.klebstar-store-page .ks-checkout-remove-item span {
  font-size: 13px;
  line-height: .8;
}

.klebstar-store-page tr.ks-removing-item {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease;
}

.klebstar-store-page .ks-empty-checkout {
  padding: 18px !important;
  color: var(--ks-muted);
  font-size: 12px;
  text-align: center !important;
}

.klebstar-store-page .product-name dl.variation,
.klebstar-store-page .wc-block-components-product-metadata {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 7px;
  margin: 8px 0 0;
  color: var(--ks-muted);
  font-size: 12px;
}

.klebstar-store-page .product-name dl.variation dt,
.klebstar-store-page .product-name dl.variation dd,
.klebstar-store-page .product-name dl.variation p {
  float: none;
  margin: 0;
  padding: 0;
}

.klebstar-store-page .product-remove a.remove {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #b43a47 !important;
  background: #fff1f3;
  border-radius: 50%;
  font-size: 20px;
  text-decoration: none;
}

.klebstar-store-page .amount {
  color: var(--ks-ink);
  font-weight: 850;
}

/* Inputs */
.klebstar-store-page .woocommerce input.input-text,
.klebstar-store-page .woocommerce textarea,
.klebstar-store-page .woocommerce select,
.klebstar-store-page .select2-container .select2-selection,
.klebstar-store-page .wc-block-components-text-input input,
.klebstar-store-page .wc-block-components-combobox .wc-block-components-combobox-control input,
.klebstar-store-page .wc-block-components-address-form__select {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 11px 13px;
  color: var(--ks-ink);
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--ks-ink) 17%, transparent);
  border-radius: 11px;
  box-shadow: none;
  font: inherit;
}

.klebstar-store-page .woocommerce textarea {
  min-height: 100px;
  resize: vertical;
}

.klebstar-store-page .select2-container .select2-selection {
  display: flex;
  align-items: center;
}

.klebstar-store-page .woocommerce input:focus,
.klebstar-store-page .woocommerce textarea:focus,
.klebstar-store-page .woocommerce select:focus,
.klebstar-store-page .select2-container--focus .select2-selection,
.klebstar-store-page .wc-block-components-text-input input:focus {
  outline: 0;
  border-color: var(--ks-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ks-primary) 13%, transparent);
}

.klebstar-store-page .woocommerce form .form-row {
  margin: 0 0 15px;
  padding: 0;
}

.klebstar-store-page .woocommerce form .form-row label {
  margin-bottom: 6px;
  color: color-mix(in srgb, var(--ks-ink) 78%, transparent);
  font-size: 12px;
  font-weight: 800;
}

.klebstar-store-page .quantity .qty {
  width: 72px !important;
  min-height: 42px !important;
  text-align: center;
}

/* Buttons */
.klebstar-store-page .woocommerce a.button,
.klebstar-store-page .woocommerce button.button,
.klebstar-store-page .woocommerce input.button,
.klebstar-store-page .woocommerce #respond input#submit,
.klebstar-store-page .woocommerce #payment #place_order,
.klebstar-store-page .wc-block-components-button:not(.is-link) {
  min-height: 48px;
  padding: 12px 20px !important;
  color: #fff !important;
  background: var(--ks-primary) !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: 0 11px 25px color-mix(in srgb, var(--ks-primary) 22%, transparent) !important;
  font-family: var(--ks-body) !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  transition: transform .18s ease, filter .18s ease;
}

.klebstar-store-page .woocommerce a.button:hover,
.klebstar-store-page .woocommerce button.button:hover,
.klebstar-store-page .woocommerce input.button:hover,
.klebstar-store-page .woocommerce #payment #place_order:hover,
.klebstar-store-page .wc-block-components-button:not(.is-link):hover {
  filter: brightness(.96);
  transform: translateY(-1px);
}

.klebstar-store-page .woocommerce button.button:disabled,
.klebstar-store-page .woocommerce button.button:disabled[disabled] {
  opacity: .5;
}

.klebstar-store-page .wc-forward,
.klebstar-store-page .checkout-button,
.klebstar-store-page #place_order {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.klebstar-store-page .coupon {
  display: flex;
  gap: 8px;
}

.klebstar-store-page .coupon .input-text {
  min-width: 170px;
}

/* Cart totals */
.klebstar-store-page .cart-collaterals {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}

.klebstar-store-page .cart-collaterals .cart_totals {
  float: none;
  width: min(100%, 470px);
  padding: 24px;
  background: color-mix(in srgb, var(--ks-surface) 58%, #fff);
  border: 1px solid color-mix(in srgb, var(--ks-ink) 8%, transparent);
  border-radius: 20px;
}

.klebstar-store-page .cart-collaterals .cart_totals h2 {
  margin: 0 0 16px;
  font-size: 25px;
}

.klebstar-store-page .cart-collaterals .shop_table {
  background: #fff;
}

/* Classic checkout */
.klebstar-store-page form.checkout.woocommerce-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 0 18px;
}

.klebstar-store-page form.checkout > #customer_details {
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.klebstar-store-page form.checkout > #order_review_heading,
.klebstar-store-page form.checkout > #order_review {
  grid-column: 2;
}

.klebstar-store-page form.checkout > #order_review_heading {
  margin: 0;
  padding: 22px 22px 0;
  background: color-mix(in srgb, var(--ks-surface) 58%, #fff);
  border: 1px solid color-mix(in srgb, var(--ks-ink) 8%, transparent);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
}

.klebstar-store-page form.checkout > #order_review {
  padding: 18px 22px 22px;
  background: color-mix(in srgb, var(--ks-surface) 58%, #fff);
  border: 1px solid color-mix(in srgb, var(--ks-ink) 8%, transparent);
  border-top: 0;
  border-radius: 0 0 20px 20px;
}

.klebstar-store-page .woocommerce-billing-fields,
.klebstar-store-page .woocommerce-shipping-fields,
.klebstar-store-page .woocommerce-additional-fields,
.klebstar-store-page .woocommerce-form-login,
.klebstar-store-page .woocommerce-form-coupon {
  margin-bottom: 20px;
  padding: 22px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--ks-ink) 9%, transparent);
  border-radius: 20px;
}

.klebstar-store-page #ship-to-different-address,
.klebstar-store-page .woocommerce-shipping-fields,
.klebstar-store-page .woocommerce-additional-fields,
.klebstar-store-page #customer_details > .col-2 {
  display: none !important;
}

.klebstar-store-page .woocommerce-billing-fields > h3::after {
  content: "Deutschland ist vorausgewählt. Gespeicherte Browser-Adressen können direkt übernommen werden.";
  display: block;
  margin-top: 7px;
  color: var(--ks-muted);
  font-family: var(--ks-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.klebstar-store-page .woocommerce-billing-fields__field-wrapper {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}

.klebstar-store-page #customer_details.col2-set,
.klebstar-store-page #customer_details > .col-1,
.klebstar-store-page .woocommerce-billing-fields,
.klebstar-store-page .woocommerce-billing-fields__field-wrapper,
.klebstar-store-page .woocommerce-billing-fields__field-wrapper > .form-row,
.klebstar-store-page .woocommerce-billing-fields__field-wrapper > .form-row-first,
.klebstar-store-page .woocommerce-billing-fields__field-wrapper > .form-row-last {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
}

.klebstar-store-page .woocommerce-billing-fields__field-wrapper > .form-row-wide,
.klebstar-store-page #billing_address_1_field,
.klebstar-store-page #billing_country_field,
.klebstar-store-page #billing_email_field,
.klebstar-store-page .ks-invoice-toggle-row,
.klebstar-store-page .ks-invoice-field.form-row-wide {
  grid-column: 1 / -1;
}

.klebstar-store-page .ks-invoice-toggle-row {
  margin: 5px 0 14px !important;
  padding: 11px 13px !important;
  background: color-mix(in srgb, var(--ks-primary) 5%, #fff);
  border: 1px solid color-mix(in srgb, var(--ks-primary) 15%, transparent);
  border-radius: 11px;
}

.klebstar-store-page .ks-invoice-toggle-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  cursor: pointer;
}

.klebstar-store-page .ks-invoice-toggle-row input {
  width: 17px;
  height: 17px;
  min-height: 0;
  flex: 0 0 auto;
  accent-color: var(--ks-primary);
}

.klebstar-store-page .ks-invoice-field {
  display: none !important;
}

.klebstar-store-page.ks-show-invoice-address .ks-invoice-field,
body.ks-show-invoice-address.klebstar-store-page .ks-invoice-field {
  display: block !important;
}

.klebstar-store-page.ks-show-invoice-address .ks-invoice-toggle-row::after,
body.ks-show-invoice-address.klebstar-store-page .ks-invoice-toggle-row::after {
  content: "Abweichende Rechnungsadresse";
  display: block;
  margin-top: 8px;
  color: var(--ks-primary);
  font-size: 10px;
  font-weight: 900;
}

.klebstar-store-page .col2-set .col-1,
.klebstar-store-page .col2-set .col-2 {
  float: none;
  width: 100%;
}

.klebstar-store-page .woocommerce-checkout-review-order-table {
  background: #fff;
}

/* Payment methods */
.klebstar-store-page .woocommerce-checkout #payment {
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.klebstar-store-page #payment ul.payment_methods {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  list-style: none;
}

.klebstar-store-page #payment ul.payment_methods > li {
  margin: 0;
  padding: 14px 15px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--ks-ink) 12%, transparent);
  border-radius: 14px;
}

.klebstar-store-page #payment ul.payment_methods > li:has(input:checked) {
  border-color: var(--ks-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ks-primary) 9%, transparent);
}

.klebstar-store-page #payment ul.payment_methods label {
  color: var(--ks-ink);
  font-weight: 850;
}

.klebstar-store-page #payment ul.payment_methods img {
  max-height: 28px;
  width: auto;
  margin-left: 8px;
  vertical-align: middle;
}

.klebstar-store-page #payment div.payment_box {
  margin: 12px 0 0;
  padding: 13px;
  color: var(--ks-muted);
  background: color-mix(in srgb, var(--ks-primary) 6%, #fff);
  border-radius: 10px;
  font-size: 13px;
}

.klebstar-store-page #payment div.payment_box::before {
  display: none;
}

.klebstar-store-page #payment .place-order {
  margin: 15px 0 0;
  padding: 0;
}

.klebstar-store-page .woocommerce-privacy-policy-text,
.klebstar-store-page .woocommerce-terms-and-conditions-wrapper {
  color: var(--ks-muted);
  font-size: 12px;
}

/* WooCommerce Cart and Checkout blocks */
.klebstar-store-page .wc-block-cart,
.klebstar-store-page .wc-block-checkout {
  margin: 0;
}

.klebstar-store-page .wc-block-components-sidebar,
.klebstar-store-page .wc-block-checkout__main,
.klebstar-store-page .wc-block-cart__main {
  padding: 0;
}

.klebstar-store-page .wc-block-components-sidebar-layout .wc-block-components-main {
  padding-right: clamp(18px, 3vw, 40px);
}

.klebstar-store-page .wc-block-components-sidebar {
  padding: 22px !important;
  background: color-mix(in srgb, var(--ks-surface) 58%, #fff);
  border: 1px solid color-mix(in srgb, var(--ks-ink) 8%, transparent);
  border-radius: 20px;
}

.klebstar-store-page .wc-block-components-totals-wrapper,
.klebstar-store-page .wc-block-components-order-summary-item,
.klebstar-store-page .wc-block-components-checkout-step {
  border-color: color-mix(in srgb, var(--ks-ink) 9%, transparent) !important;
}

.klebstar-store-page .wc-block-components-checkout-step {
  margin-bottom: 15px;
  padding: 20px !important;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--ks-ink) 9%, transparent) !important;
  border-radius: 18px;
}

.klebstar-store-page .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option {
  margin-bottom: 9px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--ks-ink) 12%, transparent);
  border-radius: 14px;
}

.klebstar-store-page .wc-block-components-radio-control__option:has(input:checked) {
  box-shadow: 0 0 0 2px var(--ks-primary);
}

.klebstar-store-page .wc-block-components-checkout-place-order-button,
.klebstar-store-page .wc-block-cart__submit-button {
  width: 100%;
}

/* Order-pay and confirmation */
.klebstar-store-page .woocommerce-order-pay #payment,
.klebstar-store-page .woocommerce-order-details,
.klebstar-store-page .woocommerce-customer-details,
.klebstar-store-page .woocommerce-order-overview {
  margin-bottom: 22px;
  padding: 22px;
  background: color-mix(in srgb, var(--ks-surface) 48%, #fff);
  border: 1px solid color-mix(in srgb, var(--ks-ink) 9%, transparent);
  border-radius: 18px;
}

.klebstar-store-page ul.order_details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 18px;
  list-style: none;
}

.klebstar-store-page ul.order_details li {
  float: none;
  margin: 0;
  padding: 10px;
  border: 0;
  border-radius: 10px;
}

.ks-store-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 25px;
  margin: 22px 0 0;
  color: var(--ks-muted);
  font-size: 12px;
  font-weight: 750;
}

html.ks-lightbox-open {
  overflow: hidden;
}

.ks-design-lightbox[hidden] {
  display: none !important;
}

.ks-design-lightbox {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 26px;
  background: rgba(22, 17, 28, .78);
  backdrop-filter: blur(8px);
}

.ks-design-lightbox-panel {
  position: relative;
  display: grid;
  width: min(920px, 100%);
  height: min(86vh, 920px);
  place-items: center;
  padding: clamp(18px, 4vw, 42px);
  background-color: #f7f5f8;
  background-image:
    linear-gradient(45deg, #ddd8e0 25%, transparent 25%),
    linear-gradient(-45deg, #ddd8e0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ddd8e0 75%),
    linear-gradient(-45deg, transparent 75%, #ddd8e0 75%);
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-size: 24px 24px;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .36);
}

.ks-design-lightbox-panel > img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 30px rgba(30, 23, 36, .2));
}

.ks-lightbox-format {
  position: absolute;
  z-index: 3;
  top: 15px;
  left: 15px;
  padding: 5px 10px;
  color: #fff;
  background: #241f2e;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
}

.ks-lightbox-watermark {
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  color: rgba(36, 31, 46, .23);
  font-size: clamp(28px, 7vw, 72px);
  font-weight: 950;
  letter-spacing: .12em;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-24deg);
}

.ks-design-lightbox-panel > small {
  position: absolute;
  z-index: 3;
  right: 20px;
  bottom: 16px;
  left: 20px;
  padding: 7px 10px;
  color: #fff;
  background: rgba(36, 31, 46, .82);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.ks-cart-undo-toast {
  position: fixed;
  z-index: 100001;
  right: 22px;
  bottom: 22px;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  width: min(460px, calc(100% - 30px));
  padding: 13px 13px 13px 16px;
  color: #fff;
  background: #241f2e;
  border-radius: 15px;
  box-shadow: 0 18px 50px rgba(20, 15, 25, .3);
}

.ks-cart-undo-toast span { min-width: 0; display: grid; gap: 1px; }
.ks-cart-undo-toast b { font-size: 12px; }
.ks-cart-undo-toast small { color: rgba(255,255,255,.72); font-size: 9px; }
.ks-cart-undo-toast button { min-height: 34px; padding: 0 11px; border: 0; border-radius: 999px; cursor: pointer; font: 850 10px/1 var(--ks-body); }
.ks-cart-undo-action { color: #241f2e; background: #fff; }
.ks-cart-undo-close { width: 30px; padding: 0 !important; color: #fff; background: rgba(255,255,255,.12); font-size: 18px !important; }

.ks-design-lightbox-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  color: #fff;
  background: #241f2e;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

/* The cart and checkout now render the homepage footer component itself. */
.ks-store-footer-host.khp-root {
  width: 100%;
  min-height: 0;
  margin-top: auto;
  overflow: visible;
}

@media (max-width: 900px) {
  .ks-store-header-inner {
    grid-template-columns: 1fr auto;
  }

  .ks-store-header nav {
    display: none;
  }

  .klebstar-store-page form.checkout.woocommerce-checkout {
    display: block;
  }

  .klebstar-store-page form.checkout > #order_review_heading {
    margin-top: 24px;
  }

  .klebstar-store-page .wc-block-components-sidebar-layout {
    display: block;
  }

  .klebstar-store-page .wc-block-components-sidebar-layout .wc-block-components-main {
    width: 100%;
    padding-right: 0;
  }

  .klebstar-store-page .wc-block-components-sidebar {
    width: 100%;
    margin-top: 24px;
  }
}

@media (max-width: 600px) {
  .admin-bar .ks-store-header {
    top: 46px;
  }

  .ks-store-container {
    width: min(calc(100% - 24px), var(--ks-width));
  }

  .ks-store-header-inner {
    min-height: 64px;
    gap: 10px;
  }

  .ks-store-brand {
    font-size: 22px;
  }

  .ks-store-brand > span {
    width: 27px;
    height: 27px;
  }

  .ks-store-header-action {
    min-height: 39px;
    padding: 9px 13px;
    font-size: 11px;
  }

  .ks-store-main {
    padding: 34px 0 42px;
  }

  .ks-store-intro {
    margin-bottom: 22px;
  }

  .ks-store-intro h1 {
    font-size: clamp(36px, 12vw, 50px);
  }

  .ks-woocommerce-card {
    padding: 14px;
    border-radius: 20px;
  }

  .klebstar-store-page .woocommerce table.shop_table_responsive tr td,
  .klebstar-store-page .woocommerce-page table.shop_table_responsive tr td {
    padding: 12px;
  }

  .klebstar-store-page .woocommerce-cart-form .product-thumbnail {
    display: block;
    text-align: center !important;
  }

  .klebstar-store-page .coupon {
    display: grid;
    width: 100%;
  }

  .klebstar-store-page .coupon .input-text,
  .klebstar-store-page .coupon .button {
    width: 100% !important;
  }

  .klebstar-store-page .woocommerce-billing-fields__field-wrapper {
    grid-template-columns: 1fr;
  }

  .klebstar-store-page .woocommerce-billing-fields__field-wrapper > .form-row {
    grid-column: 1;
  }

  .ks-cart-undo-toast {
    right: 12px;
    bottom: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .ks-cart-undo-close { display: none; }

  .klebstar-store-page .cart-collaterals .cart_totals,
  .klebstar-store-page .woocommerce-billing-fields,
  .klebstar-store-page .woocommerce-shipping-fields,
  .klebstar-store-page .woocommerce-additional-fields,
  .klebstar-store-page form.checkout > #order_review,
  .klebstar-store-page form.checkout > #order_review_heading {
    padding-inline: 16px;
  }

  .ks-store-trust {
    display: grid;
    justify-content: start;
    padding: 0 8px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .klebstar-store-page *,
  .klebstar-store-page *::before,
  .klebstar-store-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
