/* Navibiz — WooCommerce cart and checkout */
:root {
  --su-commerce-bg: #070b13;
  --su-commerce-panel: rgba(11, 17, 30, .92);
  --su-commerce-panel-strong: #0e1626;
  --su-commerce-border: rgba(137, 158, 197, .18);
  --su-commerce-border-active: rgba(166, 108, 255, .62);
  --su-commerce-text: #f4f7ff;
  --su-commerce-muted: #939db3;
  --su-commerce-violet: #a66cff;
  --su-commerce-violet-strong: #8247f5;
  --su-commerce-cyan: #35d8df;
  --su-commerce-success: #39dbab;
  --su-commerce-danger: #ff727f;
  --su-commerce-radius: 18px;
  --su-commerce-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

body.woocommerce-cart .su-site-main,
body.woocommerce-checkout .su-site-main {
  position: relative;
  isolation: isolate;
  min-height: 72vh;
  background:
    radial-gradient(circle at 12% 4%, rgba(139, 69, 246, .13), transparent 31rem),
    radial-gradient(circle at 92% 20%, rgba(53, 216, 223, .07), transparent 28rem),
    var(--su-commerce-bg);
  color: var(--su-commerce-text);
}

body.woocommerce-cart .su-site-main::before,
body.woocommerce-checkout .su-site-main::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .22;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 74%);
}

body.woocommerce-cart .su-page-content,
body.woocommerce-checkout .su-page-content {
  width: min(1300px, calc(100% - 40px));
  margin-inline: auto;
  padding: clamp(42px, 7vw, 90px) 0 clamp(70px, 9vw, 120px);
}

body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-checkout .wp-block-woocommerce-checkout {
  color: var(--su-commerce-text);
  font-family: inherit;
}

.wc-block-components-sidebar-layout {
  flex-wrap: nowrap !important;
}

body.woocommerce-cart .wc-block-cart,
body.woocommerce-checkout .wc-block-checkout {
  gap: clamp(24px, 3vw, 42px);
}

body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-checkout .wc-block-checkout__main {
  padding-right: 0;
}

body.woocommerce-cart .wc-block-cart__sidebar,
body.woocommerce-checkout .wc-block-checkout__sidebar {
  align-self: start;
  padding-left: 0;
}

body.woocommerce-cart .wc-block-cart-items,
body.woocommerce-cart .wc-block-components-sidebar,
body.woocommerce-checkout .wc-block-components-sidebar,
body.woocommerce-checkout .wc-block-checkout__main .wc-block-components-checkout-step,
body.woocommerce-checkout .wc-block-checkout__shipping-method-option,
body.woocommerce-checkout .wc-block-components-radio-control {
  border: 1px solid var(--su-commerce-border);
  border-radius: var(--su-commerce-radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .025), transparent 45%),
    var(--su-commerce-panel);
  box-shadow: var(--su-commerce-shadow);
}

body.woocommerce-cart .wc-block-cart-items {
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
}

body.woocommerce-cart .wc-block-cart-items thead {
  background: rgba(255, 255, 255, .025);
}

body.woocommerce-cart .wc-block-cart-items th {
  padding: 15px 20px !important;
  color: var(--su-commerce-muted);
  border-color: var(--su-commerce-border) !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

body.woocommerce-cart .wc-block-cart-items td {
  padding: 24px 18px !important;
  border-color: var(--su-commerce-border) !important;
  vertical-align: middle;
}

body.woocommerce-cart .wc-block-cart-item__image img,
body.woocommerce-checkout .wc-block-components-order-summary-item__image img {
  border: 1px solid rgba(166, 108, 255, .26);
  border-radius: 14px;
  background: radial-gradient(circle at 30% 20%, rgba(166, 108, 255, .18), rgba(5, 9, 17, .88));
  box-shadow: 0 10px 30px rgba(0, 0, 0, .24), 0 0 24px rgba(166, 108, 255, .08);
}

body.woocommerce-cart .wc-block-components-product-name,
body.woocommerce-checkout .wc-block-components-product-name {
  color: var(--su-commerce-text) !important;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
  transition: color .2s ease;
}

body.woocommerce-cart .wc-block-components-product-name:hover,
body.woocommerce-checkout .wc-block-components-product-name:hover {
  color: var(--su-commerce-violet);
}

body.woocommerce-cart .wc-block-components-product-metadata,
body.woocommerce-cart .wc-block-components-product-details,
body.woocommerce-checkout .wc-block-components-product-metadata,
body.woocommerce-checkout .wc-block-components-product-details {
  color: var(--su-commerce-muted);
  font-size: 14px;
}

body.woocommerce-cart .wc-block-cart-item__prices,
body.woocommerce-cart .wc-block-components-product-price,
body.woocommerce-checkout .wc-block-components-product-price {
  color: var(--su-commerce-text);
  font-weight: 800;
  letter-spacing: -.02em;
}

body.woocommerce-cart .wc-block-components-quantity-selector {
  min-height: 42px;
  overflow: hidden;
  border: 1px solid var(--su-commerce-border);
  border-radius: 12px;
  background: rgba(5, 9, 17, .72);
}

body.woocommerce-cart .wc-block-components-quantity-selector input {
  color: var(--su-commerce-text);
  background: transparent;
  font-weight: 700;
}

body.woocommerce-cart .wc-block-components-quantity-selector button {
  color: var(--su-commerce-muted);
  transition: color .2s ease, background-color .2s ease;
}

body.woocommerce-cart .wc-block-components-quantity-selector button:hover {
  color: var(--su-commerce-text);
  background: rgba(166, 108, 255, .12);
}

body.woocommerce-cart .wc-block-cart-item__remove-link {
  color: var(--su-commerce-muted) !important;
  font-size: 12px;
  text-decoration: none !important;
}

body.woocommerce-cart .wc-block-cart-item__remove-link:hover {
  color: var(--su-commerce-danger) !important;
}

body.woocommerce-cart .wc-block-components-sidebar,
body.woocommerce-checkout .wc-block-components-sidebar {
  position: sticky;
  top: 102px;
  padding: clamp(22px, 2.5vw, 30px) !important;
  overflow: hidden;
}

body.woocommerce-cart .wc-block-components-sidebar::before,
body.woocommerce-checkout .wc-block-components-sidebar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--su-commerce-violet), var(--su-commerce-cyan), transparent 88%);
}

body.woocommerce-cart .wc-block-cart__totals-title,
body.woocommerce-checkout .wc-block-components-checkout-order-summary__title {
  margin: 0;
  color: var(--su-commerce-text);
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: -.025em;
  text-transform: none !important;
}

body.woocommerce-cart .wc-block-components-totals-wrapper,
body.woocommerce-checkout .wc-block-components-totals-wrapper {
  padding: 18px 0;
  border-color: var(--su-commerce-border);
}

body.woocommerce-cart .wc-block-components-totals-item,
body.woocommerce-checkout .wc-block-components-totals-item {
  color: var(--su-commerce-muted);
  font-size: 14px;
}

body.woocommerce-cart .wc-block-components-totals-footer-item,
body.woocommerce-checkout .wc-block-components-totals-footer-item {
  color: var(--su-commerce-text);
  font-size: 17px;
  font-weight: 800;
}

body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  color: var(--su-commerce-violet);
  font-size: 22px;
  letter-spacing: -.025em;
}

body.woocommerce-cart .wc-block-components-totals-coupon-link,
body.woocommerce-checkout .wc-block-components-totals-coupon-link {
  color: var(--su-commerce-cyan);
  text-decoration: none;
  font-weight: 700;
}

.wc-blocks-components-select .wc-blocks-components-select__container {
  background: none !important;
  line-height: 0;
  margin-top: 12px;
  position: relative;
  white-space: nowrap;
}

body.woocommerce-checkout .wc-block-components-radio-control__option {
  padding-left: 50px !important;
}

.wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__label > span {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.woocommerce-cart .wc-block-components-totals-coupon-link:hover,
body.woocommerce-checkout .wc-block-components-totals-coupon-link:hover {
  color: #79f3f6;
}

body.woocommerce-cart .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input,
body.woocommerce-checkout .wc-block-components-textarea,
body.woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__select {
  min-height: 52px;
  border: 1px solid var(--su-commerce-border) !important;
  border-radius: 12px !important;
  background: rgba(5, 9, 17, .72) !important;
  color: var(--su-commerce-text) !important;
  box-shadow: none !important;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

body.woocommerce-checkout .wc-block-components-textarea {
  padding: 14px 16px;
}

body.woocommerce-cart .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input:focus,
body.woocommerce-checkout .wc-block-components-textarea:focus {
  border-color: var(--su-commerce-border-active) !important;
  background: rgba(10, 15, 27, .96) !important;
  box-shadow: 0 0 0 3px rgba(166, 108, 255, .12), 0 0 28px rgba(166, 108, 255, .08) !important;
}

body.woocommerce-cart .wc-block-components-text-input label,
body.woocommerce-checkout .wc-block-components-text-input label,
body.woocommerce-checkout .wc-block-components-combobox label {
  color: var(--su-commerce-muted) !important;
}

body.woocommerce-checkout .wc-block-components-checkbox__label,
body.woocommerce-checkout .wc-block-components-checkbox__label a {
  color: var(--su-commerce-muted);
}

body.woocommerce-checkout .wc-block-components-checkbox__label a {
  color: var(--su-commerce-cyan);
}

body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-cart .wc-block-components-totals-coupon__button,
body.woocommerce-checkout .wc-block-components-totals-coupon__button,
body.woocommerce-cart .wc-block-grid__product-add-to-cart .wp-block-button__link {
  min-height: 52px;
  border: 1px solid rgba(196, 155, 255, .45) !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #9555ff, #7137e8) !important;
  color: #fff !important;
  box-shadow: 0 12px 30px rgba(113, 55, 232, .28), inset 0 1px rgba(255, 255, 255, .18);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

body.woocommerce-cart .wc-block-cart__submit-button:hover,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
body.woocommerce-cart .wc-block-components-totals-coupon__button:hover,
body.woocommerce-checkout .wc-block-components-totals-coupon__button:hover,
body.woocommerce-cart .wc-block-grid__product-add-to-cart .wp-block-button__link:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 16px 36px rgba(113, 55, 232, .38), inset 0 1px rgba(255, 255, 255, .22);
}

body.woocommerce-cart .wc-block-cart__submit-button:focus-visible,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:focus-visible {
  outline: 3px solid rgba(53, 216, 223, .42);
  outline-offset: 3px;
}

body.woocommerce-checkout .wc-block-checkout__main .wc-block-components-checkout-step {
  position: relative;
  margin: 0 0 18px;
  padding: clamp(22px, 3vw, 32px);
  overflow: hidden;
}

body.woocommerce-checkout .wc-block-checkout__main .wc-block-components-checkout-step::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--su-commerce-violet), rgba(53, 216, 223, .55));
}

body.woocommerce-checkout .wc-block-components-checkout-step__heading {
  margin-bottom: 20px;
}

body.woocommerce-checkout .wc-block-components-checkout-step__title {
  color: var(--su-commerce-text);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 800;
  letter-spacing: -.025em;
}

body.woocommerce-checkout .wc-block-components-checkout-step__description {
  color: var(--su-commerce-muted);
  font-size: 14px;
}

body.woocommerce-checkout .wc-block-components-radio-control {
  padding: 8px 16px;
  box-shadow: none;
}

body.woocommerce-checkout .wc-block-components-radio-control__option {
  padding: 16px 8px;
  border-color: var(--su-commerce-border);
}

body.woocommerce-checkout .wc-block-components-radio-control__label,
body.woocommerce-checkout .wc-block-components-radio-control__description {
  color: var(--su-commerce-text);
}

body.woocommerce-checkout .wc-block-components-radio-control__description {
  color: var(--su-commerce-muted);
}

body.woocommerce-checkout .wc-block-components-radio-control__input {
  accent-color: var(--su-commerce-violet);
}

body.woocommerce-cart .wc-block-components-notice-banner,
body.woocommerce-checkout .wc-block-components-notice-banner,
body.woocommerce-cart .woocommerce-message,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-cart .woocommerce-error,
body.woocommerce-checkout .woocommerce-error {
  border: 1px solid var(--su-commerce-border);
  border-radius: 14px;
  background: var(--su-commerce-panel-strong);
  color: var(--su-commerce-text);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
}

body.woocommerce-cart .wc-block-components-notice-banner.is-success,
body.woocommerce-checkout .wc-block-components-notice-banner.is-success {
  border-color: rgba(57, 219, 171, .32);
}

body.woocommerce-cart .wc-block-components-notice-banner.is-error,
body.woocommerce-checkout .wc-block-components-notice-banner.is-error {
  border-color: rgba(255, 114, 127, .35);
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 70px) clamp(18px, 4vw, 44px);
  border: 1px solid var(--su-commerce-border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0, rgba(166, 108, 255, .13), transparent 34rem),
    var(--su-commerce-panel);
  box-shadow: var(--su-commerce-shadow);
  text-align: center;
}

body.woocommerce-cart .wc-block-cart__empty-cart__title {
  margin: 0 0 28px;
  color: var(--su-commerce-text);
  font-size: clamp(25px, 4vw, 42px);
  font-weight: 850;
  letter-spacing: -.04em;
}

body.woocommerce-cart .wc-block-cart__empty-cart__title::before {
  color: var(--su-commerce-violet);
  filter: drop-shadow(0 0 18px rgba(166, 108, 255, .36));
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block>.wp-block-separator {
  width: 74px;
  margin: 22px auto 36px;
  border-color: rgba(166, 108, 255, .45);
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block>h2:not(.wc-block-cart__empty-cart__title) {
  margin: 0 0 28px;
  color: var(--su-commerce-muted);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.woocommerce-cart .wc-block-grid__products {
  margin: 0;
}

body.woocommerce-cart .wc-block-grid__product {
  display: flex;
  flex-direction: column;
  padding: 20px !important;
  border: 1px solid var(--su-commerce-border);
  border-radius: 16px;
  background: rgba(5, 9, 17, .62);
  text-align: left;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

body.woocommerce-cart .wc-block-grid__product:hover {
  transform: translateY(-4px);
  border-color: rgba(166, 108, 255, .38);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .22), 0 0 26px rgba(166, 108, 255, .07);
}

body.woocommerce-cart .wc-block-grid__product-image {
  margin: 0 0 14px !important;
}

body.woocommerce-cart .wc-block-grid__product-image img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 1px solid rgba(166, 108, 255, .24);
  border-radius: 14px;
  background: rgba(166, 108, 255, .08);
}

body.woocommerce-cart .wc-block-grid__product-title {
  min-height: 44px;
  color: var(--su-commerce-text);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.45;
}

body.woocommerce-cart .wc-block-grid__product-price {
  margin: auto 0 16px;
  color: var(--su-commerce-violet);
  font-size: 16px;
  font-weight: 850;
}

body.woocommerce-cart .wc-block-grid__product-add-to-cart {
  margin: 0;
}

body.woocommerce-cart .wc-block-grid__product-add-to-cart .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

body.woocommerce-checkout .wc-block-components-checkout-return-to-cart-button {
  color: var(--su-commerce-muted);
  text-decoration: none;
}

body.woocommerce-checkout .wc-block-components-checkout-return-to-cart-button:hover {
  color: var(--su-commerce-cyan);
}

body.woocommerce-cart .wc-block-components-spinner,
body.woocommerce-checkout .wc-block-components-spinner {
  color: var(--su-commerce-violet);
}

body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart_totals,
body.woocommerce-checkout form.checkout,
body.woocommerce-checkout #order_review {
  color: var(--su-commerce-text);
}

body.woocommerce-cart .woocommerce table.shop_table,
body.woocommerce-checkout .woocommerce table.shop_table,
body.woocommerce-checkout .woocommerce-checkout-review-order,
body.woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-additional-fields {
  border: 1px solid var(--su-commerce-border);
  border-radius: var(--su-commerce-radius);
  background: var(--su-commerce-panel);
}

@media (max-width: 980px) {

  body.woocommerce-cart .su-page-content,
  body.woocommerce-checkout .su-page-content {
    width: min(100% - 28px, 760px);
    padding-top: 34px;
  }

  body.woocommerce-cart .wc-block-components-sidebar,
  body.woocommerce-checkout .wc-block-components-sidebar {
    position: static;
    margin-top: 22px;
  }

  body.woocommerce-cart .wc-block-cart-items td {
    padding: 18px 12px !important;
  }
}

@media (max-width: 620px) {

  body.woocommerce-cart .su-page-content,
  body.woocommerce-checkout .su-page-content {
    width: min(100% - 20px, 560px);
    padding: 24px 0 64px;
  }

  body.woocommerce-cart .wc-block-components-sidebar,
  body.woocommerce-checkout .wc-block-components-sidebar,
  body.woocommerce-checkout .wc-block-checkout__main .wc-block-components-checkout-step {
    padding: 18px !important;
    border-radius: 15px;
  }

  body.woocommerce-cart .wc-block-cart-items td {
    padding: 16px 10px !important;
  }

  body.woocommerce-cart .wc-block-cart-item__image {
    width: 70px;
  }

  body.woocommerce-cart .wc-block-components-product-name {
    font-size: 14px;
  }

  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block {
    padding: 34px 12px;
    border-radius: 18px;
  }

  body.woocommerce-cart .wc-block-grid__products {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.woocommerce-cart .wc-block-grid__product {
    width: 100% !important;
    max-width: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {

  body.woocommerce-cart *,
  body.woocommerce-checkout * {
    scroll-behavior: auto !important;
  }

  body.woocommerce-cart .wc-block-grid__product,
  body.woocommerce-cart .wc-block-cart__submit-button,
  body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
    transition: none !important;
  }
}