/* ═══════════════════════════════════════════════════════
   HIMOTHY — Cart: Sidebar + Cart Page
   ═══════════════════════════════════════════════════════ */

/* ─── CART COUNT BADGE ───────────────────────────────── */

.cart-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-count-badge {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 16px;
  height: 16px;
  background: #1d1d1d;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  pointer-events: none;
}

/* ─── OVERLAY ────────────────────────────────────────── */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 11, 0.45);
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.34s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.34s linear;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.34s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear;
}

/* ─── SIDEBAR SHELL ──────────────────────────────────── */

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 100vw;
  background: #ffffff;
  z-index: 501;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -4px 0 32px rgba(11, 11, 11, 0.12);
}

.cart-sidebar.open {
  transform: translateX(0);
}

body.cart-open {
  overflow: hidden;
}

/* ─── SIDEBAR HEADER ─────────────────────────────────── */

.cart-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 18px;
  border-bottom: 1px solid rgba(11, 11, 11, 0.09);
  flex-shrink: 0;
}

.cart-sidebar-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  letter-spacing: 0.03em;
}

.cart-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--black);
  border-radius: 50%;
  transition: background 0.18s ease;
}

.cart-close:hover {
  background: rgba(11, 11, 11, 0.06);
}

/* ─── SIDEBAR BODY ───────────────────────────────────── */

.cart-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 11, 11, 0.15) transparent;
}

.cart-sidebar-body::-webkit-scrollbar {
  width: 4px;
}

.cart-sidebar-body::-webkit-scrollbar-track {
  background: transparent;
}

.cart-sidebar-body::-webkit-scrollbar-thumb {
  background: rgba(11, 11, 11, 0.15);
  border-radius: 2px;
}

/* ─── CART ITEM ──────────────────────────────────────── */

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(11, 11, 11, 0.07);
}

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

.cart-item-img-link {
  display: contents;
  text-decoration: none;
}

.cart-item-name-link {
  text-decoration: none;
  color: inherit;
}

.cart-item-name-link:hover .cart-item-name,
.cart-item-name-link:hover .cart-page-item-name {
  text-decoration: underline;
}

.cart-item-img {
  width: 76px;
  height: 96px;
  object-fit: cover;
  border-radius: 2px;
  background: #f5f5f5;
  flex-shrink: 0;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.cart-item-name {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.cart-item-unit-price {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--black);
  line-height: 1.4;
}

.cart-item-meta {
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: rgba(11, 11, 11, 0.52);
  line-height: 1.4;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(11, 11, 11, 0.2);
  border-radius: 2px;
  width: fit-content;
  margin-top: 10px;
}

.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0;
  min-height: 96px;
}

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(11, 11, 11, 0.35);
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 2px;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.cart-item-remove:hover {
  color: var(--black);
  background: rgba(11, 11, 11, 0.05);
}

.cart-item-price {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  white-space: nowrap;
}

/* ─── QTY BUTTONS (shared sidebar + page) ───────────── */

.qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 17px;
  color: var(--black);
  line-height: 1;
  transition: background 0.14s ease;
  flex-shrink: 0;
}

.qty-btn:hover {
  background: rgba(11, 11, 11, 0.05);
}

.qty-value {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--black);
  min-width: 24px;
  text-align: center;
  line-height: 28px;
  display: block;
}

/* ─── SIDEBAR FOOTER ─────────────────────────────────── */

.cart-sidebar-footer {
  flex-direction: column;
  gap: 0;
  padding: 0;
  border-top: 1px solid rgba(11, 11, 11, 0.09);
  flex-shrink: 0;
}

/* Promo section */

.cart-promo {
  border-bottom: 1px solid rgba(11, 11, 11, 0.09);
}

.cart-promo-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--black);
  text-align: left;
}

.promo-chevron {
  color: var(--black);
  flex-shrink: 0;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-promo-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 24px;
}

.cart-promo-body.open {
  max-height: 80px;
  padding-bottom: 14px;
}

.promo-input-row {
  display: flex;
  gap: 8px;
}

.promo-input {
  flex: 1;
  height: 36px;
  border: 1px solid rgba(11, 11, 11, 0.22);
  border-radius: 2px;
  padding: 0 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--black);
  outline: none;
  background: #fff;
}

.promo-input:focus {
  border-color: #1d1d1d;
}

.promo-apply-btn {
  height: 36px;
  padding: 0 16px;
  background: var(--black);
  color: #fff;
  border: none;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.18s ease;
}

.promo-apply-btn:hover {
  opacity: 0.82;
}

/* Total row */

.cart-sidebar-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 14px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--black);
}

/* Checkout + View Cart buttons */

.cart-checkout-btn {
  display: block;
  width: calc(100% - 48px);
  margin: 0 24px 10px;
  padding: 14px 0;
  background: #111;
  color: #fff;
  border: 1.5px solid #111;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.cart-checkout-btn:hover {
  background: transparent;
  color: #111;
  border-color: #111;
}

.cart-view-btn {
  display: block;
  width: calc(100% - 48px);
  margin: 0 24px 12px;
  padding: 12px 0;
  background: transparent;
  color: var(--black);
  border: 1.5px solid rgba(11, 11, 11, 0.28);
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}

.cart-view-btn:hover {
  border-color: var(--black);
  background: rgba(11, 11, 11, 0.04);
}

.cart-secure-text {
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: rgba(11, 11, 11, 0.45);
  text-align: center;
  padding: 0 24px 16px;
  letter-spacing: 0.02em;
}

.cart-policy-links {
  font-family: var(--font-sans);
  font-size: 11px;
  color: rgba(11, 11, 11, 0.45);
  text-align: center;
  padding: 0 24px 16px;
  line-height: 1.5;
}

.cart-policy-links a {
  color: rgba(11, 11, 11, 0.75);
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.cart-policy-links a::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #282828;
  transition: width 0.28s ease;
}

.cart-policy-links a:hover::after {
  width: 100%;
}

/* ─── EMPTY STATE ────────────────────────────────────── */

.cart-empty-msg {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: rgba(11, 11, 11, 0.45);
  padding: 40px 0 20px;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════
   CART PAGE
   ═══════════════════════════════════════════════════════ */

/* ─── CART PAGE MAIN ─────────────────────────────────── */

.cart-page-main {
  --font-sans: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  padding: 36px var(--section-px) 80px;
  background: var(--white);
  min-height: 72vh;
}

.cart-page-heading {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 400;
  color: var(--black);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.cart-page-count {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(11, 11, 11, 0.45);
  margin-bottom: 32px;
  letter-spacing: 0.01em;
}

/* ─── CART PAGE LAYOUT ───────────────────────────────── */

.cart-page-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

/* ─── CART PAGE ITEMS ────────────────────────────────── */

.cart-page-items-section {
  display: flex;
  flex-direction: column;
}

.cart-page-items-header {
  display: grid;
  grid-template-columns: 96px 1fr auto auto;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid rgba(11, 11, 11, 0.12);
  margin-bottom: 4px;
  align-items: center;
}

.cart-page-items-header span:nth-child(3) {
  justify-self: center;
}

.cart-page-items-header span:nth-child(4) {
  justify-self: end;
  min-width: 100px;
}

.cart-page-items-header span {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  color: rgba(11, 11, 11, 0.45);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

#cartPageItems {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(11, 11, 11, 0.07);
}

.cart-page-item {
  display: grid;
  grid-template-columns: 96px 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  /* border-bottom: 1px solid rgba(11, 11, 11, 0.07); */
}

.cart-page-img {
  width: 96px;
  height: 120px;
  object-fit: cover;
  border-radius: 2px;
  background: #f5f5f5;
  flex-shrink: 0;
}

.cart-page-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-page-item-name {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.cart-page-item-unit-price {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--black);
  line-height: 1.4;
}

.cart-page-item-meta {
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(11, 11, 11, 0.5);
  line-height: 1.5;
}

.cart-page-qty {
  display: flex;
  align-items: center;
  border: 1px solid rgba(11, 11, 11, 0.2);
  border-radius: 2px;
  width: fit-content;
  justify-self: center;
}

.cart-page-item-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  justify-self: end;
  min-width: 100px;
}

.cart-page-item-price {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--black);
  white-space: nowrap;
}

.cart-page-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(11, 11, 11, 0.35);
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 2px;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.cart-page-remove:hover {
  color: var(--black);
  background: rgba(11, 11, 11, 0.05);
}

/* ─── CART PAGE EXTRAS (Promo + Note) ───────────────── */

.cart-page-extras {
  max-width: 400px;
  margin-top: 8px;
  /* border-top: 1px solid rgba(11, 11, 11, 0.09); */
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cart-extra-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 14px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  color: #1d1d1d;
  text-align: left;
  letter-spacing: 0.01em;
  transition: opacity 0.15s ease;
}

.cart-extra-toggle:hover {
  opacity: 0.75;
}

.extra-toggle-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #1d1d1d;
}

.extra-chevron {
  display: none;
}

.cart-extra-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-extra-body.open {
  max-height: 120px;
}

.cart-extra-inner {
  padding: 4px 0 16px;
}

.cart-note-textarea {
  width: 100%;
  min-height: 72px;
  border: 1px solid rgba(11, 11, 11, 0.22);
  border-radius: 2px;
  padding: 10px 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--black);
  resize: vertical;
  outline: none;
  background: #fff;
  box-sizing: border-box;
}

.cart-note-textarea:focus {
  border-color: #1d1d1d;
}

/* ─── ORDER SUMMARY ──────────────────────────────────── */

.cart-order-summary {
  background: #fafafa;
  border: 1px solid rgba(11, 11, 11, 0.08);
  border-radius: 4px;
  padding: 24px;
  position: sticky;
  top: calc(var(--top-bar-h) + 24px);
}

.cart-summary-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cart-summary-label {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(11, 11, 11, 0.6);
}

.cart-summary-value {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--black);
}

.cart-summary-value--free {
  color: #2a7a2a;
  font-weight: 500;
}

.cart-summary-delivery-note {
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: rgba(11, 11, 11, 0.42);
  margin-top: -8px;
  margin-bottom: 12px;
  padding-left: 0;
}

.cart-summary-divider {
  border: none;
  border-top: 1px solid rgba(11, 11, 11, 0.1);
  margin: 14px 0 16px;
}

.cart-summary-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.cart-summary-total-label {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
}

.cart-summary-total-value {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
}

.cart-page-checkout-btn {
  display: block;
  width: 100%;
  padding: 15px 0;
  background: #111;
  color: #fff;
  border: 1.5px solid #111;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
  margin-bottom: 14px;
}

.cart-page-checkout-btn:hover {
  background: transparent;
  color: #111;
  border-color: #111;
}

.cart-page-secure {
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(11, 11, 11, 0.45);
  text-align: center;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.cart-page-policy-links {
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(11, 11, 11, 0.45);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 16px;
}

.cart-page-policy-links a {
  color: rgba(11, 11, 11, 0.75);
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.cart-page-policy-links a::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #282828;
  transition: width 0.28s ease;
}

.cart-page-policy-links a:hover::after {
  width: 100%;
}

.cart-continue-link {
  display: block;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: rgba(11, 11, 11, 0.55);
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.cart-continue-link:hover {
  color: var(--black);
}

/* ─── EMPTY CART PAGE ────────────────────────────────── */

.cart-empty-state {
  padding: 60px 0;
  text-align: center;
}

.cart-empty-link {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 28px;
  background: var(--black);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: opacity 0.18s ease;
}

.cart-empty-link:hover {
  opacity: 0.82;
}

/* mobile price label — hidden on desktop, shown only inside @media block */

.cart-page-item-price-mobile {
  display: none;
}

/* ─── RESPONSIVE ─────────────────────────────────────── */

@media (max-width: 900px) {
  .cart-page-layout {
    grid-template-columns: 1fr;
  }
  .cart-order-summary {
    position: static;
  }
  .cart-sidebar {
    width: 340px;
  }
}

@media (max-width: 600px) {
  .cart-page-main {
    padding: 24px 16px 60px;
  }
  .cart-page-items-header {
    display: none;
  }
  /* ── Cart page item: reference mobile layout ── */
  /* Row 1: [image] [info]        [delete]         */
  /* Row 2: [image] [qty] [price right-aligned]    */
  .cart-page-item {
    grid-template-columns: 72px 1fr auto;
    grid-template-rows: auto auto;
    gap: 0 12px;
    align-items: start;
    padding: 18px 0;
  }
  /* image spans both rows */
  .cart-page-item .cart-item-img-link {
    grid-column: 1;
    grid-row: 1 / 3;
    display: block;
  }
  /* info in row 1 col 2 */
  .cart-page-item .cart-page-item-info {
    grid-column: 2;
    grid-row: 1;
    padding-bottom: 10px;
  }
  /* delete in row 1 col 3 */
  .cart-page-item .cart-page-item-right {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
    min-width: unset;
    flex-direction: row;
    align-items: center;
    gap: 0;
  }
  /* hide desktop price inside right col on mobile — shown in row 2 instead */
  .cart-page-item .cart-page-item-right .cart-page-item-price {
    display: none;
  }
  /* row 2: qty stepper col 2, price col 3 */
  .cart-page-item .cart-page-qty {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }
  /* mobile price label — separate element shown only on mobile */
  .cart-page-item-price-mobile {
    display: block;
    grid-column: 3;
    grid-row: 2;
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--black);
    white-space: nowrap;
    align-self: center;
    justify-self: end;
  }
  .cart-page-img {
    width: 72px;
    height: 90px;
  }
  /* ── Sidebar item on mobile ── */
  .cart-sidebar {
    width: 100vw;
  }
  .cart-item {
    grid-template-columns: 72px 1fr auto;
    gap: 0 12px;
    align-items: start;
  }
  .cart-item .cart-item-img-link {
    display: block;
  }
  .cart-item-img {
    width: 72px;
    height: 90px;
  }
}

/* ─── COUPON / PROMO STYLES ──────────────────────────── */

/* Shared input row */

.coupon-box {
  margin-bottom: 16px;
}

.coupon-input-row {
  display: flex;
  gap: 0;
  border: 1px solid rgba(11, 11, 11, 0.18);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.18s ease;
}

.coupon-input-row:focus-within {
  border-color: #111;
}

.coupon-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: #fff;
}

.coupon-tag-icon {
  color: #999;
  flex-shrink: 0;
}

.coupon-input {
  flex: 1;
  height: 40px;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--black);
  background: transparent;
  text-transform: uppercase;
}

.coupon-input::placeholder {
  text-transform: none;
  color: #aaa;
  letter-spacing: 0;
}

.coupon-apply-btn {
  height: 40px;
  padding: 0 18px;
  background: #111;
  color: #fff;
  border: none;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.18s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.coupon-apply-btn:hover:not(:disabled) {
  opacity: 0.82;
}

.coupon-apply-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.coupon-error {
  margin: 7px 0 0;
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: #d0021b;
}

/* Applied coupon pill */

.coupon-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f0faf2;
  border: 1px solid #b6dfc0;
  border-radius: 3px;
  margin-bottom: 16px;
}

.coupon-applied-left {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #1e7e34;
}

.coupon-applied-code {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1e7e34;
}

.coupon-applied-savings {
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: #1e7e34;
  background: rgba(30, 126, 52, 0.1);
  padding: 2px 8px;
  border-radius: 20px;
}

.coupon-remove-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 11px;
  color: #999;
  cursor: pointer;
  padding: 2px 4px;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.coupon-remove-btn:hover {
  color: #111;
}

/* Sidebar-specific sizing */

.coupon-box--sidebar .coupon-input {
  height: 36px;
  font-size: 11.5px;
}

.coupon-apply-btn {
  height: 40px;
}

.coupon-box--sidebar .coupon-apply-btn {
  height: 36px;
  padding: 0 14px;
  font-size: 10.5px;
}

.coupon-applied--sidebar {
  margin: 0 24px 4px;
  padding: 8px 12px;
}

/* Sidebar coupon wrapper */

.coupon-section-sidebar {
  padding: 14px 24px 0;
  border-top: 1px solid rgba(11, 11, 11, 0.07);
}

/* Sidebar discount rows */

.cart-sidebar-total-row--sub {
  padding-top: 10px;
  padding-bottom: 2px;
  font-size: 12.5px;
  color: #888;
  font-weight: 400;
}

.cart-sidebar-total-row--discount {
  padding-top: 2px;
  padding-bottom: 2px;
  font-size: 12.5px;
  color: #1e7e34;
  font-weight: 500;
}

/* Cart page coupon section */

.cart-page-coupon-section {
  margin-bottom: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(11, 11, 11, 0.08);
}

/* Cart page discount row */

.cart-summary-row--discount .cart-summary-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-summary-coupon-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  background: #f0faf2;
  color: #1e7e34;
  border: 1px solid #b6dfc0;
  padding: 1px 7px;
  border-radius: 20px;
}

.cart-summary-value--discount {
  color: #1e7e34 !important;
  font-weight: 500;
}
