/* Maya cart + checkout shell (legacy logic, modern layout) */

body.maya-page-cart .shoping-cart,
body.maya-page-checkout .product.spad {
  padding-top: 20px;
  padding-bottom: 28px;
}

body.maya-page-cart .shoping-cart .container,
body.maya-page-checkout .product.spad .container {
  max-width: min(1500px, calc(100vw - 40px));
}

.maya-checkout-stepper {
  margin: 6px 0 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,250,252,0.92));
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  padding: 14px 16px;
}

.maya-checkout-stepper__list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.maya-checkout-stepper__item {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  padding: 8px 10px;
  color: #475569;
  background: rgba(255,255,255,0.7);
}

.maya-checkout-stepper__num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  background: #e2e8f0;
  color: #0f172a;
  flex: 0 0 auto;
}

.maya-checkout-stepper__item.is-active {
  color: #0f172a;
  background: rgba(250, 244, 233, 0.9);
  box-shadow: inset 0 0 0 1px rgba(179, 135, 61, 0.2);
}

.maya-checkout-stepper__item.is-active .maya-checkout-stepper__num {
  background: #b3873d;
  color: #fff;
}

.maya-checkout-stepper__item.is-done .maya-checkout-stepper__num {
  background: #0f766e;
  color: #fff;
}

.maya-cart-shell__progress {
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  padding: 14px 16px;
  margin-bottom: 18px;
}

.maya-cart-shell__progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  color: #0f172a;
  margin-bottom: 8px;
}

.maya-cart-shell__progress-head strong {
  font-weight: 700;
}

.maya-cart-shell__progress-head em {
  font-style: normal;
  color: #64748b;
  font-size: 12px;
}

.maya-cart-shell__progress-bar {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.maya-cart-shell__progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #0ea5e9, #10b981);
  transition: width .35s ease;
}

body.maya-page-cart .shoping__cart__table,
body.maya-page-checkout .checkout__order {
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

body.maya-page-cart .shoping__cart__table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

body.maya-page-cart .shoping__cart__table thead th {
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

body.maya-page-cart .shoping__cart__table tbody tr[id] td {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding: 14px 12px;
  vertical-align: top;
}

body.maya-page-cart .shoping__cart__table tbody tr[id]:last-of-type td {
  border-bottom: 0;
}

body.maya-page-cart .shoping__cart__item {
  min-width: 0;
}

body.maya-page-cart .shoping__cart__item > img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  float: left;
  margin-right: 12px;
}

body.maya-page-cart .shoping__cart__item h6 {
  margin: 0;
  color: #0f172a;
  line-height: 1.4;
  font-size: 14px;
}

body.maya-page-cart .shoping__cart__item h6 a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

body.maya-page-cart .variantecarrello {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

body.maya-page-cart .shoping__cart__quantity input[type="text"] {
  width: 42px !important;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  text-align: center;
  font-weight: 700;
  background: #fff;
}

body.maya-page-cart .fleftcarello {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 2px;
}

body.maya-page-cart .fleftcarello .fa-stack {
  width: 30px;
  height: 30px;
  line-height: 30px;
  border-radius: 10px;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

body.maya-page-cart .shoping__cart__total b,
body.maya-page-cart .shoping__cart__total {
  color: #0f172a;
  font-weight: 800;
  font-size: 16px;
}

body.maya-page-cart .shoping__cart__item__close .icon_close {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(239, 68, 68, 0.18);
  color: #dc2626;
  cursor: pointer;
  transition: all .2s ease;
}

body.maya-page-cart .shoping__cart__item__close .icon_close:hover {
  background: #fef2f2;
  border-color: rgba(239, 68, 68, 0.28);
}

body.maya-page-cart .shoping__checkout,
body.maya-page-checkout .maya-checkout-sidecard {
  position: sticky;
  top: 106px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 18px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  padding: 14px 16px;
}

body.maya-page-cart .shoping__checkout ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.maya-page-cart .shoping__checkout li {
  color: #0f172a;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding: 10px 0;
}

body.maya-page-cart .shoping__checkout li:last-child {
  border-bottom: 0;
}

body.maya-page-cart .shoping__cart__btns .primary-btn,
body.maya-page-checkout .shoping__cart__btns .primary-btn,
body.maya-page-checkout .shoping__cart__btns button.primary-btn {
  border-radius: 14px;
  min-height: 46px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

body.maya-page-checkout .checkout__order {
  padding: 12px 14px;
  margin-bottom: 14px;
}

body.maya-page-checkout .checkout__order__products,
body.maya-page-checkout .checkout__order__total,
body.maya-page-checkout .checkout__order h4 {
  color: #0f172a;
}

body.maya-page-checkout .checkout__order__total {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding: 12px 0;
}

body.maya-page-checkout .checkout__order__total:last-child {
  border-bottom: 0;
}

body.maya-page-checkout .checkout__order__total input[type="radio"],
body.maya-page-checkout .checkout__order__total input[type="checkbox"] {
  transform: scale(1.06);
  accent-color: #111827;
}

.maya-checkout-express {
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  padding: 14px;
  margin-bottom: 16px;
}

.maya-checkout-express__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.maya-checkout-express__head strong {
  color: #0f172a;
  font-size: 14px;
}

.maya-checkout-express__head span {
  color: #64748b;
  font-size: 12px;
}

.maya-checkout-express__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.maya-paypal-buttons,
.maya-paypal-buttons-card,
.maya-klarna-widget,
.maya-scalapay-widget {
  border: 1px dashed rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.maya-paypal-buttons.is-disabled,
.maya-klarna-widget.is-disabled,
.maya-scalapay-widget.is-disabled {
  color: #64748b;
  font-size: 12px;
}

.maya-payment-banners {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.maya-checkout-total-target {
  font-weight: 800;
}

body.maya-page-checkout .contact-form textarea,
body.maya-page-checkout input[type="text"],
body.maya-page-checkout input[type="email"],
body.maya-page-checkout input[type="tel"],
body.maya-page-checkout select {
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
}

body.maya-page-checkout .ui-state-error {
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.18);
  background: #fef2f2;
  color: #991b1b;
}

@media (max-width: 1080px) {
  .maya-checkout-stepper__list {
    grid-template-columns: 1fr 1fr;
  }
  body.maya-page-cart .shoping__checkout,
  body.maya-page-checkout .maya-checkout-sidecard,
  body.maya-page-checkout .checkout__order,
  body.maya-page-cart .shoping__checkout {
    position: static;
    top: auto;
  }
}

@media (max-width: 760px) {
  .maya-checkout-stepper__list {
    grid-template-columns: 1fr;
  }
  .maya-checkout-express__grid {
    grid-template-columns: 1fr;
  }
  body.maya-page-cart .shoping__cart__table thead {
    display: none;
  }
  body.maya-page-cart .shoping__cart__table tbody tr[id],
  body.maya-page-cart .shoping__cart__table tbody tr[id] td {
    display: block;
    width: 100%;
  }
  body.maya-page-cart .shoping__cart__item > img {
    width: 78px;
    height: 78px;
  }
  body.maya-page-cart .shoping__cart__quantity,
  body.maya-page-cart .shoping__cart__total,
  body.maya-page-cart .shoping__cart__item__close {
    padding-top: 6px !important;
  }
}
