/* Xootix Side Cart overrides. */

.xoo-wsc-container {
  font-family: var(--font-body-family);
  color: var(--color-text);
}

.xoo-wsch-top {
  border-bottom: var(--border-subtle);
  background: var(--color-white);
}

.xoo-wsch-text {
  font-family: var(--font-heading-family);
  font-weight: var(--font-weight-bold);
  letter-spacing: -.02em;
}

.xoo-wsc-products {
  padding: var(--space-sm) 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 107, 182, .05), transparent 28%),
    var(--color-surface-cool);
}

.xoo-wsc-product {
  margin: var(--space-sm);
  border: var(--border-default);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.xoo-wsc-img-col {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(246, 249, 251, .96)),
    var(--color-surface-cool);
}

.xoo-wsc-img-col img {
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  object-fit: contain;
}

.xoo-wsc-pname {
  color: var(--color-text);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
}

.xoo-wsc-product dl,
.xoo-wsc-sml-qty,
.xoo-wsc-pprice {
  color: var(--color-text-soft);
  font-size: 14px;
  line-height: 1.4;
}

.xoo-wsc-product dl {
  margin: .35rem 0;
}

.xoo-wsc-product dl p,
.xoo-wsc-product dl dd {
  margin: 0;
}

.xoo-wsc-pprice .amount,
.xoo-wsc-ft-amt-value,
.xoo-wsc-ft-amt-value .amount {
  color: var(--color-text);
  font-style: normal;
  font-weight: var(--font-weight-bold);
  text-decoration: none;
}

.xoo-wsc-pprice del .amount {
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.xoo-wsc-pprice ins,
.xoo-wsc-pprice ins .amount {
  font-style: normal;
  text-decoration: none;
}

.xoo-wsc-psavings {
  border-color: rgba(45, 162, 72, .42);
  background: rgba(45, 162, 72, .035);
  color: #2d9b48;
  font-style: normal;
  font-weight: var(--font-weight-bold);
  letter-spacing: .02em;
  text-transform: none;
}

.xoo-wsc-psavings *,
.xoo-wsc-psavings .amount {
  color: inherit;
  font-style: normal;
  text-decoration: none;
}

.xoo-wsc-psavlabel {
  margin-right: 4px;
}

.xoo-wsc-sm-info {
  gap: var(--space-xs);
}

.xoo-wsc-sm-left {
  min-width: 0;
}

.xoo-wsc-sm-right {
  align-items: flex-end;
  min-width: 40px;
}

.xoo-wsc-smr-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  color: var(--color-text);
}

.xoo-wsc-footer {
  border-top: var(--border-subtle);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 -12px 32px rgba(15, 23, 42, .08);
}

.xoo-wsc-ft-totals {
  margin-bottom: var(--space-xs);
}

.xoo-wsc-ft-amt {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  color: var(--color-text);
  font-style: normal;
  font-weight: var(--font-weight-bold);
}

.xoo-wsc-ft-amt * {
  font-style: normal;
}

.xoo-wsc-ft-amt-label,
.xoo-wsc-ft-amt-value {
  line-height: 1.2;
}

.xoo-wsc-ft-amt-savings,
.xoo-wsc-ft-amt-savings .amount {
  color: #2d9b48;
}

.xoo-wsc-footer-txt {
  display: block;
  margin: 0 0 var(--space-sm);
  color: var(--color-text-soft);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.xoo-wsc-ft-buttons-cont {
  display: grid;
  gap: var(--space-xs);
}

.xoo-wsc-ft-buttons-cont a.xoo-wsc-ft-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body-family);
  font-weight: var(--font-weight-bold);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
}

.xoo-wsc-ft-buttons-cont a.yonex-side-cart-primary {
  order: 1;
  background: var(--color-action);
  color: var(--color-white);
}

.xoo-wsc-ft-buttons-cont a.yonex-side-cart-primary .amount,
.xoo-wsc-ft-buttons-cont a.yonex-side-cart-primary .amount * {
  display: inline;
  color: inherit;
  font-style: normal;
  font-weight: inherit;
  line-height: inherit;
  text-decoration: none;
}

.xoo-wsc-ft-buttons-cont a.yonex-side-cart-primary .amount {
  margin-left: 6px;
}

.xoo-wsc-ft-buttons-cont a.yonex-side-cart-secondary {
  order: 2;
  border: 1px solid var(--color-text);
  background: transparent;
  color: var(--color-text);
}

.xoo-wsc-ft-buttons-cont a.yonex-side-cart-tertiary {
  order: 3;
  min-height: 40px;
  background: transparent;
  color: var(--color-text-soft);
}

@media (max-width: 480px) {
  .xoo-wsc-product {
    margin: 10px;
  }

  .xoo-wsc-pname {
    font-size: 15px;
  }
}
