#sc-booking-offcanvas,
#sc-cart-offcanvas {
  top: 3rem;
  right: 1.5rem;
  bottom: auto;
  width: min(28rem, calc(100vw - 3rem));
  max-width: calc(100vw - 3rem);
  height: auto;
  max-height: calc(100vh - 6rem);
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(127, 118, 99, 0.14);
  border-radius: 2rem;
  box-shadow: 0 20px 60px rgba(30, 20, 0, 0.14);
}

#sc-booking-offcanvas .offcanvas-header,
#sc-cart-offcanvas .offcanvas-header {
  padding: 1.25rem 1.25rem 1rem;
}

#sc-booking-offcanvas .offcanvas-title,
#sc-cart-offcanvas .offcanvas-title {
  color: var(--sc-primary, #735c00);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

#sc-booking-offcanvas .offcanvas-body,
#sc-cart-offcanvas .offcanvas-body {
  padding: 0.75rem 1.25rem 1.25rem;
}

#sc-booking-offcanvas .btn-close,
#sc-cart-offcanvas .btn-close {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.75rem;
  border-radius: 9999px;
  transition: background-color 0.25s ease;
}

#sc-booking-offcanvas .btn-close:hover,
#sc-cart-offcanvas .btn-close:hover {
  background-color: rgba(228, 226, 222, 0.8);
}

.sc-cart-summary {
  border: 1px solid var(--sc-outline, #e0d8c8);
  border-radius: 0.75rem;
  padding: 0.75rem;
  background: rgba(248, 245, 239, 0.5);
}

#sc-cart-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sc-cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  border: 1px solid var(--sc-outline, #e0d8c8);
  border-radius: 0.6rem;
  background: #fff;
  padding: 0.48rem 0.58rem;
}

.sc-cart-item__copy {
  min-width: 0;
}

.sc-cart-item__name {
  margin: 0;
  color: var(--sc-primary, #735c00);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

.sc-cart-item__meta {
  margin: 0;
  font-size: 0.67rem;
  color: rgba(77, 70, 53, 0.7);
}

.sc-cart-item__configs {
  margin: 0.35rem 0 0;
  padding-left: 1rem;
  color: rgba(77, 70, 53, 0.74);
  font-size: 0.68rem;
  line-height: 1.35;
}

.sc-cart-item__actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  min-width: 0;
}

.sc-cart-item__price {
  color: rgba(77, 70, 53, 0.85);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
  text-align: right;
}

.sc-cart-remove {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  border: 1px solid var(--sc-outline, #e0d8c8);
  background: #fff;
  color: rgba(77, 70, 53, 0.75);
  font-size: 0.62rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sc-cart-remove:hover {
  border-color: var(--sc-primary, #735c00);
  color: var(--sc-primary, #735c00);
}

.sc-cart-voucher-code,
.sc-cart-vouchers,
.sc-cart-totals {
  border-top: 1px solid rgba(208, 197, 175, 0.45);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

.sc-cart-voucher-code {
  display: grid;
  gap: 0.45rem;
}

.sc-cart-voucher-code__label {
  margin: 0;
  color: var(--sc-outline, #7f7663);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sc-cart-voucher-code__row {
  display: flex;
  gap: 0.5rem;
}

.sc-cart-voucher-code__row input {
  min-width: 0;
  flex: 1;
  border: 1px solid rgba(168, 137, 58, 0.26);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.85);
  color: var(--sc-on-surface, #1b1c1a);
  font-size: 0.78rem;
  padding: 0.55rem 0.65rem;
}

.sc-cart-voucher-code__row button {
  border: 0;
  border-radius: 0.6rem;
  background: var(--sc-primary, #735c00);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.55rem 0.75rem;
}

.sc-cart-voucher-code__message {
  margin: 0;
  color: rgba(77, 70, 53, 0.72);
  font-size: 0.72rem;
}

.sc-cart-voucher-code__message--success {
  color: #2f7d46;
}

.sc-cart-voucher-code__message--error {
  color: #a94442;
}

.sc-cart-vouchers__title {
  margin: 0 0 0.5rem;
  color: var(--sc-outline, #7f7663);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sc-cart-voucher-toggle {
  width: 100%;
  border: 1px solid rgba(168, 137, 58, 0.26);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.7);
  color: var(--sc-on-surface, #1b1c1a);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  text-align: left;
}

.sc-cart-voucher-toggle + .sc-cart-voucher-toggle {
  margin-top: 0.45rem;
}

.sc-cart-voucher-toggle strong {
  display: block;
  color: var(--sc-primary, #735c00);
  font-size: 0.78rem;
}

.sc-cart-voucher-toggle small {
  display: block;
  color: rgba(77, 70, 53, 0.68);
  font-size: 0.68rem;
}

.sc-cart-voucher-toggle.active {
  border-color: rgba(49, 125, 89, 0.55);
  background: rgba(232, 246, 237, 0.72);
}

.sc-cart-totals {
  display: grid;
  gap: 0.4rem;
}

.sc-cart-totals > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(77, 70, 53, 0.78);
  font-size: 0.78rem;
}

.sc-cart-totals strong {
  color: var(--sc-primary, #735c00);
}

.sc-cart-totals__final {
  font-size: 0.9rem !important;
  font-weight: 700;
}

#sc-booking-offcanvas .sc-cart-summary,
#sc-cart-offcanvas .sc-cart-summary {
  padding: 0;
  border: 0;
  background: transparent;
}

#sc-booking-offcanvas #sc-cart-list,
#sc-cart-offcanvas #sc-cart-list {
  gap: 0;
}

#sc-booking-offcanvas .sc-cart-item,
#sc-cart-offcanvas .sc-cart-item {
  gap: 0.75rem;
  padding: 1rem 0;
  border: 0;
  border-bottom: 1px solid rgba(208, 197, 175, 0.45);
  border-radius: 0;
  background: transparent;
}

#sc-booking-offcanvas .sc-cart-item__name,
#sc-cart-offcanvas .sc-cart-item__name {
  color: var(--sc-on-surface, #1b1c1a);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#sc-booking-offcanvas .sc-cart-item__meta,
#sc-cart-offcanvas .sc-cart-item__meta {
  margin-top: 0.25rem;
  font-size: 0.7rem;
}

#sc-booking-offcanvas .sc-cart-item__price,
#sc-cart-offcanvas .sc-cart-item__price {
  color: var(--sc-primary, #735c00);
  font-size: 0.85rem;
  font-weight: 600;
}

.sc-cart-config-price {
  color: var(--sc-primary, #735c00);
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-left: 0.25rem;
  overflow-wrap: anywhere;
  white-space: normal;
}

.sc-cart-config-price__original {
  color: var(--sc-on-surface-muted, #665d4f);
  text-decoration: line-through;
}

.sc-cart-config-price__discount {
  background: rgba(190, 35, 35, 0.1);
  border-radius: 999px;
  color: #b42318;
  font-weight: 700;
  padding: 0 0.35rem;
}

#sc-booking-offcanvas .sc-cart-remove,
#sc-cart-offcanvas .sc-cart-remove {
  background: rgba(255, 255, 255, 0.55);
}

.sc-cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 1rem;
  color: var(--sc-outline, #7f7663);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

#sc-booking-offcanvas .sc-treatment-price,
#sc-cart-offcanvas .sc-treatment-price {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sc-primary, #735c00);
  font-size: 1.2rem;
  letter-spacing: normal;
  text-transform: none;
}

.sc-booking-schedule {
  width: 100%;
  border: 0;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  background: var(--sc-primary-container, #d4af37);
  color: var(--sc-on-primary-container, #554300);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition:
    box-shadow 0.25s ease,
    opacity 0.25s ease,
    transform 0.15s ease;
}

.sc-booking-schedule:hover:not(:disabled) {
  box-shadow: 0 12px 24px rgba(115, 92, 0, 0.18);
}

.sc-booking-schedule:active:not(:disabled) {
  transform: scale(0.98);
}

.sc-booking-schedule:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

@media (max-width: 640px) {
  .sc-cart-item {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .sc-cart-item__copy {
    flex: 1 1 min(100%, 12rem);
  }

  .sc-cart-item__actions {
    flex: 1 1 100%;
  }

  .sc-cart-item__price {
    flex: 1 1 0;
    min-width: 0;
    white-space: normal;
  }

  #sc-booking-offcanvas,
  #sc-cart-offcanvas {
    top: 1rem;
    right: 1rem;
    width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
    border-radius: 1.5rem;
  }
}
