.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 #d9d9d9;
  border-radius: 999px;
  background: #fff;
  color: #1a1c1e;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

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

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

.orin-cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 100060;
  background: rgba(16, 18, 22, 0.45);
}

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

.orin-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100070;
  display: flex;
  flex-direction: column;
  width: min(420px, 100vw);
  height: 100vh;
  background: #fff;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
  transform: translateX(110%);
  transition: transform 0.28s ease;
}

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

body.admin-bar .orin-cart-drawer {
  top: 32px;
  height: calc(100vh - 32px);
}

.orin-cart-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid #eee;
}

.orin-cart-drawer__head h2 {
  margin: 0;
  font-size: 20px;
}

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

.orin-cart-drawer__ship {
  padding: 12px 20px 0;
  font-size: 13px;
}

.orin-cart-drawer__bar {
  height: 4px;
  margin-top: 8px;
  background: #eee;
  border-radius: 99px;
  overflow: hidden;
}

.orin-cart-drawer__bar span {
  display: block;
  height: 100%;
  background: #ff4d1c;
}

.orin-cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 20px 16px;
}

.orin-cart-drawer__item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.orin-cart-drawer__thumb img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #f7f7f7;
}

.orin-cart-drawer__name a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.orin-cart-drawer__meta {
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
}

.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 #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.orin-cart-drawer__qty button {
  width: 28px;
  height: 28px;
  border: 0;
  background: #fff;
  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: 12px;
  color: #6b7280;
}

.orin-cart-drawer__foot {
  padding: 16px 20px 24px;
  border-top: 1px solid #eee;
}

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

.orin-cart-drawer__coupon input {
  flex: 1;
  height: 44px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0 10px;
}

.orin-cart-drawer__coupon button {
  height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: #e8e8e8;
  cursor: pointer;
}

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

.orin-cart-drawer__note {
  margin: 6px 0 14px;
  font-size: 12px;
  color: #6b7280;
}

.orin-cart-drawer__checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: 8px;
  background: #ff4d1c;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
}

.orin-cart-drawer__view {
  display: block;
  margin-top: 12px;
  text-align: center;
  color: #1a1c1e;
  font-size: 14px;
}

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

body.orin-cart-open {
  overflow: hidden;
}

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

  body.admin-bar .orin-cart-drawer {
    top: 46px;
    height: calc(100vh - 46px);
  }
}
