.orin-cart-trigger {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 100050;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 14px;
  border: 1px solid color-mix(in srgb, #2f2e2c 12%, #faf6f5);
  border-radius: 999px;
  background: #faf6f5;
  color: #2f2e2c;
  font-family: Outfit, system-ui, sans-serif;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px color-mix(in srgb, #2f2e2c 10%, transparent);
}

body.admin-bar .orin-cart-trigger {
  top: 50px;
}

.orin-cart-trigger__badge {
  min-width: 18px;
  height: 18px;
  margin-left: 2px;
  border-radius: 999px;
  background: #d4af37;
  color: #2f2e2c;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  padding: 0 5px;
}

.orin-cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 100060;
  background: color-mix(in srgb, #2c394b 45%, transparent);
}

.orin-cart-overlay[hidden] {
  display: none !important;
}

.orin-cart-root {
  position: static;
}

.orin-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100070;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  max-width: 100%;
  height: var(--orin-cart-vh, 100vh);
  height: var(--orin-cart-vh, 100dvh);
  max-height: var(--orin-cart-vh, 100dvh);
  min-height: 0;
  background: #faf6f5;
  color: #2f2e2c;
  font-family: Outfit, system-ui, sans-serif;
  box-shadow: -12px 0 40px color-mix(in srgb, #2c394b 16%, transparent);
  transform: translateX(110%);
  transition: transform 0.28s ease;
  overflow: hidden;
  box-sizing: border-box;
}

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

body.admin-bar .orin-cart-drawer {
  top: 32px;
  height: auto;
  max-height: none;
}

.orin-cart-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  padding: 18px 20px;
  border-bottom: 1px solid color-mix(in srgb, #2f2e2c 10%, #faf6f5);
}

.orin-cart-drawer__head h2 {
  margin: 0;
  font-family: Fraunces, "Iowan Old Style", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #2f2e2c;
}

.orin-cart-drawer__close {
  border: 0;
  background: transparent;
  color: #2f2e2c;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.orin-free-ship {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.88rem;
  color: #2f2e2c;
}

.orin-free-ship p {
  margin: 0;
  line-height: 1.45;
}

.orin-free-ship .woocommerce-Price-amount {
  font-weight: 500;
}

.orin-free-ship__bar {
  height: 4px;
  margin-top: 0.55rem;
  background: color-mix(in srgb, #2f2e2c 12%, #faf6f5);
  border-radius: 99px;
  overflow: hidden;
}

.orin-free-ship__bar span {
  display: block;
  height: 100%;
  background: #d4af37;
  border-radius: 99px;
}

.orin-cart-drawer .orin-free-ship {
  flex-shrink: 0;
  padding: 14px 20px 0;
}

.orin-cart-head .orin-free-ship {
  max-width: 28rem;
  margin-top: 1.15rem;
}

.orin-cart-drawer__items {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 20px 16px;
}

.orin-cart-drawer__item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid color-mix(in srgb, #2f2e2c 10%, #faf6f5);
}

.orin-cart-drawer__thumb img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 0;
  border-radius: 0.6rem;
  background: color-mix(in srgb, #2f2e2c 8%, #faf6f5);
}

.orin-cart-drawer__name a {
  color: inherit;
  text-decoration: none;
  font-family: Fraunces, "Iowan Old Style", Georgia, serif;
  font-weight: 400;
  font-size: 1.05rem;
}

.orin-cart-drawer__meta {
  margin-top: 4px;
  font-size: 0.82rem;
  color: #4a607f;
}

.orin-cart-drawer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.orin-cart-drawer__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, #2f2e2c 14%, #faf6f5);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.orin-cart-drawer__qty button {
  width: 28px;
  height: 28px;
  border: 0;
  background: #fff;
  color: #2f2e2c;
  cursor: pointer;
}

.orin-cart-drawer__qty span {
  min-width: 22px;
  text-align: center;
  font-size: 13px;
}

.orin-cart-drawer__remove {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: #4a607f;
  text-decoration: none;
}

.orin-cart-drawer__foot {
  flex-shrink: 0;
  padding: 16px 20px max(16px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid color-mix(in srgb, #2f2e2c 10%, #faf6f5);
  background: #faf6f5;
}

.orin-cart-drawer__coupon {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.orin-cart-drawer__coupon input {
  flex: 1;
  height: 44px;
  border: 1px solid color-mix(in srgb, #2f2e2c 14%, #faf6f5);
  border-radius: 0.75rem;
  padding: 0 12px;
  background: #fff;
  color: #2f2e2c;
  font-family: Outfit, system-ui, sans-serif;
}

.orin-cart-drawer__coupon button {
  height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: #2c394b;
  color: #faf6f5;
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 500;
  cursor: pointer;
}

.orin-cart-drawer__sub {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.orin-cart-drawer__sub strong {
  font-family: Fraunces, "Iowan Old Style", Georgia, serif;
  font-weight: 400;
  font-size: 1.15rem;
}

.orin-cart-drawer__note {
  margin: 6px 0 14px;
  font-size: 0.82rem;
  color: #4a607f;
}

.orin-cart-drawer__checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 3rem;
  border-radius: 999px;
  background: #2f2e2c;
  color: #faf6f5 !important;
  text-decoration: none;
  font-weight: 500;
}

.orin-cart-drawer__view {
  display: block;
  margin-top: 12px;
  text-align: center;
  color: #2f2e2c;
  font-size: 0.9rem;
  text-decoration: none;
}

.orin-cart-drawer__empty {
  padding: 32px 0;
  text-align: center;
  color: #4a607f;
}

html.orin-cart-open,
body.orin-cart-open {
  overflow: hidden;
  overscroll-behavior: none;
}

@media (max-width: 782px) {
  body.admin-bar .orin-cart-trigger {
    top: 64px;
  }

  body.admin-bar .orin-cart-drawer {
    top: 46px;
    height: auto;
    max-height: none;
  }
}

@media (max-width: 600px) {
  .orin-cart-drawer {
    width: 100%;
    left: 0;
    right: 0;
  }

  .orin-cart-drawer__head {
    padding-top: max(14px, env(safe-area-inset-top, 0px));
  }
}
