.cyrex-cart-lock {
  overflow: hidden;
}

.cyrex-cart-root {
  position: relative;
  z-index: 999999;
}

.cyrex-cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999990;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.cyrex-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 999991;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(440px, calc(100vw - 18px));
  height: 100dvh;
  border-left: 1px solid rgba(245, 164, 0, 0.18);
  background:
    radial-gradient(circle at 18% 0%, rgba(245, 164, 0, 0.16), transparent 28%),
    radial-gradient(circle at 100% 100%, rgba(245, 164, 0, 0.07), transparent 34%),
    linear-gradient(180deg, #080706 0%, #030303 100%);
  color: #f8fafc;
  box-shadow: -28px 0 80px rgba(0, 0, 0, 0.46);
  transform: translateX(104%);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cyrex-cart-root.is-open .cyrex-cart-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.cyrex-cart-root.is-open .cyrex-cart-drawer {
  transform: translateX(0);
}

.cyrex-cart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 24px 18px;
  border-bottom: 1px solid rgba(245, 164, 0, 0.16);
}

.cyrex-cart-eyebrow {
  margin: 0 0 6px;
  color: #f5a400;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cyrex-cart-header h2 {
  margin: 0;
  color: #ffffff;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.cyrex-cart-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 1px solid rgba(245, 164, 0, 0.35);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.82);
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  box-shadow: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.cyrex-cart-close span {
  display: block;
  width: 1em;
  height: 1em;
  line-height: 0.92;
  text-align: center;
}

.cyrex-cart-close:hover {
  border-color: rgba(245, 164, 0, 0.58);
  background: rgba(245, 164, 0, 0.08);
  color: #ffc400;
}

.cyrex-cart-items {
  min-height: 0;
  overflow-y: auto;
  padding: 18px 18px 150px;
  scrollbar-color: rgba(245, 164, 0, 0.55) #111111;
}

.cyrex-cart-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(245, 164, 0, 0.24);
  border-radius: 17px;
  background:
    radial-gradient(circle at 18% 0%, rgba(245, 164, 0, 0.1), transparent 36%),
    linear-gradient(180deg, #181818, #121212);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.cyrex-cart-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border-radius: 14px;
  background: #050505;
}

.cyrex-cart-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cyrex-cart-thumb-placeholder {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
}

.cyrex-cart-info {
  min-width: 0;
}

.cyrex-cart-line-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cyrex-cart-line-top h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
}

.cyrex-cart-remove {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 1px solid rgba(245, 164, 0, 0.18);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  box-shadow: none;
}

.cyrex-cart-remove:hover {
  border-color: rgba(248, 113, 113, 0.36);
  background: rgba(248, 113, 113, 0.08);
  color: #fca5a5;
}

.cyrex-cart-close::before,
.cyrex-cart-close::after,
.cyrex-cart-remove::before,
.cyrex-cart-remove::after {
  display: none !important;
  content: none !important;
}

.cyrex-cart-variant {
  display: block;
  margin-top: 5px;
  color: #94a3b8;
  font-size: 12px;
}

.cyrex-cart-price-row {
  display: block;
  margin-top: 9px;
}

.cyrex-cart-price-row strong {
  color: #f5a400;
  font-size: 13px;
  font-weight: 900;
}

.cyrex-cart-empty {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 240px;
  margin: 18px;
  padding: 28px;
  border: 1px dashed rgba(245, 164, 0, 0.22);
  border-radius: 20px;
  color: #b8b8b8;
  text-align: center;
}

.cyrex-cart-empty[hidden] {
  display: none;
}

.cyrex-cart-empty strong {
  color: #ffffff;
  font-size: 17px;
}

.cyrex-cart-footer {
  position: sticky;
  bottom: 0;
  display: grid;
  gap: 12px;
  padding: 18px 24px 24px;
  border-top: 1px solid rgba(245, 164, 0, 0.16);
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.92), #050505);
  box-shadow: 0 -18px 45px rgba(0, 0, 0, 0.34);
}

.cyrex-cart-total-items,
.cyrex-cart-subtotal,
.cyrex-cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #b8b8b8;
  font-size: 13px;
}

.cyrex-cart-total-items strong,
.cyrex-cart-subtotal strong,
.cyrex-cart-total strong {
  color: #ffffff;
  font-size: 18px;
}

.cyrex-cart-total strong {
  color: #ffffff;
  font-size: 24px;
}

.cyrex-cart-checkout,
.cyrex-cart-clear {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.cyrex-cart-checkout {
  border: 1px solid rgba(245, 164, 0, 0.62);
  background: linear-gradient(180deg, #f5a400, #d98f00);
  color: #070707;
  box-shadow: 0 16px 34px rgba(245, 164, 0, 0.22);
}

.cyrex-cart-checkout:hover {
  background: linear-gradient(180deg, #ffc247, #f5a400);
  transform: translateY(-1px);
}

.cyrex-cart-clear {
  border: 1px solid rgba(245, 164, 0, 0.18);
  background: #111111;
  color: #cbd5e1;
}

.cyrex-cart-clear:hover {
  border-color: rgba(248, 113, 113, 0.42);
  color: #fecaca;
}

.cyrex-cart-floating {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 999980;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(245, 164, 0, 0.32);
  border-radius: 999px;
  background: linear-gradient(180deg, #151515, #050505);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42), 0 0 30px rgba(245, 164, 0, 0.14);
  cursor: pointer;
}

.cyrex-product-ui-cart-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 14px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 2px 2px 5px 5px;
}

.cyrex-product-ui-cart-icon::before {
  position: absolute;
  left: 3px;
  right: 3px;
  top: -7px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  content: "";
}

.cyrex-cart-floating-icon {
  display: block;
  width: 21px;
  height: 21px;
  color: #f5f5f5;
}

.cyrex-cart-floating:hover .cyrex-cart-floating-icon {
  color: #ffc400;
}

.cyrex-cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f5a400;
  color: #050505;
  font-size: 12px;
  font-weight: 900;
}

.cyrex-cart-count[hidden] {
  display: none;
}

.cyrex-product-ui-button-cart {
  gap: 9px;
  min-height: 42px !important;
  padding: 10px 16px !important;
  border-color: rgba(245, 164, 0, 0.42) !important;
  background: linear-gradient(180deg, #171717, #101010) !important;
  color: #f5a400 !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(245, 164, 0, 0.08) !important;
}

.cyrex-product-ui-button-cart:hover {
  border-color: rgba(245, 164, 0, 0.74) !important;
  background: linear-gradient(180deg, #f5a400, #d98f00) !important;
  color: #050505 !important;
}

.cyrex-sp-actions-wrap {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.cyrex-sp-actions-wrap .cyrex-product-ui-button {
  min-height: 44px;
}

.cyrex-cart-toast {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 1000000;
  max-width: min(320px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid rgba(245, 164, 0, 0.28);
  border-radius: 999px;
  background: linear-gradient(180deg, #181818, #101010);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42), 0 0 24px rgba(245, 164, 0, 0.14);
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.cyrex-cart-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .cyrex-cart-drawer {
    width: 100vw;
  }

  .cyrex-cart-header {
    padding: 22px 18px 16px;
  }

  .cyrex-cart-items {
    padding-inline: 14px;
  }

  .cyrex-cart-footer {
    padding: 16px 18px 20px;
  }

  .cyrex-cart-floating {
    right: 16px;
    bottom: 18px;
  }

  .cyrex-sp-actions-wrap {
    grid-template-columns: 1fr;
  }
}
