/* ==========================================================
   ZSG — Xootix Side Cart visual adaptation
   File: xoo-wsc-style.css
   Scope: existing Xoo Woo Side Cart markup only.
   Visual source: current ZSG header, catalog and single-product UI.
   ========================================================== */

:root {
  --zsg-wsc-red: #e30014;
  --zsg-wsc-red-dark: #bd0011;
  --zsg-wsc-red-soft: #fff4f5;
  --zsg-wsc-red-line: rgba(227, 0, 20, .22);
  --zsg-wsc-ink: #171b20;
  --zsg-wsc-text: #2b3036;
  --zsg-wsc-muted: #6e7681;
  --zsg-wsc-line: rgba(17, 24, 39, .10);
  --zsg-wsc-line-strong: #d8dde1;
  --zsg-wsc-bg: #f5f7f8;
  --zsg-wsc-bg-soft: #eef2f4;
  --zsg-wsc-surface: #ffffff;
  --zsg-wsc-danger: #c40012;
  --zsg-wsc-danger-soft: #fff2f3;
  --zsg-wsc-shadow: 0 24px 72px rgba(16, 24, 40, .18), 0 3px 12px rgba(16, 24, 40, .06);
  --zsg-wsc-shadow-soft: 0 8px 22px rgba(16, 24, 40, .06);
  --zsg-wsc-radius-lg: 16px;
  --zsg-wsc-radius-md: 12px;
  --zsg-wsc-radius-sm: 10px;
  --zsg-wsc-focus: #ff4b5a;
}

.xoo-wsc-modal,
.xoo-wsc-modal * {
  box-sizing: border-box;
  font-family: inherit;
}

body.xoo-wsc-cart-active {
  overflow: hidden !important;
}

/* Drawer / overlay */
.xoo-wsc-container,
.xoo-wsc-slider {
  position: fixed;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  width: min(460px, calc(100vw - 24px));
  max-width: 460px;
  background: var(--zsg-wsc-surface);
  color: var(--zsg-wsc-ink);
  border: 1px solid var(--zsg-wsc-line);
  box-shadow: var(--zsg-wsc-shadow);
  overflow: hidden;
  transition: transform .24s ease, opacity .2s ease, visibility .2s ease;
}

.xoo-wsc-container {
  border-radius: var(--zsg-wsc-radius-lg) 0 0 var(--zsg-wsc-radius-lg);
}

.xoo-wsc-slider {
  border-radius: 0 var(--zsg-wsc-radius-lg) var(--zsg-wsc-radius-lg) 0;
}

.xoo-wsc-cart-active .xoo-wsc-opac {
  position: fixed;
  inset: 0;
  z-index: 999998;
  background: rgba(17, 24, 32, .46);
  opacity: 1;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Floating basket. Mirrors the light header cart rather than a separate plugin badge. */
.xoo-wsc-basket {
  position: fixed;
  z-index: 9999999;
  width: 56px;
  height: 56px;
  padding: 0;
  margin: 16px;
  border: 1px solid rgba(17, 24, 39, .09);
  border-radius: 14px;
  cursor: pointer;
  color: var(--zsg-wsc-ink);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 30px rgba(16, 24, 40, .12);
  transition: color .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.xoo-wsc-basket:hover {
  color: var(--zsg-wsc-red);
  border-color: rgba(227, 0, 20, .18);
  background: #fff;
  box-shadow: 0 14px 32px rgba(16, 24, 40, .14);
}

.xoo-wsc-bki {
  position: relative;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: currentColor;
}

.xoo-wsc-bki img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: none;
}

.xoo-wsc-items-count,
span.xoo-wsc-sc-count,
.xoo-wscb-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--zsg-wsc-red);
  border: 2px solid #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 850;
  box-shadow: none;
  overflow: hidden;
}

.xoo-wsc-items-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 24px;
  width: auto;
  height: 24px;
  padding: 0 6px;
  text-align: center;
}

.xoo-wsc-fly-animating {
  opacity: 1;
  position: absolute !important;
  height: 150px;
  width: 150px;
  z-index: 100;
}

/* Header */
.xoo-wsc-header {
  position: relative;
  flex: 0 0 auto;
  padding: 16px 18px;
  color: var(--zsg-wsc-ink);
  background: linear-gradient(180deg, #f2f5f6 0%, #fbfcfd 100%);
  border-bottom: 1px solid var(--zsg-wsc-line);
}

.xoo-wsch-top {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 auto;
}

.xoo-wsch-top .xoo-wsch-basket {
  position: relative;
  width: 46px;
  height: 46px;
  min-width: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 12px;
  color: var(--zsg-wsc-ink);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 5px 14px rgba(16, 24, 40, .04);
}

.xoo-wscb-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  line-height: 1;
  color: currentColor;
}

.xoo-wscb-count {
  position: absolute;
  z-index: 1;
  top: -7px;
  right: -7px;
  left: auto;
  min-width: 22px;
  width: auto;
  height: 22px;
  padding: 0 5px;
  font-size: 11px;
}

span.xoo-wsch-text {
  flex: 1;
  min-width: 0;
  margin-left: 0;
  color: var(--zsg-wsc-ink);
  font-size: 20px;
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: -.025em;
}

/* Close icons are visualized without relying on the plugin font glyph. */
span.xoo-wsch-close,
span.xoo-wsc-slider-close {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 24, 39, .09);
  border-radius: 11px;
  cursor: pointer;
  color: #4c5560;
  background: rgba(255, 255, 255, .84);
  box-shadow: none;
  font-family: inherit !important;
  font-size: 0;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

span.xoo-wsch-close {
  position: static;
}

span.xoo-wsch-close::before,
span.xoo-wsc-slider-close::before {
  content: "";
  width: 18px;
  height: 18px;
  display: block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

span.xoo-wsch-close:hover,
span.xoo-wsc-slider-close:hover {
  color: var(--zsg-wsc-red);
  background: var(--zsg-wsc-red-soft);
  border-color: var(--zsg-wsc-red-line);
}

/* Notices */
.xoo-wsc-notice-container {
  z-index: 20;
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: none;
}

ul.xoo-wsc-notices {
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.xoo-wsc-notices li {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--zsg-wsc-radius-md);
  list-style: none;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(16, 24, 40, .12);
}

ul.xoo-wsc-notices li span {
  margin-right: 7px;
}

.xoo-wsc-notice-success {
  background: #f4f7f5;
  color: #2d5a3a;
  border: 1px solid rgba(45, 90, 58, .18);
}

.xoo-wsc-notice-error {
  color: #9f0010;
  background: var(--zsg-wsc-danger-soft);
  border: 1px solid rgba(196, 0, 18, .16);
}

span.xoo-wsc-undo-item {
  float: right;
  text-decoration: underline;
  cursor: pointer;
}

.xoo-wsc-notices a.button.wc-forward {
  display: none;
}

/* Shipping / progress bar */
.xoo-wsc-sb-bar {
  height: 7px;
  width: 100%;
  display: block;
  margin: 12px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 24, 39, .08);
}

.xoo-wsc-sb-bar > span {
  display: block;
  z-index: 1;
  height: inherit;
  border-radius: inherit;
  background: var(--zsg-wsc-red);
}

.xoo-wsc-ship-bar-cont {
  width: 100%;
  margin-top: 8px;
  text-align: center;
  color: var(--zsg-wsc-muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

/* Body / products */
.xoo-wsc-body {
  flex-grow: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 18px;
  background: var(--zsg-wsc-surface);
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 24, 39, .22) transparent;
}

.xoo-wsc-body::-webkit-scrollbar,
.xoo-wsc-sl-content::-webkit-scrollbar,
.xoo-wsc-sl-body::-webkit-scrollbar {
  width: 6px;
}

.xoo-wsc-body::-webkit-scrollbar-thumb,
.xoo-wsc-sl-content::-webkit-scrollbar-thumb,
.xoo-wsc-sl-body::-webkit-scrollbar-thumb {
  background: rgba(17, 24, 39, .22);
  border-radius: 999px;
}

.xoo-wsc-products {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.xoo-wsc-product {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid var(--zsg-wsc-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: border-color .18s ease, background-color .18s ease;
}

.xoo-wsc-product:last-child {
  border-bottom: 0;
}

.xoo-wsc-product:hover,
.xoo-wsc-product:focus-within {
  border-color: rgba(227, 0, 20, .16);
  background: transparent;
  box-shadow: none;
}

.xoo-wsc-img-col {
  width: 88px;
  min-width: 88px;
  align-self: flex-start;
}

.xoo-wsc-img-col a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--zsg-wsc-line);
  border-radius: var(--zsg-wsc-radius-sm);
  background: var(--zsg-wsc-bg);
}

.xoo-wsc-img-col img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  padding: 7px;
  transition: transform .18s ease;
}

.xoo-wsc-product:hover .xoo-wsc-img-col img {
  transform: scale(1.02);
}

.xoo-wsc-sum-col {
  flex-grow: 1;
  min-width: 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.xoo-wsc-sm-sales {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  margin: 0 0 7px;
  border: 1px solid var(--zsg-wsc-red-line);
  border-radius: 999px;
  color: var(--zsg-wsc-red-dark);
  background: var(--zsg-wsc-red-soft);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: .02em;
}

.xoo-wsc-sm-info {
  display: flex;
  width: 100%;
  min-width: 0;
  gap: 10px;
}

.xoo-wsc-sm-left {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.xoo-wsc-sm-left > *:not(:last-child) {
  padding-bottom: 0;
}

.xoo-wsc-sm-right {
  max-width: 72px;
  min-width: 38px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

span.xoo-wsc-pname,
span.xoo-wsc-pname a {
  color: var(--zsg-wsc-ink);
  font-size: 14px;
  line-height: 1.38;
  font-weight: 760;
  text-decoration: none;
  letter-spacing: -.008em;
  overflow-wrap: anywhere;
  transition: color .18s ease;
}

span.xoo-wsc-pname a:hover {
  color: var(--zsg-wsc-red);
}

.xoo-wsc-pprice,
.xoo-wsc-qty-price,
span.xoo-wsc-smr-ptotal {
  color: var(--zsg-wsc-muted);
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 650;
}

.xoo-wsc-pprice .amount,
.xoo-wsc-qty-price .amount,
.xoo-wsc-smr-ptotal .amount,
.xoo-wsc-ft-amt-value .amount,
.xoo-wsc-sp-price .amount,
.xoo-wsc-modal .woocommerce-Price-amount {
  color: var(--zsg-wsc-ink);
  font-weight: 800;
}

span.xoo-wsc-smr-ptotal {
  display: block;
  text-align: right;
  color: var(--zsg-wsc-text);
}

/* Remove action uses a CSS mask, so the old icon font does not define the visual. */
span.xoo-wsc-smr-del {
  width: 36px;
  height: 36px;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 24, 39, .09);
  border-radius: 10px;
  cursor: pointer;
  color: #68717b;
  background: #fff;
  font-family: inherit !important;
  font-size: 0;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

span.xoo-wsc-smr-del::before {
  content: "";
  width: 17px;
  height: 17px;
  display: block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h16M9 7V4h6v3M7 7l1 13h8l1-13M10 11v5M14 11v5' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h16M9 7V4h6v3M7 7l1 13h8l1-13M10 11v5M14 11v5' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

span.xoo-wsc-smr-del:hover {
  color: var(--zsg-wsc-red);
  background: var(--zsg-wsc-red-soft);
  border-color: var(--zsg-wsc-red-line);
}

/* Quantity */
.xoo-wsc-qty-box {
  max-width: 112px;
  width: 100%;
  height: 38px;
  margin-top: 2px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-direction: row;
  overflow: hidden;
  border: 1px solid var(--zsg-wsc-line-strong);
  border-radius: 10px;
  background: #fff;
}

input[type="number"].xoo-wsc-qty {
  width: 100%;
  min-width: 1%;
  height: 36px;
  line-height: 36px;
  flex-grow: 1;
  padding: 0 4px;
  text-align: center;
  color: var(--zsg-wsc-ink);
  border: 0;
  border-left: 1px solid #eceff1;
  border-right: 1px solid #eceff1;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  outline: none;
}

span.xoo-wsc-chng {
  min-width: 36px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  cursor: pointer;
  user-select: none;
  color: #4d5660;
  background: #fff;
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
  transition: color .18s ease, background-color .18s ease;
}

span.xoo-wsc-chng:hover {
  color: var(--zsg-wsc-red);
  background: var(--zsg-wsc-red-soft);
}

.xoo-wsc-qtb-square input[type="number"].xoo-wsc-qty {
  border-top-width: 0;
  border-bottom-width: 0;
  height: unset;
  min-height: unset;
}

.xoo-wsc-qtb-circle .xoo-wsc-chng {
  border-radius: 50%;
  height: 70%;
  align-self: center;
}

.xoo-wsc-qtb-circle input[type="number"].xoo-wsc-qty {
  margin: 0 5px;
}

input.xoo-wsc-qty::-webkit-outer-spin-button,
input.xoo-wsc-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input.xoo-wsc-qty[type="number"] {
  -moz-appearance: textfield;
}

/* Variation / extra product metadata */
.xoo-wsc-product dl.variation,
.xoo-wsc-product dl.variation p,
.xoo-wsc-product .tc-epo-metadata,
.xoo-wsc-product .tc-epo-metadata p {
  margin: 3px 0 0;
  color: var(--zsg-wsc-muted);
  font-size: 11.5px;
  line-height: 1.45;
  font-weight: 600;
}

.xoo-wsc-product dl.variation {
  display: block;
  overflow: hidden;
}

.xoo-wsc-product dl.variation dd,
.xoo-wsc-product dl.variation dt {
  margin: 0 4px 0 0;
  display: inline-block;
  float: left;
  font-style: normal;
}

.xoo-wsc-product dl.variation dt {
  clear: left;
  color: #4d5660;
  font-weight: 750;
}

.xoo-wsc-product .tc-name {
  color: #4d5660;
  font-weight: 750;
}

.xoo-wsc-product .tc-price-in-cart {
  color: var(--zsg-wsc-ink);
  font-weight: 750;
}

/* Footer */
.xoo-wsc-footer {
  flex: 0 0 auto;
  padding: 14px 18px calc(16px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid var(--zsg-wsc-line);
  box-shadow: 0 -8px 24px rgba(16, 24, 40, .035);
}

.xoo-wsc-ft-totals {
  width: 100%;
  padding: 0 0 12px;
}

.xoo-wsc-ft-amt {
  padding: 6px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--zsg-wsc-muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
}

span.xoo-wsc-ft-amt-label {
  flex-grow: 1;
  padding-right: 10px;
  color: var(--zsg-wsc-muted);
  font-weight: 700;
}

.xoo-wsc-ft-amt-value {
  text-align: right;
}

.xoo-wsc-toggle-slider {
  cursor: pointer;
}

.xoo-wsc-ft-amt-value .xoo-wsc-toggle-slider,
.xoo-wsc-ft-amt-shipping .xoo-wsc-toggle-slider span {
  margin-left: 5px;
}

.xoo-wsc-ft-amt.less {
  color: var(--zsg-wsc-red-dark);
}

.xoo-wsc-ft-amt-total {
  margin-top: 6px;
  padding-top: 11px;
  border-top: 1px solid var(--zsg-wsc-line);
  color: var(--zsg-wsc-ink);
}

.xoo-wsc-ft-amt-total span.xoo-wsc-ft-amt-label,
.xoo-wsc-ft-amt-total .xoo-wsc-ft-amt-value,
.xoo-wsc-ft-amt-total .amount {
  color: var(--zsg-wsc-ink);
  font-size: 17px;
  font-weight: 850;
}

.xoo-wsc-ftx-row {
  padding: 10px 0;
  border-top: 1px solid var(--zsg-wsc-line);
  border-bottom: 1px solid var(--zsg-wsc-line);
  color: var(--zsg-wsc-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
}

span.xoo-wsc-ftx-icon {
  margin-right: 6px;
  font-size: 16px;
  color: var(--zsg-wsc-red);
}

.xoo-wsc-ftx-coups {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
  margin-left: 7px;
}

.xoo-wsc-ftx-coups > div {
  flex-grow: 1;
}

.xoo-wsc-remove-coupon {
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  cursor: pointer;
  margin-right: 3px;
  font-size: 10px;
  font-weight: 800;
  color: var(--zsg-wsc-danger);
}

.xoo-wsc-remove-coupon span {
  color: var(--zsg-wsc-danger);
  margin-left: 2px;
}

/* Empty-cart action in the reference DOM is a text command, not the close icon. */
span.xoo-wsc-ecl {
  width: auto;
  height: auto;
  display: table;
  margin: 0 0 10px auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  color: var(--zsg-wsc-muted);
  background: transparent;
  font-family: inherit !important;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .18s ease;
}

span.xoo-wsc-ecl:hover {
  color: var(--zsg-wsc-red);
}

.xoo-wsc-ft-buttons-cont {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  text-align: center;
}

.xoo-wsc-ft-buttons-cont a.xoo-wsc-ft-btn:only-child {
  grid-column: 1 / -1;
}

a.xoo-wsc-ft-btn,
a.xoo-wsc-ft-btn:not(.btn):not(.button),
.xoo-wsc-modal a.button,
.xoo-wsc-modal button.button,
.xoo-wsc-slider button[name="calc_shipping"],
span.xoo-wsc-sp-atc a.button {
  min-height: 48px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--zsg-wsc-line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--zsg-wsc-ink);
  box-shadow: none;
  font-size: 13.5px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

a.xoo-wsc-ft-btn-checkout {
  order: -1;
  color: #fff !important;
  background: var(--zsg-wsc-red) !important;
  border-color: var(--zsg-wsc-red) !important;
}

a.xoo-wsc-ft-btn-checkout:hover {
  color: #fff !important;
  background: var(--zsg-wsc-red-dark) !important;
  border-color: var(--zsg-wsc-red-dark) !important;
  box-shadow: 0 10px 24px rgba(227, 0, 20, .16);
}

a.xoo-wsc-ft-btn-continue {
  color: var(--zsg-wsc-ink) !important;
  background: #fff !important;
  border-color: var(--zsg-wsc-line-strong) !important;
}

a.xoo-wsc-ft-btn-continue:hover {
  color: var(--zsg-wsc-red) !important;
  background: var(--zsg-wsc-red-soft) !important;
  border-color: var(--zsg-wsc-red-line) !important;
}

/* Slider panels: shipping / coupons */
.xoo-wsc-sl-content {
  display: none;
  overflow: auto;
  flex-direction: column;
  background: var(--zsg-wsc-bg);
}

.xoo-wsc-sl-content[style*="block"] {
  display: flex !important;
}

.xoo-wsc-slc-active.xoo-wsc-sl-content {
  display: block;
}

.xoo-wsc-sl-heading {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  color: var(--zsg-wsc-ink);
  background: linear-gradient(180deg, #f2f5f6 0%, #fbfcfd 100%);
  border-bottom: 1px solid var(--zsg-wsc-line);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 820;
  letter-spacing: -.02em;
}

span.xoo-wsc-slider-close {
  margin: 0 10px 0 0;
}

.xoo-wsc-sl-body {
  padding: 18px;
  flex-grow: 1;
  overflow: auto;
  background: var(--zsg-wsc-bg);
}

ul.xoo-wsc-shipping-methods {
  width: 100%;
  display: grid;
  gap: 8px;
  margin: 0 auto 18px;
  padding: 0;
  list-style: none;
}

ul.xoo-wsc-shipping-methods li {
  margin: 0;
  padding: 11px 13px;
  list-style: none;
  border: 1px solid var(--zsg-wsc-line);
  border-radius: var(--zsg-wsc-radius-sm);
  background: #fff;
}

ul.xoo-wsc-shipping-methods li label {
  cursor: pointer;
}

input.xoo-wsc-shipping-method {
  margin-right: 6px;
  accent-color: var(--zsg-wsc-red);
}

.xoo-wsc-shipping-destination {
  display: block;
  margin: 0 auto 18px;
  color: var(--zsg-wsc-muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.xoo-wsc-shipping-destination span:nth-child(1) {
  color: var(--zsg-wsc-ink);
  font-size: 13px;
  font-weight: 750;
  margin-right: 8px;
}

.select2-dropdown {
  z-index: 999999;
}

.xoo-wsc-slider section.shipping-calculator-form {
  display: block !important;
  margin: 0;
  padding: 0;
}

.xoo-wsc-slider a.shipping-calculator-button {
  display: none;
}

.woocommerce-checkout .xoo-wsc-sl-content.xoo-wsc-sl-shipping,
.woocommerce-checkout .xoo-wsc-ft-amt-label .xoo-wsc-toggle-slider span {
  display: none !important;
}

.woocommerce-checkout .xoo-wsc-ft-amt {
  pointer-events: none;
}

.xoo-wsc-slider button[name="calc_shipping"] {
  display: table;
  margin: 0 auto;
}

.xoo-wsc-slider section.shipping-calculator-form > p {
  margin: 0 0 20px;
  padding: 0;
}

.xoo-wsc-slider section.shipping-calculator-form input,
.xoo-wsc-slider section.shipping-calculator-form select,
form.xoo-wsc-sl-apply-coupon input[type="text"] {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--zsg-wsc-line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--zsg-wsc-ink);
  outline: none;
  font-size: 14px;
  font-weight: 650;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.xoo-wsc-slider section.shipping-calculator-form input:focus,
.xoo-wsc-slider section.shipping-calculator-form select:focus,
form.xoo-wsc-sl-apply-coupon input[type="text"]:focus {
  border-color: rgba(227, 0, 20, .30);
  box-shadow: 0 0 0 3px rgba(227, 0, 20, .08);
}

.xoo-wsc-slider .woocommerce-shipping-calculator {
  padding: 0;
  margin: 0;
}

/* Coupons */
.xoo-wsc-coupon-row {
  padding: 15px;
  border: 1px solid var(--zsg-wsc-line);
  border-radius: var(--zsg-wsc-radius-md);
  background: #fff;
  margin-bottom: 12px;
}

.xoo-wsc-coupon-row:last-child {
  margin-bottom: 0;
}

.xoo-wsc-coupon-row > span {
  display: block;
  margin-bottom: 8px;
}

.xoo-wsc-coupon-row > span:last-child {
  margin-bottom: 0;
}

span.xoo-wsc-cr-code {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--zsg-wsc-red-line);
  border-radius: 999px;
  color: var(--zsg-wsc-red-dark);
  background: var(--zsg-wsc-red-soft);
  font-weight: 800;
  text-transform: uppercase;
}

span.xoo-wsc-cr-off,
.xoo-wsc-sl-applied > div .xoo-wsc-slc-saved {
  color: var(--zsg-wsc-red-dark);
  font-weight: 800;
}

form.xoo-wsc-sl-apply-coupon {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: stretch;
  gap: 9px;
  margin: 18px 0;
  flex-wrap: wrap;
}

.xoo-wsc-sl-applied {
  padding: 0 8px;
  font-size: 13px;
  margin-bottom: 18px;
}

.xoo-wsc-sl-applied > div {
  display: flex;
  text-transform: uppercase;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

span.xoo-wsc-remove-coupon {
  text-transform: uppercase;
  cursor: pointer;
  font-size: 10px;
  margin-left: 2px;
}

span.xoo-wsc-slc-remove {
  font-weight: 800;
}

span.xoo-wsc-slc-remove .xoo-wsc-remove-coupon {
  display: block;
  text-align: right;
}

span.xoo-wsc-clist-label {
  color: var(--zsg-wsc-muted);
  font-weight: 800;
  text-align: center;
  font-size: 11px;
  padding: 0 18px;
  display: block;
  margin: 18px 0;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.xoo-wsc-clist-section {
  border: 1px solid var(--zsg-wsc-line);
  border-radius: var(--zsg-wsc-radius-md);
  background: #fff;
  margin-bottom: 20px;
  font-size: 13px;
  padding: 0 16px;
}

/* Suggested products */
.xoo-wsc-sp-container {
  margin: 12px 0;
}

.xoo-wsc-sp-product {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--zsg-wsc-line);
  border-radius: var(--zsg-wsc-radius-md);
  background: #fff;
  box-shadow: none;
}

.xoo-wsc-sp-left-col {
  width: 74px;
  min-width: 74px;
}

.xoo-wsc-sp-left-col img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  padding: 6px;
  border: 1px solid var(--zsg-wsc-line);
  border-radius: var(--zsg-wsc-radius-sm);
  background: var(--zsg-wsc-bg);
}

.xoo-wsc-sp-right-col {
  padding-left: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  gap: 7px;
}

.xoo-wsc-sp-right-col > span {
  display: block;
}

.xoo-wsc-sp-rc-top {
  padding-bottom: 0;
}

.xoo-wsc-sp-wide .xoo-wsc-sp-rc-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.xoo-wsc-sp-narrow .xoo-wsc-sp-rc-bottom {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex-grow: 1;
}

span.xoo-wsc-sp-atc a.button {
  min-height: 38px;
  padding: 9px 12px;
  color: var(--zsg-wsc-red) !important;
  background: var(--zsg-wsc-red-soft) !important;
  border-color: var(--zsg-wsc-red-line) !important;
  box-shadow: none;
  text-transform: none;
  font-size: 12.5px;
}

span.xoo-wsc-sp-atc a.button span {
  margin-right: 5px;
}

span.xoo-wsc-sp-atc a.button:hover {
  color: #fff !important;
  background: var(--zsg-wsc-red) !important;
  border-color: var(--zsg-wsc-red) !important;
}

.xoo-wsc-sp-container ul.lSPager.lSpg {
  display: none;
}

.xoo-wsc-sp-container .lSAction > a {
  background-size: 50%;
  background-repeat: no-repeat;
  max-width: 22px;
}

.xoo-wsc-sp-container .lSAction > .lSPrev {
  background-image: url(../images/arrow-left.png);
  background-position: center center;
  left: 0;
}

.xoo-wsc-sp-container .lSAction > .lSNext {
  background-image: url(../images/arrow-right.png);
  background-position: center center;
  right: 0;
}

.xoo-wsc-payment-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.xoo-wsc-payment-btns p {
  padding: 0 !important;
  margin: 0 !important;
  display: block;
}

.xoo-wsc-payment-btns > * {
  flex-grow: 1;
  margin-top: 8px !important;
}

.xoo-wsc-payment-btns .widget_shopping_cart {
  margin: 0;
  padding: 0;
}

/* Bundled product */
.xoo-wsc-product.xoo-wsc-is-parent {
  border-bottom: 0;
  padding-bottom: 6px;
}

.xoo-wsc-product.xoo-wsc-is-child {
  padding-top: 8px;
}

.xoo-wsc-product.xoo-wsc-is-child img {
  max-width: 50px;
  margin-left: auto;
  float: right;
}

/* Empty cart */
.xoo-wsc-empty-cart {
  margin: 0;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--zsg-wsc-muted);
  text-align: center;
  background: #fff;
}

.xoo-wsc-empty-cart > * {
  margin-bottom: 12px;
}

/* Loader */
.xoo-wsc-loading .xoo-wsc-loader {
  display: block;
}

span.xoo-wsc-loader {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 30;
  opacity: 1;
  background: rgba(255, 255, 255, .76);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

span.xoo-wsc-loader::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border-radius: 50%;
  border: 3px solid rgba(227, 0, 20, .13);
  border-top-color: var(--zsg-wsc-red);
  animation: zsg-wsc-spin .72s linear infinite;
}

@keyframes zsg-wsc-spin {
  to { transform: rotate(360deg); }
}

/* Shortcode / inline cart trigger */
.xoo-wsc-sc-cont .xoo-wsc-cart-trigger {
  display: flex;
  position: relative;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--zsg-wsc-ink);
}

.xoo-wsc-sc-cont .xoo-wsc-cart-trigger > * {
  margin-right: 0;
}

.xoo-wsc-sc-bki {
  font-size: 25px;
  color: var(--zsg-wsc-ink);
}

span.xoo-wsc-sc-count {
  min-width: 20px;
  width: auto;
  height: 20px;
  line-height: 1;
  padding: 0 5px;
  font-size: 11px;
}

/* Accessible focus states over the plugin's existing interactive DOM. */
.xoo-wsc-modal a:focus-visible,
.xoo-wsc-modal button:focus-visible,
.xoo-wsc-modal input:focus-visible,
.xoo-wsc-modal select:focus-visible,
.xoo-wsc-modal [role="button"]:focus-visible,
.xoo-wsc-modal .xoo-wsc-chng:focus-visible,
.xoo-wsc-modal .xoo-wsch-close:focus-visible,
.xoo-wsc-modal .xoo-wsc-smr-del:focus-visible,
.xoo-wsc-basket:focus-visible {
  outline: 2px solid var(--zsg-wsc-focus);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .xoo-wsc-ft-buttons-cont {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  }

  a.xoo-wsc-ft-btn-checkout {
    order: 0;
  }
}

@media (max-width: 575px) {
  .xoo-wsc-container,
  .xoo-wsc-slider {
    width: 100vw;
    max-width: 100vw;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .xoo-wsc-header {
    padding: 13px 14px;
  }

  .xoo-wsch-top {
    min-height: 44px;
    gap: 10px;
  }

  .xoo-wsch-top .xoo-wsch-basket {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 11px;
  }

  span.xoo-wsch-text {
    font-size: 18px;
  }

  span.xoo-wsch-close,
  span.xoo-wsc-slider-close {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 10px;
  }

  .xoo-wsc-body {
    padding: 0 14px;
  }

  .xoo-wsc-footer {
    padding: 13px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .xoo-wsc-product {
    padding: 14px 0;
    gap: 10px;
  }

  .xoo-wsc-img-col {
    width: 76px;
    min-width: 76px;
  }

  .xoo-wsc-sm-info {
    gap: 8px;
  }

  .xoo-wsc-sm-right {
    min-width: 36px;
    max-width: 54px;
    gap: 8px;
  }

  span.xoo-wsc-pname,
  span.xoo-wsc-pname a {
    font-size: 13.5px;
    line-height: 1.38;
  }

  .xoo-wsc-pprice,
  .xoo-wsc-qty-price,
  span.xoo-wsc-smr-ptotal {
    font-size: 12px;
  }

  span.xoo-wsc-smr-del {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .xoo-wsc-qty-box {
    max-width: 106px;
    height: 36px;
  }

  input[type="number"].xoo-wsc-qty {
    height: 34px;
    line-height: 34px;
  }

  span.xoo-wsc-chng {
    min-width: 34px;
  }

  a.xoo-wsc-ft-btn,
  a.xoo-wsc-ft-btn:not(.btn):not(.button) {
    min-height: 48px;
    font-size: 13px;
  }

  .xoo-wsc-sl-heading {
    padding: 15px;
    font-size: 17px;
  }

  .xoo-wsc-sl-body {
    padding: 15px;
  }
}

@media (max-width: 390px) {
  .xoo-wsc-header {
    padding-inline: 12px;
  }

  .xoo-wsc-body {
    padding-inline: 12px;
  }

  .xoo-wsc-footer {
    padding-inline: 12px;
  }

  .xoo-wsc-img-col {
    width: 68px;
    min-width: 68px;
  }

  .xoo-wsc-product {
    gap: 9px;
  }

  .xoo-wsc-sm-right {
    min-width: 34px;
    max-width: 46px;
  }

  .xoo-wsc-qty-box {
    max-width: 100px;
  }

  span.xoo-wsc-chng {
    min-width: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xoo-wsc-modal *,
  .xoo-wsc-container,
  .xoo-wsc-slider {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
