/* Oh Polly style side cart */
.sc-Drawer {
  position: fixed;
  inset: 0;
  z-index: 1050;
  pointer-events: none;
  visibility: hidden;
}

.sc-Drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.sc-Backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sc-Drawer.is-open .sc-Backdrop {
  opacity: 1;
}

.sc-Panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  max-width: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
}

.sc-Drawer.is-open .sc-Panel {
  transform: translateX(0);
}

.sc-Header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e8e8e8;
  flex-shrink: 0;
}

.sc-Title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1a1a1a;
}

.sc-Close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1a1a1a;
  cursor: pointer;
}

.sc-Close:hover {
  opacity: 0.6;
}

.sc-Body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sc-Panel_Inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
}

.sc-List {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
}

.sc-Item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.sc-Item_Media {
  display: block;
  line-height: 0;
}

.sc-Item_Media img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}

.sc-Item_Body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sc-Item_Row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.sc-Item_Name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #1a1a1a;
  text-decoration: none;
  line-height: 1.3;
}

.sc-Item_Name:hover {
  text-decoration: underline;
}

.sc-Item_Price {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
}

.sc-Item_Subtitle {
  margin: 0;
  font-size: 0.8125rem;
  color: #666;
  line-height: 1.4;
}

.sc-Item_Controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.sc-SelectWrap {
  position: relative;
  flex: 1 1 calc(50% - 0.25rem);
  min-width: 7rem;
}

.sc-Select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-size: 0.8125rem;
  border: 1px solid #d4d4d4;
  border-radius: 0;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath stroke='%231a1a1a' stroke-width='2' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.6rem center;
  color: #1a1a1a;
  cursor: pointer;
}

.sc-Select:focus {
  outline: 1px solid #1a1a1a;
  outline-offset: 0;
}

.sc-Item_Footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.25rem;
}

.sc-Remove {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.8125rem;
  color: #c41e3a;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}

.sc-Remove_Icon {
  display: flex;
  flex-shrink: 0;
  color: #c41e3a;
}

.sc-Remove_Icon svg {
  display: block;
}

.sc-Remove_Text {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sc-Remove:hover {
  opacity: 0.75;
}

.sc-Remove:hover .sc-Remove_Text {
  text-decoration: underline;
}

.sc-Footer {
  flex-shrink: 0;
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid #e8e8e8;
  background: #fff;
}

.sc-Drawer .sc-Subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  color: #000;
}

.sc-Drawer .sc-Subtotal_Label,
.sc-Drawer .sc-Subtotal_Value {
  color: #000;
  opacity: 1;
}

.sc-Drawer .sc-Subtotal_Label {
  font-weight: 600;
}

.sc-Drawer .sc-Subtotal_Value {
  font-weight: 700;
}

.sc-Checkout {
  display: block;
  width: 100%;
  padding: 1rem 1.5rem;
  text-align: center;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1a1a;
  background: #f9e5e2;
  border: 0;
  transition: background 0.2s ease;
}

.sc-Checkout:hover {
  background: #f5d5d0;
  color: #1a1a1a;
}

.sc-Empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
}

.sc-Empty_Text {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: #666;
}

.sc-Empty_Link {
  font-size: 0.875rem;
  text-decoration: underline;
  color: #1a1a1a;
}

.sc-Loading {
  padding: 2rem 1.5rem;
  margin: 0;
  font-size: 0.875rem;
  color: #666;
}

body.sc-BodyLock {
  overflow: hidden;
}

@media (max-width: 575.98px) {
  .sc-Panel {
    width: 100%;
  }

  .sc-Item {
    grid-template-columns: 72px 1fr;
    padding: 1rem;
  }

  .sc-Header,
  .sc-Footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
