/* ------------------------------------------------------------------
   Lux Peptides cart drawer

   Sizes in px, matching the header and footer plugins: the reference
   Shopify theme assumes a 10px root while WordPress uses 16px.
   ------------------------------------------------------------------ */

.luxc-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(21, 21, 21, .4);
  opacity: 0;
  transition: opacity .35s ease;
}

.luxc-backdrop.is-open { opacity: 1; }
.luxc-backdrop[hidden] { display: none !important; }

.luxc {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100001;
  width: min(440px, 100vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--color-background, #fbfaf6);
  color: #151515;
  box-shadow: -8px 0 40px rgba(0, 0, 0, .1);
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
  font-family: var(--font-base, inherit);
}

.luxc.is-open { transform: translateX(0); }
.luxc[hidden] { display: none !important; }

body.luxc-locked { overflow: hidden; }

/* --- Head ---------------------------------------------------------- */

.luxc__head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(21, 21, 21, .1);
}

.luxc__title {
  margin: 0;
  font-family: var(--font-headline, inherit);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.luxc__close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
  transition: transform .25s ease;
}

.luxc__close:hover { transform: rotate(90deg); }
.luxc__close svg { width: 20px; height: 20px; }

/* --- Body ---------------------------------------------------------- */

.luxc__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.luxc__empty {
  flex: 1;
  display: grid;
  place-content: center;
  gap: 16px;
  padding: 40px 24px;
  text-align: center;
}

.luxc__shop {
  color: #151515;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-underline-offset: 4px;
}

/* --- Free shipping progress ----------------------------------------- */

.luxc__progress { padding: 18px 24px 14px; }

.luxc__progress-text {
  margin: 0 0 10px;
  font-size: 15px;
}

.luxc__bar {
  height: 3px;
  background: rgba(21, 21, 21, .12);
  border-radius: 999px;
  overflow: hidden;
}

.luxc__bar span {
  display: block;
  height: 100%;
  background: #151515;
  border-radius: 999px;
  transition: width .4s cubic-bezier(.16, 1, .3, 1);
}

/* --- Items ---------------------------------------------------------- */

.luxc__items {
  margin: 0;
  padding: 0 24px;
  list-style: none;
}

.luxc-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(21, 21, 21, .08);
  list-style: none;
}

.luxc-item__media {
  flex: 0 0 68px;
  width: 68px;
  line-height: 0;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}

.luxc-item__media img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

.luxc-item__info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.luxc-item__name {
  color: #151515;
  font-size: 15px;
  text-decoration: none;
  line-height: 1.3;
}

.luxc-item__meta {
  font-size: 13px;
  color: #6b6b6b;
}

.luxc-item__meta p { margin: 0; }

.luxc-item__row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.luxc-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(21, 21, 21, .18);
  border-radius: 999px;
  overflow: hidden;
}

.luxc-qty__btn {
  width: 30px;
  height: 32px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  padding: 0;
  color: #151515;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease;
}

.luxc-qty__btn:hover { background: rgba(21, 21, 21, .06); }

.luxc-qty__num {
  min-width: 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.luxc-item__remove {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  padding: 0;
  color: #6b6b6b;
  cursor: pointer;
  transition: color .2s ease;
}

.luxc-item__remove:hover { color: #870b27; }
.luxc-item__remove svg { width: 17px; height: 17px; }

.luxc-item__price {
  margin-left: auto;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

/* --- Cross-sells ---------------------------------------------------- */

.luxc-cross {
  border-top: 1px solid rgba(21, 21, 21, .1);
  background: rgba(21, 21, 21, .02);
}

.luxc-cross__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 24px;
  background: none;
  border: 0;
  color: #151515;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
}

.luxc-cross__head svg {
  width: 18px;
  height: 18px;
  transition: transform .25s ease;
}

.luxc-cross__head[aria-expanded="false"] svg { transform: rotate(-90deg); }

.luxc-cross__list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 24px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.luxc-cross__list::-webkit-scrollbar { display: none; }

.luxc-cross__item {
  flex: 0 0 78%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(21, 21, 21, .08);
  border-radius: 6px;
  scroll-snap-align: start;
}

.luxc-cross__media {
  flex: 0 0 54px;
  width: 54px;
  line-height: 0;
}

.luxc-cross__media img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

.luxc-cross__info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.luxc-cross__name {
  color: #151515;
  font-size: 14px;
  text-decoration: none;
  line-height: 1.3;
}

.luxc-cross__price { font-size: 14px; font-weight: 600; }

.luxc-cross__add {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid rgba(21, 21, 21, .18);
  border-radius: 6px;
  color: #151515;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}

.luxc-cross__add:hover { background: #151515; color: #fff; }
.luxc-cross__add svg { width: 18px; height: 18px; }
.luxc-cross__add[disabled] { opacity: .5; pointer-events: none; }

/* --- Checkboxes ------------------------------------------------------ */

.luxc-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.4;
}

.luxc-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #151515;
  cursor: pointer;
}

.luxc-check--addon {
  padding: 16px 24px;
  border-top: 1px solid rgba(21, 21, 21, .1);
}

/* --- Tools ----------------------------------------------------------- */

.luxc__tools {
  display: flex;
  border-top: 1px solid rgba(21, 21, 21, .1);
  border-bottom: 1px solid rgba(21, 21, 21, .1);
}

.luxc__tool {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 10px;
  background: none;
  border: 0;
  color: #151515;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background-color .2s ease;
}

.luxc__tool + .luxc__tool { border-left: 1px solid rgba(21, 21, 21, .1); }
.luxc__tool:hover { background: rgba(21, 21, 21, .04); }
.luxc__tool svg { width: 17px; height: 17px; }

.luxc__panel { padding: 16px 24px; }
.luxc__panel[hidden] { display: none !important; }

.luxc__note,
.luxc__coupon {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid rgba(21, 21, 21, .18);
  border-radius: 4px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  color: #151515;
}

.luxc__note { resize: vertical; }

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

.luxc__panel-save {
  flex: 0 0 auto;
  margin-top: 10px;
  padding: 11px 22px;
  background: #151515;
  color: #fff;
  border: 1px solid #151515;
  border-radius: 4px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}

.luxc__coupon-row .luxc__panel-save { margin-top: 0; }
.luxc__panel-save:hover { background: #fff; color: #151515; }

.luxc__coupons { margin: 0 0 10px; padding: 0; list-style: none; }

.luxc__coupons li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  list-style: none;
}

.luxc__coupons button {
  background: none;
  border: 0;
  padding: 0;
  color: #870b27;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.luxc__msg { margin: 10px 0 0; font-size: 13px; }
.luxc__msg.is-error { color: #870b27; }
.luxc__msg.is-ok { color: #2f6b3f; }

/* --- Agreement -------------------------------------------------------- */

.luxc__agree {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 24px;
  border-top: 1px solid rgba(21, 21, 21, .1);
}

.luxc__details {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0;
  color: #151515;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.luxc__details svg { width: 15px; height: 15px; transition: transform .25s ease; }
.luxc__details.is-open svg { transform: rotate(180deg); }

.luxc__terms {
  padding-top: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #5f5f5f;
}

.luxc__terms p { margin: 0; }

/* --- Foot -------------------------------------------------------------- */

.luxc__foot {
  margin-top: auto;
  padding: 18px 24px 22px;
  border-top: 1px solid rgba(21, 21, 21, .1);
  background: var(--color-background, #fbfaf6);
}

.luxc__subtotal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: 17px;
}

.luxc__subtotal strong { font-size: 21px; font-weight: 600; }

.luxc__note-text {
  margin: 5px 0 14px;
  font-size: 13px;
  color: #6b6b6b;
}

.luxc__checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 17px 20px;
  background: #151515;
  color: #fff;
  border-radius: 4px;
  font-family: var(--font-button, inherit);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .25s ease, opacity .25s ease;
}

.luxc__checkout:hover { background: #000; color: #fff; }
.luxc__checkout svg { width: 17px; height: 17px; }

/* Ungated visually and functionally: pointer-events off stops the click,
   and the server checks the agreement again at checkout. */
.luxc__checkout.is-disabled {
  opacity: .4;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .luxc, .luxc-backdrop, .luxc__bar span, .luxc__close,
  .luxc__details svg, .luxc-cross__head svg { transition: none; }
}

/* --- Agreement repeated on the checkout page --------------------------
   The drawer's box is the primary one, but arriving at checkout without
   it should not be a dead end — the same certification is offered here
   rather than sending the visitor back. */

.luxc-checkout-agree {
  margin: 0 0 20px;
  padding: 16px;
  border: 1px solid rgba(21, 21, 21, .14);
  border-radius: 6px;
}

.luxc-checkout-agree .luxc-check { font-size: 15px; }

.luxc-checkout-terms {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #5f5f5f;
}

.luxc-checkout-agree abbr.required {
  border: 0;
  color: #870b27;
  text-decoration: none;
}

.luxc__terms-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: #151515;
  text-decoration: underline;
  text-underline-offset: 3px;
}
