/* Bebelplatz Fase 21.3 — checkout */
body.bp213-checkout .woocommerce {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

body.bp213-checkout .entry-title,
body.bp213-checkout .page-title {
  margin-bottom: 14px;
}

body.bp213-checkout .bp213-checkout-intro {
  margin: 0 0 28px;
  padding: 20px 22px;
  border: 1px solid rgba(17,17,17,.09);
  border-radius: 16px;
  background: rgba(17,17,17,.02);
}

body.bp213-checkout .bp213-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.bp213-checkout .bp213-checkout-intro > p:last-of-type {
  margin: 0;
  max-width: 720px;
  line-height: 1.6;
}

body.bp213-checkout .bp213-checkout-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
}

body.bp213-checkout .bp213-checkout-benefits span::before {
  content: "✓";
  margin-right: 6px;
}

body.bp213-checkout .woocommerce-form-login,
body.bp213-checkout .checkout_coupon,
body.bp213-checkout .woocommerce-info {
  border-radius: 12px;
}

body.bp213-checkout form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr);
  grid-template-rows: auto auto;
  gap: 18px 32px;
  align-items: start;
}

body.bp213-checkout #customer_details {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: block;
  width: 100%;
  margin: 0;
}

body.bp213-checkout #customer_details .col-1,
body.bp213-checkout #customer_details .col-2 {
  float: none;
  width: 100%;
  margin: 0;
}

body.bp213-checkout #customer_details .col-2 {
  margin-top: 24px;
}

body.bp213-checkout #order_review_heading {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  padding: 0 0 4px;
  font-size: 22px;
  line-height: 1.2;
}

body.bp213-checkout #order_review {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(17,17,17,.1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0,0,0,.05);
}

body.bp213-checkout .woocommerce-billing-fields,
body.bp213-checkout .woocommerce-shipping-fields,
body.bp213-checkout .woocommerce-additional-fields {
  padding: 24px;
  border: 1px solid rgba(17,17,17,.1);
  border-radius: 18px;
  background: #fff;
}

body.bp213-checkout .woocommerce-billing-fields > h3,
body.bp213-checkout .woocommerce-shipping-fields > h3,
body.bp213-checkout .woocommerce-additional-fields > h3,
body.bp213-checkout .woocommerce-shipping-fields > h3 label {
  margin: 0 0 20px;
  font-size: 22px;
  line-height: 1.2;
}

body.bp213-checkout .form-row {
  margin: 0 0 16px;
  padding: 0;
}

body.bp213-checkout .form-row-first,
body.bp213-checkout .form-row-last {
  width: calc(50% - 8px);
}

body.bp213-checkout .form-row-first {
  float: left;
}

body.bp213-checkout .form-row-last {
  float: right;
}

body.bp213-checkout .form-row-wide {
  clear: both;
}

body.bp213-checkout .form-row label {
  display: block;
  margin: 0 0 7px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

body.bp213-checkout .form-row .required {
  text-decoration: none;
}

body.bp213-checkout .form-row input.input-text,
body.bp213-checkout .form-row textarea,
body.bp213-checkout .form-row select,
body.bp213-checkout .select2-container .select2-selection--single {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(17,17,17,.15);
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
  font-size: 15px;
}

body.bp213-checkout .form-row input.input-text,
body.bp213-checkout .form-row textarea {
  padding: 11px 13px;
}

body.bp213-checkout .form-row textarea {
  min-height: 110px;
  resize: vertical;
}

body.bp213-checkout .select2-container {
  width: 100% !important;
}

body.bp213-checkout .select2-container .select2-selection--single {
  height: 48px;
}

body.bp213-checkout .select2-container .select2-selection--single .select2-selection__rendered {
  padding: 0 40px 0 13px;
  line-height: 46px;
}

body.bp213-checkout .select2-container .select2-selection--single .select2-selection__arrow {
  width: 36px;
  height: 46px;
}

body.bp213-checkout .form-row input:focus,
body.bp213-checkout .form-row textarea:focus,
body.bp213-checkout .select2-container--focus .select2-selection {
  outline: 2px solid rgba(17,17,17,.22);
  outline-offset: 2px;
  border-color: rgba(17,17,17,.4);
}

body.bp213-checkout .woocommerce-invalid input.input-text,
body.bp213-checkout .woocommerce-invalid .select2-selection {
  border-color: #b42318;
}

body.bp213-checkout .woocommerce-validated input.input-text,
body.bp213-checkout .woocommerce-validated .select2-selection {
  border-color: rgba(17,17,17,.18);
}

body.bp213-checkout #ship-to-different-address,
body.bp213-checkout .create-account {
  margin-top: 4px;
}

body.bp213-checkout input[type="checkbox"],
body.bp213-checkout input[type="radio"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-right: 8px;
  vertical-align: middle;
}

body.bp213-checkout .woocommerce-checkout-review-order-table {
  width: 100%;
  margin: 0 0 18px;
  border: 0;
  border-collapse: collapse;
}

body.bp213-checkout .woocommerce-checkout-review-order-table th,
body.bp213-checkout .woocommerce-checkout-review-order-table td {
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid rgba(17,17,17,.08);
  vertical-align: top;
}

body.bp213-checkout .woocommerce-checkout-review-order-table thead th {
  padding-top: 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.bp213-checkout .woocommerce-checkout-review-order-table th:last-child,
body.bp213-checkout .woocommerce-checkout-review-order-table td:last-child {
  text-align: right;
}

body.bp213-checkout .bp213-order-book {
  display: grid;
  gap: 3px;
  padding-right: 14px;
}

body.bp213-checkout .bp213-order-title {
  font-weight: 800;
  line-height: 1.35;
}

body.bp213-checkout .bp213-order-author {
  font-size: 12px;
  line-height: 1.4;
  opacity: .66;
}

body.bp213-checkout .woocommerce-checkout-review-order-table .order-total th,
body.bp213-checkout .woocommerce-checkout-review-order-table .order-total td {
  padding-top: 17px;
  border-bottom: 0;
  font-size: 17px;
  font-weight: 900;
}

body.bp213-checkout #payment {
  margin-top: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.bp213-checkout #payment .payment_methods {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  list-style: none;
}

body.bp213-checkout #payment .wc_payment_method {
  margin: 0 0 10px;
  padding: 14px;
  border: 1px solid rgba(17,17,17,.1);
  border-radius: 10px;
  background: rgba(17,17,17,.018);
}

body.bp213-checkout #payment .wc_payment_method > label {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  font-weight: 800;
}

body.bp213-checkout #payment .payment_box {
  margin: 12px 0 0;
  padding: 14px;
  border-radius: 9px;
  background: rgba(17,17,17,.035);
}

body.bp213-checkout #payment .wc-stripe-upe-element,
body.bp213-checkout #payment .wc-upe-form {
  min-height: 48px;
  border-radius: 8px;
}

body.bp213-checkout #payment .place-order {
  margin: 0;
  padding: 0;
}

body.bp213-checkout #payment #place_order {
  width: 100%;
  min-height: 54px;
  margin: 14px 0 0;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 900;
}

body.bp213-checkout .woocommerce-terms-and-conditions-wrapper {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.55;
}

body.bp213-checkout .woocommerce-terms-and-conditions-wrapper a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.bp213-checkout .woocommerce-NoticeGroup-checkout,
body.bp213-checkout .woocommerce-error,
body.bp213-checkout .woocommerce-message {
  grid-column: 1 / -1;
}

body.bp213-checkout .woocommerce-error,
body.bp213-checkout .woocommerce-message,
body.bp213-checkout .woocommerce-info {
  padding: 14px 16px 14px 44px;
  border-radius: 10px;
}

body.bp213-checkout .woocommerce-form-coupon-toggle,
body.bp213-checkout .woocommerce-form-login-toggle {
  margin-bottom: 10px;
}

body.bp213-checkout .checkout_coupon,
body.bp213-checkout .woocommerce-form-login {
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid rgba(17,17,17,.1);
  background: #fff;
}

body.bp213-checkout .checkout_coupon .form-row,
body.bp213-checkout .woocommerce-form-login .form-row {
  margin-bottom: 10px;
}

body.bp213-checkout .checkout_coupon .button,
body.bp213-checkout .woocommerce-form-login .button {
  min-height: 44px;
  border-radius: 8px;
  font-weight: 800;
}

@media (min-width: 901px) {
  body.bp213-checkout #order_review {
    position: sticky;
    top: 24px;
  }
}

@media (max-width: 900px) {
  body.bp213-checkout .woocommerce {
    padding: 38px 18px 64px;
  }

  body.bp213-checkout form.checkout {
    display: block;
  }

  body.bp213-checkout #customer_details,
  body.bp213-checkout #order_review_heading,
  body.bp213-checkout #order_review {
    width: 100%;
  }

  body.bp213-checkout #order_review_heading {
    margin: 30px 0 12px;
  }

  body.bp213-checkout #order_review {
    padding: 20px;
  }
}

@media (max-width: 600px) {
  body.bp213-checkout .woocommerce {
    padding: 30px 14px 56px;
  }

  body.bp213-checkout .bp213-checkout-intro {
    padding: 18px;
  }

  body.bp213-checkout .bp213-checkout-benefits {
    display: grid;
    gap: 7px;
  }

  body.bp213-checkout .woocommerce-billing-fields,
  body.bp213-checkout .woocommerce-shipping-fields,
  body.bp213-checkout .woocommerce-additional-fields,
  body.bp213-checkout #order_review {
    padding: 17px;
    border-radius: 14px;
  }

  body.bp213-checkout .form-row-first,
  body.bp213-checkout .form-row-last {
    float: none;
    width: 100%;
  }

  body.bp213-checkout .woocommerce-checkout-review-order-table th,
  body.bp213-checkout .woocommerce-checkout-review-order-table td {
    padding: 12px 0;
  }

  body.bp213-checkout #payment .wc_payment_method {
    padding: 12px;
  }
}

/* FASE 21.4: align checkout summary below heading on desktop */
@media (min-width: 901px) {
  body.bp213-checkout form.checkout { grid-template-rows: min-content minmax(0, 1fr); }
}
