body.checkout,
body#checkout,
body[class*="checkout"],
.cart-page {
  --checkout-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 248, 241, 0.94));
  --checkout-surface-strong: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 238, 225, 0.97));
  --checkout-border: rgba(125, 104, 75, 0.18);
  --checkout-border-strong: rgba(34, 111, 101, 0.24);
  --checkout-shadow: 0 18px 48px -26px rgba(25, 39, 37, 0.34);
  --checkout-shadow-soft: 0 10px 32px -24px rgba(25, 39, 37, 0.28);
  --checkout-muted: #5d6a69;
  --checkout-text: #193131;
  --checkout-accent: #d97b2f;
  --checkout-accent-soft: rgba(217, 123, 47, 0.12);
  --checkout-primary: #1f7f74;
  --checkout-primary-strong: #16685f;
  --checkout-primary-soft: rgba(31, 127, 116, 0.1);
  --checkout-radius-lg: 28px;
  --checkout-radius-md: 20px;
  --checkout-radius-sm: 14px;
}

body.checkout,
body#checkout,
body[class*="checkout"] {
  background:
    radial-gradient(circle at top left, rgba(217, 123, 47, 0.12), transparent 26rem),
    radial-gradient(circle at top right, rgba(31, 127, 116, 0.12), transparent 22rem),
    linear-gradient(180deg, #fffdf8, #f6efe4 55%, #f4eee4);
}

.cart-page {
  background:
    radial-gradient(circle at top left, rgba(217, 123, 47, 0.12), transparent 28rem),
    radial-gradient(circle at top right, rgba(31, 127, 116, 0.12), transparent 24rem),
    linear-gradient(180deg, #fffdf8, #f6efe4 55%, #f4eee4);
  min-height: 100vh;
}

body.checkout .container.page.with-header-padding,
body#checkout .container.page.with-header-padding,
body[class*="checkout"] .container.page.with-header-padding,
.cart-page .container {
  max-width: 1220px;
  padding-inline: clamp(1rem, 3vw, 2rem);
  padding-bottom: 4rem;
}

body.checkout .container.page.with-header-padding,
body#checkout .container.page.with-header-padding,
body[class*="checkout"] .container.page.with-header-padding {
  padding-top: calc(var(--uniform-header-height, 72px) + clamp(1.1rem, 2vw, 1.65rem));
}

.cart-page .container {
  padding-top: calc(var(--uniform-header-height, 72px) + clamp(0.8rem, 1.4vw, 1.25rem));
}

body.checkout .page_inner,
body#checkout .page_inner,
body[class*="checkout"] .page_inner {
  position: relative;
}

body.checkout .page-header,
body#checkout .page-header,
body[class*="checkout"] .page-header,
.cart-page .page-header {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border: 1px solid var(--checkout-border);
  border-radius: var(--checkout-radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 239, 228, 0.94));
  box-shadow: var(--checkout-shadow);
}

body.checkout .page-header::before,
body#checkout .page-header::before,
body[class*="checkout"] .page-header::before,
.cart-page .page-header::before {
  content: "";
  position: absolute;
  inset: auto -5rem -6rem auto;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 123, 47, 0.18), transparent 68%);
  pointer-events: none;
}

body.checkout .page-header h1,
body#checkout .page-header h1,
body[class*="checkout"] .page-header h1,
.cart-page .page-header h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--checkout-text);
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.cart-summary,
.checkout-copy {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin: 0.85rem 0 0;
  color: var(--checkout-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.checkout-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  min-height: 4.5rem;
  border: 1px solid rgba(25, 49, 49, 0.08);
  border-radius: var(--checkout-radius-md);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--checkout-shadow-soft);
}

.checkout-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  border-radius: 999px;
  background: rgba(25, 49, 49, 0.08);
  color: var(--checkout-text);
  font-size: 0.9rem;
  font-weight: 700;
}

.checkout-step-text {
  display: grid;
  gap: 0.12rem;
}

.checkout-step-label {
  color: var(--checkout-text);
  font-size: 0.95rem;
  font-weight: 700;
}

.checkout-step-note {
  color: var(--checkout-muted);
  font-size: 0.85rem;
}

.checkout-step.is-current {
  border-color: rgba(31, 127, 116, 0.22);
  background: linear-gradient(135deg, rgba(31, 127, 116, 0.12), rgba(255, 255, 255, 0.96));
}

.checkout-step.is-current .checkout-step-index,
.checkout-step.is-complete .checkout-step-index {
  background: var(--checkout-primary);
  color: #fff;
}

.checkout-step.is-complete {
  background: linear-gradient(135deg, rgba(31, 127, 116, 0.08), rgba(255, 255, 255, 0.92));
}

.checkout-shell {
  display: grid;
  gap: 1.5rem;
}

.checkout-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.92fr);
  gap: 1.5rem;
  align-items: start;
}

.checkout-card,
.checkout-form-card,
.cart-items,
.coupon-section,
.cart-totals-simple,
.empty-cart,
body.checkout .shipping-payment .card,
body#checkout .shipping-payment .card,
body[class*="checkout"] .shipping-payment .card,
body.checkout .choose-block,
body#checkout .choose-block,
body[class*="checkout"] .choose-block,
body.checkout #new_shipping_address,
body.checkout #update_user_address,
body#checkout #new_shipping_address,
body#checkout #update_user_address,
body[class*="checkout"] #new_shipping_address,
body[class*="checkout"] #update_user_address,
body.checkout .content > form,
body#checkout .content > form,
body[class*="checkout"] .content > form {
  border: 1px solid var(--checkout-border);
  border-radius: var(--checkout-radius-lg);
  background: var(--checkout-surface);
  box-shadow: var(--checkout-shadow);
}

.checkout-card,
.checkout-form-card {
  padding: clamp(1.25rem, 2vw, 1.75rem);
}

.checkout-card + .checkout-card {
  margin-top: 1.25rem;
}

.checkout-panel-title,
.checkout-section-title {
  margin: 0;
  color: var(--checkout-text);
  font-size: 1.45rem;
  font-weight: 700;
}

.checkout-panel-copy,
.checkout-muted,
.checkout-note {
  color: var(--checkout-muted);
  line-height: 1.7;
}

.checkout-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.checkout-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--checkout-accent-soft);
  color: #8a4b17;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.checkout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.15rem;
}

.checkout-field-full {
  grid-column: 1 / -1;
}

.checkout-form-card .form-group,
body.checkout .form-group,
body#checkout .form-group,
body[class*="checkout"] .form-group {
  margin-bottom: 0;
}

.checkout-form-card label,
body.checkout label,
body#checkout label,
body[class*="checkout"] label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--checkout-text);
  font-size: 0.95rem;
  font-weight: 700;
}

.required-indicator {
  color: #be4d33;
  margin-left: 0.2rem;
}

.checkout-form-card .form-control,
body.checkout .form-control,
body#checkout .form-control,
body[class*="checkout"] .form-control,
.quantity-input,
.coupon-input {
  width: 100%;
  min-height: 3.2rem;
  border: 1px solid rgba(25, 49, 49, 0.14) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  color: var(--checkout-text);
  padding: 0.8rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.checkout-form-card select.form-control,
body.checkout select.form-control,
body#checkout select.form-control,
body[class*="checkout"] select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 3rem;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10' fill='none'%3E%3Cpath d='M2 2L8 8L14 2' stroke='%231f7f74' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: left top, right 1rem center;
  background-size: auto, 0.9rem;
  cursor: pointer;
  line-height: 1.35;
}

.checkout-form-card select.form-control:hover,
body.checkout select.form-control:hover,
body#checkout select.form-control:hover,
body[class*="checkout"] select.form-control:hover {
  border-color: rgba(31, 127, 116, 0.26) !important;
  background-color: rgba(255, 255, 255, 0.96) !important;
}

.checkout-form-card select.form-control::-ms-expand,
body.checkout select.form-control::-ms-expand,
body#checkout select.form-control::-ms-expand,
body[class*="checkout"] select.form-control::-ms-expand {
  display: none;
}

.checkout-form-card select.form-control option,
body.checkout select.form-control option,
body#checkout select.form-control option,
body[class*="checkout"] select.form-control option {
  color: var(--checkout-text);
  background: #fffdfa;
}

.checkout-city-combobox {
  position: relative;
}

.checkout-city-input,
.checkout-state-input {
  padding-right: 4rem !important;
}

.checkout-city-input[disabled] {
  cursor: not-allowed;
  opacity: 0.75;
}

.checkout-city-combobox__toggle {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(31, 127, 116, 0.12), rgba(217, 123, 47, 0.16));
  box-shadow: 0 10px 20px -16px rgba(25, 49, 49, 0.45);
  color: var(--checkout-primary);
  transform: translateY(-50%);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.checkout-city-combobox__toggle:hover,
.checkout-city-combobox__toggle:focus {
  background: linear-gradient(135deg, rgba(31, 127, 116, 0.18), rgba(217, 123, 47, 0.22));
  box-shadow: 0 14px 24px -18px rgba(25, 49, 49, 0.48);
  outline: none;
}

.checkout-city-combobox.is-open .checkout-city-combobox__toggle {
  transform: translateY(-50%) rotate(180deg);
}

.checkout-city-combobox__toggle-icon {
  width: 0.72rem;
  height: 0.72rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.checkout-city-combobox__panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  right: 0;
  z-index: 40;
  display: grid;
  gap: 0.65rem;
  padding: 0.7rem;
  border: 1px solid rgba(31, 127, 116, 0.14);
  border-radius: 22px;
  background: rgba(255, 250, 243, 0.96);
  box-shadow:
    0 28px 48px -30px rgba(25, 49, 49, 0.52),
    0 14px 28px -24px rgba(25, 49, 49, 0.34);
  backdrop-filter: blur(18px);
}

.checkout-city-combobox__status {
  padding-inline: 0.25rem;
  color: #7d6248;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.checkout-city-combobox__results {
  display: grid;
  gap: 0.45rem;
  max-height: 18rem;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.checkout-city-combobox__option,
.checkout-city-combobox__empty {
  width: 100%;
  padding: 0.82rem 0.95rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
}

.checkout-city-combobox__option {
  border: 1px solid transparent;
  color: var(--checkout-text);
  font-size: 0.98rem;
  font-weight: 600;
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.checkout-city-combobox__option:hover,
.checkout-city-combobox__option:focus,
.checkout-city-combobox__option.is-active {
  border-color: rgba(31, 127, 116, 0.16);
  background: linear-gradient(135deg, rgba(31, 127, 116, 0.12), rgba(255, 255, 255, 0.98));
  box-shadow: 0 14px 22px -20px rgba(25, 49, 49, 0.42);
  outline: none;
  transform: translateY(-1px);
}

.checkout-city-combobox__empty {
  color: var(--checkout-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.checkout-city-combobox__notice {
  margin-top: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(190, 77, 51, 0.16);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 243, 240, 0.96), rgba(255, 249, 243, 0.94));
  color: #8f3f30;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.55;
  box-shadow: 0 16px 26px -26px rgba(177, 78, 58, 0.7);
}

.checkout-city-combobox.has-blocked-city .checkout-city-input {
  border-color: rgba(190, 77, 51, 0.28) !important;
  box-shadow: 0 0 0 4px rgba(190, 77, 51, 0.08) !important;
}

.checkout-form-card .form-control:focus,
body.checkout .form-control:focus,
body#checkout .form-control:focus,
body[class*="checkout"] .form-control:focus,
.quantity-input:focus,
.coupon-input:focus {
  border-color: rgba(31, 127, 116, 0.34) !important;
  box-shadow: 0 0 0 4px rgba(31, 127, 116, 0.12) !important;
  outline: none;
}

.checkout-helptext,
.helptext,
.text-muted {
  display: block;
  margin-top: 0.35rem;
  color: var(--checkout-muted) !important;
  font-size: 0.86rem;
}

.errorlist,
.invalid-feedback,
.text-danger {
  margin: 0.4rem 0 0;
  list-style: none;
  color: #b14e3a !important;
  font-size: 0.88rem;
}

.checkout-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.checkout-actions .btn,
.cart-page .btn,
body.checkout .btn,
body#checkout .btn,
body[class*="checkout"] .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.checkout-actions .btn-primary,
body.checkout .btn-primary,
body.checkout .btn-success,
body.checkout .btn-info,
body#checkout .btn-primary,
body#checkout .btn-success,
body#checkout .btn-info,
body[class*="checkout"] .btn-primary,
body[class*="checkout"] .btn-success,
body[class*="checkout"] .btn-info,
.cart-page .btn-checkout,
.cart-page .coupon-input-group .btn-primary {
  background: linear-gradient(135deg, var(--checkout-primary), var(--checkout-primary-strong)) !important;
  border: 1px solid transparent !important;
  color: #fff !important;
  box-shadow: 0 16px 28px -20px rgba(31, 127, 116, 0.8) !important;
}

.checkout-actions .btn-primary:hover,
body.checkout .btn-primary:hover,
body.checkout .btn-success:hover,
body.checkout .btn-info:hover,
body#checkout .btn-primary:hover,
body#checkout .btn-success:hover,
body#checkout .btn-info:hover,
body[class*="checkout"] .btn-primary:hover,
body[class*="checkout"] .btn-success:hover,
body[class*="checkout"] .btn-info:hover,
.cart-page .btn-checkout:hover,
.cart-page .coupon-input-group .btn-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #20887b, #13564f) !important;
  box-shadow: 0 20px 32px -20px rgba(31, 127, 116, 0.7) !important;
}

.checkout-actions .btn-outline-primary,
.checkout-actions .btn-secondary,
body.checkout .btn-outline-primary,
body.checkout .btn-default,
body.checkout .btn-secondary,
body#checkout .btn-outline-primary,
body#checkout .btn-default,
body#checkout .btn-secondary,
body[class*="checkout"] .btn-outline-primary,
body[class*="checkout"] .btn-default,
body[class*="checkout"] .btn-secondary,
.cart-page .coupon-toggle {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(31, 127, 116, 0.22) !important;
  color: var(--checkout-primary) !important;
  box-shadow: none !important;
}

.checkout-actions .btn-outline-primary:hover,
.checkout-actions .btn-secondary:hover,
body.checkout .btn-outline-primary:hover,
body.checkout .btn-default:hover,
body.checkout .btn-secondary:hover,
body#checkout .btn-outline-primary:hover,
body#checkout .btn-default:hover,
body#checkout .btn-secondary:hover,
body[class*="checkout"] .btn-outline-primary:hover,
body[class*="checkout"] .btn-default:hover,
body[class*="checkout"] .btn-secondary:hover,
.cart-page .coupon-toggle:hover {
  transform: translateY(-1px);
  background: rgba(31, 127, 116, 0.08) !important;
  border-color: rgba(31, 127, 116, 0.34) !important;
  color: var(--checkout-primary-strong) !important;
}

.checkout-saved-addresses,
.checkout-choice-list {
  display: grid;
  gap: 1rem;
}

.checkout-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 1.05rem 1.15rem;
  border: 1px solid rgba(25, 49, 49, 0.12);
  border-radius: var(--checkout-radius-md);
  background: rgba(255, 255, 255, 0.82);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.checkout-choice:hover {
  border-color: rgba(31, 127, 116, 0.28);
  box-shadow: 0 16px 30px -26px rgba(31, 127, 116, 0.58);
  transform: translateY(-1px);
}

.checkout-choice input[type="radio"] {
  margin-top: 0.25rem;
  accent-color: var(--checkout-primary);
  width: 1.1rem;
  height: 1.1rem;
}

.checkout-choice-copy {
  display: grid;
  gap: 0.22rem;
}

.checkout-choice-title {
  color: var(--checkout-text);
  font-size: 1rem;
  font-weight: 700;
}

.checkout-choice-meta {
  color: var(--checkout-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.checkout-choice-value {
  color: var(--checkout-text);
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

.checkout-address-lines {
  display: grid;
  gap: 0.18rem;
  color: var(--checkout-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.checkout-summary-box {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 7rem;
}

.checkout-summary-box .checkout-card {
  margin: 0;
}

.checkout-summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(25, 49, 49, 0.08);
}

.checkout-summary-row:last-child {
  border-bottom: 0;
}

.checkout-summary-row strong {
  color: var(--checkout-text);
}

.checkout-trust-list,
.checkout-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checkout-trust-list li,
.checkout-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--checkout-muted);
  line-height: 1.6;
}

.checkout-trust-list li::before,
.checkout-list li::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--checkout-accent);
}

.cart-content {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(300px, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}

.checkout-sidebar-stack {
  display: grid;
  gap: 1.25rem;
  position: sticky;
  top: 7rem;
}

.cart-items {
  overflow: hidden;
}

.cart-items-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.6rem;
  border-bottom: 1px solid rgba(25, 49, 49, 0.08);
  background: linear-gradient(135deg, rgba(245, 236, 220, 0.88), rgba(255, 255, 255, 0.7));
}

.cart-items-header h2,
.coupon-section h3,
.cart-totals-simple h3 {
  margin: 0;
  color: var(--checkout-text);
  font-size: 1.35rem;
  font-weight: 700;
}

.cart-items-list {
  display: grid;
}

.cart-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(220px, 0.8fr) auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.45rem 1.6rem;
  border-bottom: 1px solid rgba(25, 49, 49, 0.08);
}

.cart-item:last-child {
  border-bottom: 0;
}

.cart-item-image {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(25, 49, 49, 0.08);
  background: rgba(255, 255, 255, 0.85);
}

.cart-item-image img,
.cart-item-image .no-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-image .no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(25, 49, 49, 0.45);
}

.cart-item-details {
  min-width: 0;
}

.cart-item-title {
  margin: 0 0 0.4rem;
}

.cart-item-title a {
  color: var(--checkout-text);
  font-size: 1.18rem;
  font-weight: 700;
}

.cart-item-title a:hover {
  color: var(--checkout-primary);
}

.cart-item-price .price {
  color: var(--checkout-primary);
  font-size: 1rem;
  font-weight: 700;
}

.cart-item-quantity {
  display: grid;
  gap: 0.55rem;
  justify-items: start;
}

.cart-page .pdp-qty-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.cart-page .pdp-qty-row label {
  margin: 0;
  color: #4f5f6e;
  font-size: 0.92rem;
  font-weight: 500;
}

.cart-page .pdp-qty-selector {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #d6dde5;
  border-radius: 999px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.cart-page .pdp-qty-selector:focus-within {
  border-color: #c8d3dd;
  box-shadow: 0 0 0 3px rgba(67, 87, 104, 0.08);
}

.cart-page .pdp-qty-btn {
  width: 38px;
  height: 36px;
  background: #fff;
  border: 0;
  color: #435768;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.18s ease;
}

.cart-page .pdp-qty-btn:hover {
  background: #f5f7f9;
  color: #0d2a42;
}

.cart-page .pdp-qty-btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(67, 87, 104, 0.16);
}

.cart-page .pdp-qty-minus {
  border-right: 1px solid #d6dde5;
}

.cart-page .pdp-qty-plus {
  border-left: 1px solid #d6dde5;
}

.cart-page .pdp-qty-btn:disabled {
  cursor: not-allowed;
  color: #a3afba;
  background: #fff;
}

.cart-page .pdp-qty-row input[type="number"] {
  width: 50px;
  height: 36px;
  min-height: auto;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #0d2a42;
  font-size: 0.96rem;
  font-weight: 600;
  text-align: center;
}

.cart-page .pdp-qty-row input[type="number"]::-webkit-outer-spin-button,
.cart-page .pdp-qty-row input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.cart-page .pdp-qty-row input[type="number"] {
  -moz-appearance: textfield;
}

.cart-item-quantity.is-updating .pdp-qty-selector {
  opacity: 0.7;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.remove-link {
  padding: 0;
  border: 0;
  background: none;
  color: #b85d31;
  font-size: 0.92rem;
  font-weight: 700;
}

.remove-link:hover {
  color: #9c461f;
  text-decoration: underline;
}

.cart-item-total {
  display: grid;
  gap: 0.2rem;
  justify-self: end;
  justify-items: end;
}

.item-total-label {
  color: var(--checkout-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.item-total {
  color: var(--checkout-text);
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
}

.coupon-section,
.cart-totals-simple {
  padding: 1.35rem 1.45rem;
}

.coupon-form {
  margin: 0;
}

.coupon-toggle {
  width: 100%;
}

.coupon-input-group {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.95rem;
}

.coupon-input {
  flex: 1 1 auto;
  min-width: 0;
}

.coupon-input-group .btn-primary {
  min-width: 9rem;
}

.cart-totals-simple {
  align-self: start;
}

.totals-list {
  display: grid;
  gap: 0.2rem;
}

.total-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.82rem 0;
}

.total-label {
  color: var(--checkout-muted);
  font-size: 0.96rem;
}

.total-amount {
  color: var(--checkout-text);
  font-size: 1rem;
  font-weight: 700;
  text-align: right;
}

.total-divider {
  margin: 0.2rem 0;
  border: 0;
  border-top: 1px solid rgba(25, 49, 49, 0.08);
}

.final-total .total-label,
.final-total .total-amount {
  color: var(--checkout-text);
  font-size: 1.08rem;
  font-weight: 800;
}

.checkout-section {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(25, 49, 49, 0.08);
}

.btn-checkout {
  width: 100%;
}

.empty-cart {
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.empty-cart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--checkout-primary-soft);
  color: var(--checkout-primary);
}

.empty-cart h2 {
  margin: 0 0 0.55rem;
  color: var(--checkout-text);
  font-size: 1.8rem;
}

.empty-cart p {
  max-width: 32rem;
  margin: 0.55rem auto 0;
  color: var(--checkout-muted);
}

.empty-cart .btn-hero {
  margin-top: 1rem;
  color: #fff !important;
}

.empty-cart .btn-hero:hover,
.empty-cart .btn-hero:focus,
.empty-cart .btn-hero:active,
.empty-cart .btn-hero:visited {
  color: #fff !important;
}

body.checkout .row,
body#checkout .row,
body[class*="checkout"] .row {
  row-gap: 1.5rem;
}

body.checkout .row > .col-md-3:empty,
body#checkout .row > .col-md-3:empty,
body[class*="checkout"] .row > .col-md-3:empty {
  display: none;
}

body.checkout .row > .col-md-3:empty + .col-md-9,
body#checkout .row > .col-md-3:empty + .col-md-9,
body[class*="checkout"] .row > .col-md-3:empty + .col-md-9 {
  flex: 0 0 100%;
  max-width: 100%;
}

body.checkout .nav-checkout,
body#checkout .nav-checkout,
body[class*="checkout"] .nav-checkout {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

body.checkout .nav-checkout .nav-item,
body#checkout .nav-checkout .nav-item,
body[class*="checkout"] .nav-checkout .nav-item {
  margin: 0 !important;
}

body.checkout .nav-checkout .nav-link,
body.checkout .nav-checkout .navbar-text,
body#checkout .nav-checkout .nav-link,
body#checkout .nav-checkout .navbar-text,
body[class*="checkout"] .nav-checkout .nav-link,
body[class*="checkout"] .nav-checkout .navbar-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.1rem;
  border: 1px solid rgba(25, 49, 49, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--checkout-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

body.checkout .nav-checkout .active .navbar-text,
body#checkout .nav-checkout .active .navbar-text,
body[class*="checkout"] .nav-checkout .active .navbar-text {
  background: linear-gradient(135deg, var(--checkout-primary), var(--checkout-primary-strong));
  border-color: transparent;
  color: #fff;
}

body.checkout .choose-block,
body#checkout .choose-block,
body[class*="checkout"] .choose-block {
  padding: 1rem;
}

body.checkout .shipping-payment,
body#checkout .shipping-payment,
body[class*="checkout"] .shipping-payment {
  display: grid;
  gap: 1rem;
}

body.checkout .shipping-payment .card,
body#checkout .shipping-payment .card,
body[class*="checkout"] .shipping-payment .card {
  padding: 1.15rem 1.25rem;
}

body.checkout .shipping-payment .card h3,
body#checkout .shipping-payment .card h3,
body[class*="checkout"] .shipping-payment .card h3 {
  margin-bottom: 0.4rem;
  color: var(--checkout-text);
  font-size: 1.08rem;
}

body.checkout #basket_totals,
body#checkout #basket_totals,
body[class*="checkout"] #basket_totals {
  overflow: hidden;
  margin-top: 1rem;
  border: 1px solid var(--checkout-border);
  border-radius: var(--checkout-radius-md);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--checkout-shadow-soft);
}

body.checkout #basket_totals th,
body.checkout #basket_totals td,
body#checkout #basket_totals th,
body#checkout #basket_totals td,
body[class*="checkout"] #basket_totals th,
body[class*="checkout"] #basket_totals td {
  padding: 1rem 1.15rem;
  border-color: rgba(25, 49, 49, 0.08);
  background: transparent;
  color: var(--checkout-text);
}

body.checkout #basket_totals thead th,
body.checkout #basket_totals tr.total td,
body#checkout #basket_totals thead th,
body#checkout #basket_totals tr.total td,
body[class*="checkout"] #basket_totals thead th,
body[class*="checkout"] #basket_totals tr.total td {
  background: rgba(246, 238, 225, 0.76);
}

body.checkout .alert,
body#checkout .alert,
body[class*="checkout"] .alert {
  border: 1px solid rgba(190, 77, 51, 0.16);
  border-radius: var(--checkout-radius-sm);
  box-shadow: none;
}

@media (max-width: 1023px) {
  .cart-content,
  .checkout-main-grid {
    grid-template-columns: 1fr;
  }

  .checkout-summary-box,
  .checkout-sidebar-stack {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .checkout-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .checkout-city-combobox__panel {
    left: -0.1rem;
    right: -0.1rem;
  }

  .checkout-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .checkout-actions .btn {
    width: 100%;
  }

  .cart-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 1rem;
  }

  .cart-item-quantity,
  .cart-item-total {
    grid-column: 1 / -1;
  }

  .cart-item-total {
    justify-self: start;
    justify-items: start;
  }

  .cart-page .pdp-qty-row {
    flex-wrap: wrap;
  }

  .coupon-input-group {
    flex-direction: column;
    align-items: stretch;
  }

  .coupon-input-group .btn-primary {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  body.checkout .page-header,
  body#checkout .page-header,
  body[class*="checkout"] .page-header,
  .cart-page .page-header,
  .checkout-card,
  .checkout-form-card,
  .cart-items,
  .coupon-section,
  .cart-totals-simple,
  .empty-cart {
    border-radius: 22px;
  }

  .checkout-stepper {
    grid-template-columns: 1fr;
  }

  .cart-item {
    padding-inline: 1.15rem;
  }

  .cart-items-header,
  .coupon-section,
  .cart-totals-simple {
    padding-inline: 1.15rem;
  }

  .cart-page .pdp-qty-selector {
    max-width: 100%;
  }
}
