/* =========================================================
   WMO WooCommerce Checkout Block
   Scope: only checkout page shell
========================================================= */

.wc-block-bootstrap-shell--checkout {
    padding: clamp(1.5rem, 6vw, 3rem) 0;
  background: #fff;
}

.wc-block-bootstrap-shell--checkout .wp-block-woocommerce-checkout {
  max-width: none;
  margin: 0;
}

.wc-block-bootstrap-shell--checkout .wp-block-woocommerce-checkout::before {
  content: "KASSE";
  display: block;
  color: var(--brand-accent-color);
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1.5rem 0;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
}

.wc-block-bootstrap-shell--checkout .wc-block-surface--checkout {
  position: relative;
}

/* Layout */

.wc-block-bootstrap-shell--checkout .wc-block-components-sidebar-layout.wc-block-checkout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  margin: 0;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-main,
.wc-block-bootstrap-shell--checkout .wc-block-components-sidebar {
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

/* Form */

.wc-block-bootstrap-shell--checkout .wc-block-checkout__form {
  display: flex;
  flex-direction: column;
}

/* Checkout cards */

.wc-block-bootstrap-shell--checkout .wc-block-components-checkout-step {
  margin-bottom: 1.5rem !important;
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--brand-secondary-color-20);
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

.wc-block-bootstrap-shell--checkout .wc-block-components-checkout-step__heading-container {
  margin: 0 0 1.25rem !important;
  padding: 0 !important;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-checkout-step__heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-title,
.wc-block-bootstrap-shell--checkout .wc-block-components-checkout-step__title {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--brand-header-text-color);
  font-weight: 700;
  letter-spacing: -0.02em;
    font-size: 1.1rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-checkout-step__content {
  margin: 0 !important;
}

/* Address form grid */

.wc-block-bootstrap-shell--checkout .wc-block-components-address-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-address-form__email,
.wc-block-bootstrap-shell--checkout .wc-block-components-address-form__country,
.wc-block-bootstrap-shell--checkout .wc-block-components-address-form__address_1,
.wc-block-bootstrap-shell--checkout .wc-block-components-address-form__address_2,
.wc-block-bootstrap-shell--checkout .wc-block-components-address-form__phone {
  grid-column: 1 / -1;
}

/* Inputs */

.wc-block-bootstrap-shell--checkout .wc-block-components-text-input,
.wc-block-bootstrap-shell--checkout .wc-blocks-components-select__container {
  margin: 0 !important;
  display: grid;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-text-input input,
.wc-block-bootstrap-shell--checkout .wc-blocks-components-select__select {
    order: 2;
  width: 100%;
  min-height: 48px;
  margin: 0 !important;
  padding: 12px 18px !important;
  background: var(--brand-primary-color);
  border: 1px solid var(--brand-secondary-color-20) !important;
  border-radius: 12px !important;
  color: var(--brand-primary-text-color);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  box-shadow: none !important;
  outline: none !important;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.wc-block-components-address-form__address_2-hidden-input {
  display: none;
}

.wc-block-bootstrap-shell--checkout .wc-blocks-components-select__select {
  padding-right: 3rem !important;
  cursor: pointer;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-text-input input:hover,
.wc-block-bootstrap-shell--checkout .wc-blocks-components-select__select:hover {
  border-color: var(--brand-accent-color) !important;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-text-input input:focus,
.wc-block-bootstrap-shell--checkout .wc-blocks-components-select__select:focus,
.wc-block-bootstrap-shell--checkout .wc-block-checkout__add-note .wc-block-components-textarea:focus {
  border-color: var(--brand-accent-color) !important;
  background: #fff;
  outline: none !important;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-text-input label,
.wc-block-bootstrap-shell--checkout .wc-blocks-components-select__label {
    order: 1;
  color: var(--brand-secondary-color-70) !important;
  font-size: 0.75rem !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-bottom: 0.2rem !important;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-text-input.is-active label {
  transform: translateY(0) scale(1) !important;
}

.wc-block-bootstrap-shell--checkout .wc-blocks-components-select__expand {
  display: none;
}

/* Address card */

.wc-block-bootstrap-shell--checkout .wc-block-components-address-card {
  margin: 0 0 1rem;
  padding: 1rem;
  background: var(--brand-primary-color);
  border: 1px solid var(--brand-secondary-color-10);
  border-radius: 12px;
  color: var(--brand-primary-text-color);
}

.wc-block-bootstrap-shell--checkout .wc-block-components-address-card__edit {
  display: none;
}

.wc-block-components-address-card__address-section {
    display: block;
}

/* Address line 2 toggle */

.wc-block-bootstrap-shell--checkout .wc-block-components-address-form__address_2-toggle {
  grid-column: 1 / -1;
  width: fit-content;
  color: var(--brand-accent-color);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-address-form__address_2-toggle:hover {
  color: var(--brand-accent-color-hover);
}

/* Payment options */

.wc-block-bootstrap-shell--checkout .wc-block-components-radio-control {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--brand-secondary-color-20);
  border-radius: 12px;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-radio-control-accordion-option {
  border-bottom: 1px solid var(--brand-secondary-color-10);
}

.wc-block-bootstrap-shell--checkout .wc-block-components-radio-control-accordion-option:last-child {
  border-bottom: 0;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-radio-control__option {
    display: flex;
    gap: 1rem;
    min-height: 40px;
    padding: 1rem !important;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-radio-control__input {
    position: relative;
    width: 15px;
    height: 15px;
    accent-color: var(--brand-accent-color);
}

.wc-block-bootstrap-shell--checkout .wc-block-components-radio-control__input:checked {
    accent-color: var(--brand-accent-color);
    background: var(--brand-accent-color) !important;
    border: var(--brand-accent-color-hover) solid 2px !important;
    color: #fff !important;
}
.wc-block-bootstrap-shell--checkout .wc-block-components-radio-control__label {
  color: var(--brand-header-text-color);
  font-size: 0.95rem;
  font-weight: 700;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-radio-control__option-checked,
.wc-block-bootstrap-shell--checkout .wc-block-components-radio-control-accordion-content {
  background: var(--brand-accent-color-10) !important;
  align-items: center;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-radio-control-accordion-content {
  padding: 0 1rem 1rem 2.7rem;
  color: var(--brand-primary-text-color);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Order notes */

.wc-block-bootstrap-shell--checkout #order-notes {
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--brand-secondary-color-20);
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

.wc-block-bootstrap-shell--checkout .wc-block-checkout__add-note {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
  
.wc-block-bootstrap-shell--checkout .wc-block-checkout__add-note .wc-block-components-textarea {
    width: 100%;
}

/* Checkboxes */

.wc-block-bootstrap-shell--checkout .wc-block-components-checkbox label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-checkbox__input {
  accent-color: var(--brand-accent-color);
}
svg.wc-block-components-checkbox__mark {
    display: none;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-checkbox__label {
  color: var(--brand-primary-text-color);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Terms */

.wc-block-bootstrap-shell--checkout .wc-block-checkout__terms {
  margin: 0;
  padding: 1.2rem;
  background: var(--brand-accent-color-10);
  border: 1px solid var(--brand-accent-color-hover);
  border-radius: 18px;
  color: var(--brand-primary-text-color);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Actions */

.wc-block-bootstrap-shell--checkout .wc-block-checkout__actions {
  margin-top: 0.25rem;
}

.wc-block-bootstrap-shell--checkout .wc-block-checkout__actions_row {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-checkout-return-to-cart-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--brand-primary-text-color);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-checkout-return-to-cart-button:hover {
  color: var(--brand-accent-color);
}

.wc-block-bootstrap-shell--checkout .wc-block-components-checkout-return-to-cart-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Place order button */

.wc-block-bootstrap-shell--checkout .wc-block-components-button.wc-block-components-checkout-place-order-button {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand-accent-color) !important;
  background: var(--brand-accent-color) !important;
  color: #fff !important;
  min-height: 30px;
  padding: 0.75rem 2rem !important;
  border-radius: 999px !important;
  font-weight: 700;
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.03em;
  box-shadow: none !important;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-button.wc-block-components-checkout-place-order-button:hover {
  color: #fff !important;
  background: var(--brand-accent-color-hover) !important;
  border-color: var(--brand-accent-color-hover) !important;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-button.wc-block-components-checkout-place-order-button:active {
  color: var(--brand-accent-color) !important;
  background: var(--brand-primary-color) !important;
  border: 1px solid var(--brand-accent-color) !important;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-button__text {
  color: inherit;
  text-transform: uppercase;
}

/* Sidebar summary */

.wc-block-bootstrap-shell--checkout .wc-block-checkout__sidebar {
  position: sticky;
  top: 2rem;
}

.wc-block-bootstrap-shell--checkout .wp-block-woocommerce-checkout-order-summary-block {
  position: relative;
  overflow: hidden;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  background: #fff;
  border: 1px solid var(--brand-secondary-color-20);
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

/* Sidebar title */

.wc-block-bootstrap-shell--checkout .wc-block-components-checkout-order-summary__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 0;
  margin: 0;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--brand-secondary-color-10);
}

.wc-block-bootstrap-shell--checkout .wc-block-components-checkout-order-summary__title-text {
  margin: 0;
  color: var(--brand-header-text-color);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-checkout-order-summary__title-price {
  color: var(--brand-accent-color);
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-checkout-order-summary__title-icon {
  display: none;
}

/* Summary items */

.wc-block-bootstrap-shell--checkout .wc-block-components-checkout-order-summary__content {
  padding: 0;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-order-summary {
  padding: 0;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-order-summary__content {
  display: flex;
  flex-direction: column;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-order-summary-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--brand-secondary-color-10);
}

.wc-block-bootstrap-shell--checkout .wc-block-components-order-summary-item__image {
  position: relative;
  width: 64px;
  height: 64px;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-order-summary-item__image img {
  display: block;
  width: 64px !important;
  height: 64px !important;
  object-fit: contain;
  border-radius: 8px;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-order-summary-item__quantity {
  position: absolute;
  top: -7px;
  right: -7px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--brand-accent-color);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-order-summary-item__description {
  min-width: 0;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-product-name {
  margin: 0 0 0.35rem !important;
  padding: 0 !important;
  color: var(--brand-header-text-color);
  font-size: 0.95rem !important;
  font-weight: 700;
  line-height: 1.25;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-order-summary-item__individual-prices {
  color: var(--brand-accent-color);
  font-size: 0.9rem;
  font-weight: 700;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-product-metadata {
  margin: 0.35rem 0 0;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-product-metadata__description p {
  display: -webkit-box;
  margin: 0;
  color: var(--brand-primary-text-color);
  font-size: 0.8rem;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-order-summary-item__total-price {
  grid-column: 2;
  color: var(--brand-header-text-color);
  font-size: 0.95rem;
  font-weight: 800;
}

/* Totals */

.wc-block-bootstrap-shell--checkout .wc-block-components-totals-wrapper {
  padding: 0 !important;
  border: 0 !important;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-totals-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0 0 !important;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-totals-item__label {
  color: var(--brand-primary-text-color);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-totals-item__value,
.wc-block-bootstrap-shell--checkout .wc-block-components-totals-item__value span {
  color: var(--brand-header-text-color);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}
.wc-block-bootstrap-shell--checkout .wc-block-components-totals-item__description {
  display: none;
}
.wc-block-bootstrap-shell--checkout .wc-block-components-totals-footer-item {
  margin-top: 1rem;
  padding-top: 1rem !important;
  border-top: 1px solid var(--brand-secondary-color-10);
}

.wc-block-bootstrap-shell--checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  color: var(--brand-header-text-color);
  font-size: 1.05rem;
  font-weight: 800;
}

.wc-block-bootstrap-shell--checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value span {
  color: var(--brand-header-text-color);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 800;
}

/* Notices */

.wc-block-bootstrap-shell--checkout .wc-block-components-notice-banner {
  margin-bottom: 1rem;
  border-radius: 8px;
}

/* Disabled */

.wc-block-bootstrap-shell--checkout .wc-block-components-button:disabled,
.wc-block-bootstrap-shell--checkout .wc-block-components-button[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Responsive */

@media (max-width: 992px) {
  .wc-block-bootstrap-shell--checkout .wc-block-components-sidebar-layout.wc-block-checkout {
    grid-template-columns: 1fr;
  }

  .wc-block-bootstrap-shell--checkout .wc-block-checkout__sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 768px) {
    .wc-block-surface--checkout {
    padding: 0;
    background: none;
    box-shadow: none;
    border: none;
    }
  .wc-block-bootstrap-shell--checkout {
    padding: 2rem 0;
  }
  .wc-block-bootstrap-shell--checkout .wp-block-woocommerce-checkout::before {
      justify-self: center;
  }

  .wc-block-bootstrap-shell--checkout .wc-block-components-address-form {
    grid-template-columns: 1fr;
  }

  .wc-block-bootstrap-shell--checkout .wc-block-components-checkout-step,
  .wc-block-bootstrap-shell--checkout #order-notes,
  .wc-block-bootstrap-shell--checkout .wc-block-checkout__terms {
    padding: 1rem;
  }

  .wc-block-bootstrap-shell--checkout .wc-block-checkout__actions_row {
    flex-direction: column-reverse;
    align-items: stretch;
  }

.wc-block-bootstrap-shell--checkout .wc-block-components-title,
.wc-block-bootstrap-shell--checkout .wc-block-components-checkout-step__title,
.wc-block-bootstrap-shell--checkout .wc-block-components-checkout-order-summary__title-text {
    font-size: 1rem;
}
  .wc-block-bootstrap-shell--checkout .wc-block-components-checkout-place-order-button {
    width: 100%;
  }

  .wc-block-bootstrap-shell--checkout .wc-block-components-checkout-return-to-cart-button {
    justify-content: center;
  }
    .wc-block-bootstrap-shell--checkout .wc-block-components-order-summary-item {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .wc-block-bootstrap-shell--checkout .wc-block-components-order-summary-item__image,
  .wc-block-bootstrap-shell--checkout .wc-block-components-order-summary-item__image img {
    width: 56px !important;
    height: 56px !important;
  }
  .wc-block-bootstrap-shell--checkout .wc-block-components-product-metadata {
    display: none !important;
  }

  .wc-block-bootstrap-shell--checkout .wc-block-components-totals-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .wc-block-bootstrap-shell--checkout .wc-block-components-totals-item__value,
  .wc-block-bootstrap-shell--checkout .wc-block-components-totals-item__value span {
    white-space: normal;
  }
}

.wc-gzd-checkout-submit {
    display: none;
}