/* =========================
   Sleepprofi Checkout
========================= */

.woocommerce-checkout .site-main,
.woocommerce-checkout main,
.woocommerce-checkout .content-area,
.woocommerce-checkout .woocommerce {
  width: 100%;
}

.woocommerce-checkout .woocommerce {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 20px 60px;
}

.woocommerce-checkout h1.page-title,
.woocommerce-checkout .entry-title,
.woocommerce-checkout .woocommerce-products-header {
  display: none !important;
}

/* Один нормальный заголовок */
.woocommerce-checkout #sp-checkout-title {
  margin: 0 0 24px;
  font-size: 52px;
  line-height: 1.05;
  font-weight: 800;
  color: var(--text-color);
}

/* notices */
.woocommerce-checkout .woocommerce-notices-wrapper {
  max-width: 860px;
  margin: 0 0 18px;
}

.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-message {
  margin: 0 0 14px !important;
  padding: 14px 18px 14px 18px !important;
  border: 1px solid rgba(32,32,32,0.08) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,0.62) !important;
  box-shadow:
    0 12px 28px rgba(31,38,135,0.05),
    inset 0 1px 0 rgba(255,255,255,0.65);
  list-style: none !important;
}

.woocommerce-checkout .woocommerce-error li,
.woocommerce-checkout .woocommerce-info li,
.woocommerce-checkout .woocommerce-message li {
  margin-left: 0 !important;
}

/* layout */
.woocommerce-checkout form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.woocommerce-checkout #customer_details {
  display: block;
  min-width: 0;
}

.woocommerce-checkout #customer_details::before {
  content: "Контактные данные";
  display: block;
  margin: 0 0 18px;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--text-color);
}

.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2 {
  width: 100% !important;
  float: none !important;
  max-width: none !important;
}

.woocommerce-checkout .col-2 {
  display: none !important;
}

/* billing card */
.woocommerce-checkout #customer_details .woocommerce-billing-fields {
  background: rgba(255,255,255,0.46);
  border: 1px solid rgba(32,32,32,0.08);
  border-radius: 28px;
  padding: 24px;
  box-shadow:
    0 16px 38px rgba(31,38,135,0.05),
    inset 0 1px 0 rgba(255,255,255,0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.woocommerce-checkout .woocommerce-billing-fields h3 {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-color);
}

.woocommerce-checkout .form-row {
  width: 100% !important;
  margin: 0 0 16px !important;
}

.woocommerce-checkout .form-row label {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-color);
}

.woocommerce-checkout .input-text,
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="email"] {
  width: 100% !important;
  height: 58px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(32,32,32,0.08);
  background: rgba(255,255,255,0.82);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.72),
    0 8px 20px rgba(31,38,135,0.03);
  color: var(--text-color);
  font-size: 17px;
  outline: none;
}

.woocommerce-checkout .input-text:focus,
.woocommerce-checkout input[type="text"]:focus,
.woocommerce-checkout input[type="tel"]:focus,
.woocommerce-checkout input[type="email"]:focus {
  border-color: rgba(101,120,254,0.45);
  box-shadow:
    0 0 0 3px rgba(101,120,254,0.12),
    0 8px 20px rgba(31,38,135,0.04);
}

/* sidebar */
.woocommerce-checkout #order_review_heading {
  margin: 0 0 16px;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--text-color);
}

.woocommerce-checkout #order_review {
  background: rgba(255,255,255,0.46);
  border: 1px solid rgba(32,32,32,0.08);
  border-radius: 28px;
  padding: 20px;
  box-shadow:
    0 16px 38px rgba(31,38,135,0.05),
    inset 0 1px 0 rgba(255,255,255,0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 24px;
}

.woocommerce-checkout table.shop_table {
  margin: 0 0 18px !important;
  border: 0 !important;
  border-collapse: collapse !important;
  background: transparent !important;
}

.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td {
  padding: 14px 0 !important;
  border-bottom: 1px solid rgba(32,32,32,0.08) !important;
  background: transparent !important;
  color: var(--text-color);
  font-size: 15px;
}

.woocommerce-checkout table.shop_table th {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(32,32,32,0.45);
}

.woocommerce-checkout .product-total,
.woocommerce-checkout .order-total td,
.woocommerce-checkout .order-total strong,
.woocommerce-checkout .amount {
  font-weight: 800;
}

.woocommerce-checkout .woocommerce-checkout-payment {
  margin-top: 14px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.woocommerce-checkout .payment_methods {
  margin: 0 0 14px !important;
  padding: 0 !important;
  list-style: none !important;
}

.woocommerce-checkout .payment_methods > li {
  margin: 0 0 12px !important;
  padding: 14px 16px !important;
  border-radius: 18px;
  border: 1px solid rgba(32,32,32,0.08);
  background: rgba(255,255,255,0.78);
}

.woocommerce-checkout .wc_payment_method label {
  font-weight: 700;
}

.woocommerce-checkout .place-order {
  padding: 0 !important;
  margin-top: 14px !important;
}

.woocommerce-checkout #place_order {
  width: 100% !important;
  height: 58px !important;
  border: 1px solid rgba(101,120,254,0.22) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,0.72) !important;
  color: var(--blue-color) !important;
  font-size: 21px !important;
  font-weight: 800 !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.72),
    0 12px 26px rgba(31,38,135,0.05) !important;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.woocommerce-checkout #place_order:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.92) !important;
  box-shadow:
    0 16px 30px rgba(31,38,135,0.08),
    inset 0 1px 0 rgba(255,255,255,0.78) !important;
}

.woocommerce-checkout .woocommerce-privacy-policy-text {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(32,32,32,0.72);
}

/* mobile */
@media (max-width: 980px) {
  .woocommerce-checkout #sp-checkout-title {
    font-size: 40px;
  }

  .woocommerce-checkout form.checkout {
    grid-template-columns: 1fr;
  }

  .woocommerce-checkout #order_review {
    position: static;
  }

  .woocommerce-checkout #customer_details::before,
  .woocommerce-checkout #order_review_heading {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .woocommerce-checkout .woocommerce {
    padding: 26px 16px 42px;
  }

  .woocommerce-checkout #sp-checkout-title {
    font-size: 32px;
  }

  .woocommerce-checkout #customer_details .woocommerce-billing-fields,
  .woocommerce-checkout #order_review {
    border-radius: 22px;
    padding: 16px;
  }

  .woocommerce-checkout .input-text,
  .woocommerce-checkout input[type="text"],
  .woocommerce-checkout input[type="tel"],
  .woocommerce-checkout input[type="email"],
  .woocommerce-checkout #place_order {
    height: 52px !important;
    font-size: 16px !important;
    border-radius: 14px !important;
  }
}