/* Cart redesign (#892): layout, drawer, and standalone PayPal card pill clip. */
.v892-cart,
.v892-drawer,
#astra-mobile-cart-drawer {
  --panel: #191817;
  --line: #35312b;
  --ink: #f8f5f0;
  --muted: #c6bfb5;
  --accent: #ffa900;
}

.v892-cart #content .woocommerce {
  color: var(--ink);
}

.v892-cart #primary {
  padding-top: 0;
}

.v892-cart #primary .entry-content:has(.v892-grid),
.v892-cart #primary .entry-content :has(.v892-grid) {
  --wp--style--block-gap: 0;
}

.v892-cart #primary .uagb-container-inner-blocks-wrap:has(.v892-grid) {
  padding-block: 0;
}

.v892-cart #primary .wp-block-uagb-container:has(.v892-grid) {
  padding-block: 0 36px !important;
}

.v892-cart .woocommerce-notices-wrapper {
  max-width: 1200px;
  margin: 0 auto 12px;
}

.v892-cart .woocommerce-notices-wrapper:empty,
.v892-cart .woocommerce-notices-wrapper:not(:has(> :not([hidden]))) {
  display: none;
  margin: 0;
}

.v892-cart .woocommerce-notices-wrapper :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
  background: var(--panel) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  border-top: 3px solid var(--accent) !important;
  border-radius: 10px;
  padding: 13px 16px 13px 44px;
  margin: 0 0 10px;
  font-size: 14px;
}

.v892-cart .woocommerce-notices-wrapper .woocommerce-error {
  border-top-color: #d9534f !important;
}

.v892-cart .v892-intro {
  max-width: 1200px;
  margin: 0 auto 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.v892-cart #content .v892-intro h1 {
  font: 700 24px/1.2 Rubik, sans-serif;
  font-size: 24px !important;
  letter-spacing: normal;
  margin: 0;
  color: var(--ink);
}

.v892-cart .v892-intro .v892-r2-back {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font: 500 14px/1.3 Rubik, sans-serif;
  white-space: nowrap;
  color: var(--muted) !important;
  text-decoration: none;
}

.v892-cart .v892-intro .v892-r2-back:hover {
  color: var(--accent) !important;
}

.v892-cart .v892-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .60fr);
  grid-template-areas:
    "items summary"
    "suggestions summary";
  gap: 24px 32px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.v892-cart .v892-grid.v892-grid--empty,
.v892-cart .v892-grid:has(.v892-empty) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "items";
}

.v892-cart #content .woocommerce .v892-grid .v892-items,
.v892-cart #content .woocommerce .v892-grid .v892-suggestions,
.v892-cart .v892-items,
.v892-cart .v892-suggestions {
  border: 1px solid var(--line) !important;
  border-radius: 18px;
  padding: 18px;
  background: var(--panel) !important;
  margin: 0;
}

.v892-cart .v892-items {
  grid-area: items;
}

.v892-cart .v892-suggestions {
  grid-area: suggestions;
}

.v892-cart .v892-heading,
.v892-cart .v892-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.v892-cart .v892-heading {
  margin-bottom: 12px;
}

.v892-cart .v892-heading h2,
.v892-cart .v892-summary-head h2,
.v892-cart .cart-collaterals .cart_totals .v892-summary-head h2 {
  font-size: 20px;
  letter-spacing: -.025em;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  color: var(--ink) !important;
}

.v892-cart .v892-product,
.v892-cart .v892-recommendation {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.v892-cart .v892-product {
  padding-inline: 8px;
  margin-inline: -8px;
}

.v892-cart .v892-product img,
.v892-cart .v892-recommendation img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 9px;
}

.v892-cart .v892-grid .v892-name {
  font-weight: 650;
  line-height: 1.24;
  display: inline-block;
  color: var(--ink) !important;
  font-size: 14px;
  text-decoration: none;
}

.v892-cart .v892-grid .v892-name:hover {
  color: var(--accent) !important;
  text-decoration: underline;
}

.v892-cart .v892-meta {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin-top: 5px;
}

.v892-cart .v892-rec-error {
  display: block;
  color: #ff9b93;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 4px;
}

.v892-cart .v892-row-end {
  display: grid;
  justify-items: end;
  gap: 5px;
  font-variant-numeric: tabular-nums;
}

.v892-cart .v892-row-end strong {
  color: var(--ink);
}

.v892-cart .v892-grid :is(a, button).v892-plain {
  display: inline-flex;
  align-items: center;
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  color: var(--muted) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 4px 0;
  min-height: 24px;
  font-size: 12px;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: underline;
  cursor: pointer;
  transform: none !important;
}

.v892-cart .v892-grid :is(a, button).v892-plain:hover {
  background: transparent !important;
  color: var(--accent) !important;
  box-shadow: none !important;
  transform: none !important;
}

.v892-cart .v892-grid button.v892-add {
  color: var(--accent) !important;
  border: 1px solid #8c641e !important;
  border-radius: 8px !important;
  background: #211c14 !important;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 600 !important;
  min-height: 44px;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none !important;
  cursor: pointer;
}

.v892-cart .v892-grid button.v892-add:hover {
  color: #18120a !important;
  background: var(--accent) !important;
  box-shadow: none !important;
  transform: none !important;
}

.v892-cart .v892-grid button.v892-add:disabled {
  opacity: .55;
  cursor: default;
}

.v892-cart .v892-recommendation:last-child {
  padding-bottom: 0;
}

.v892-cart .v892-grid button.v892-more {
  margin-top: 12px;
  font-size: 13px;
}

.v892-cart .v892-empty {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

/* R7 compact always-visible coupon row */
.v892-cart .v892-r6-coupon {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.v892-cart .v892-grid .v892-r6-coupon :is(input[type="text"], button.v892-add) {
  box-sizing: border-box;
  height: 36px;
  min-height: 36px;
  margin: 0;
  border: 1px solid #3f3a32 !important;
  border-radius: 6px !important;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400 !important;
  line-height: 1;
  box-shadow: none !important;
}

.v892-cart .v892-grid .v892-r6-coupon input[type="text"] {
  flex: 0 1 160px;
  width: 160px;
  min-width: 0;
  padding: 0 10px;
  background: #141312 !important;
  color: var(--ink) !important;
}

.v892-cart .v892-grid .v892-r6-coupon input[type="text"]::placeholder {
  color: var(--muted) !important;
  opacity: 0.78;
}

.v892-cart .v892-grid .v892-r6-coupon input[type="text"]:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 2px;
  border-color: #6b5739 !important;
  box-shadow: none !important;
}

.v892-cart .v892-grid .v892-r6-coupon button.v892-add {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: #1f1d1a !important;
  color: var(--accent) !important;
  letter-spacing: 0;
  text-transform: none;
}

.v892-cart .v892-grid .v892-r6-coupon button.v892-add:hover {
  background: #28241e !important;
  border-color: #6b5739 !important;
  color: var(--accent) !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Order summary card */
.v892-cart .v892-cart-summary.cart-collaterals {
  grid-area: summary;
  position: sticky;
  top: 18px;
  width: auto !important;
  min-width: 0;
  float: none !important;
  margin: 0 !important;
}

@media (min-width: 741px) {
  .v892-cart .v892-cart-summary.cart-collaterals {
    top: calc(var(--v892-fixed-header, 0px) + 18px);
    align-self: start;
  }
}

.v892-cart .v892-cart-summary.cart-collaterals .cart_totals {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  border: 1px solid var(--line) !important;
  border-radius: 20px !important;
  background: linear-gradient(160deg, #2a2117 0, #1b1917 44%, #191817 100%) !important;
  padding: 20px !important;
  color: var(--ink) !important;
  box-shadow: 0 16px 36px #0004;
}

.v892-cart .v892-summary-head {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.v892-cart .v892-cart-summary .cart_totals > h2 {
  display: none !important;
}

.v892-cart .v892-cart-summary .cart_totals table.shop_table {
  display: table;
  width: 100%;
  border: 0 !important;
  margin: 10px 0 0 !important;
  background: transparent !important;
}

.v892-cart .v892-cart-summary .cart_totals table.shop_table tr {
  display: table-row;
}

.v892-cart .v892-cart-summary .cart_totals table.shop_table :is(th, td) {
  display: table-cell;
  background: transparent !important;
  border: 0 !important;
  padding: 5px 0 !important;
  color: var(--muted) !important;
  font-size: 14px;
  font-weight: 400;
  text-align: left !important;
}

.v892-cart .v892-cart-summary .cart_totals table.shop_table td {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
}

.v892-cart .v892-cart-summary .cart_totals table.shop_table td::before {
  content: none !important;
}

.v892-cart .v892-cart-summary .cart_totals .cart-discount a.woocommerce-remove-coupon {
  color: var(--accent) !important;
  margin-left: 6px;
  font-size: 12px;
}

.v892-cart .v892-cart-summary .cart_totals .order-total :is(th, td) {
  border-top: 1px solid var(--line) !important;
  padding-top: 10px !important;
  color: var(--ink) !important;
  font-weight: 700 !important;
}

.v892-cart .v892-cart-summary .order-total td {
  font-size: 24px !important;
  letter-spacing: -.035em;
}

.v892-cart .v892-cart-summary .order-total td .amount {
  color: var(--ink) !important;
  font-weight: 750;
}

.v892-cart .wc-proceed-to-checkout {
  padding: 12px 0 0;
}

.v892-cart .wc-proceed-to-checkout a.checkout-button,
.v892-drawer .astra-cart-drawer-content a.checkout,
#astra-mobile-cart-drawer .astra-cart-drawer-content a.checkout {
  display: grid;
  place-items: center;
  min-height: 48px;
  width: 100%;
  border: 0 !important;
  border-radius: 10px !important;
  background: var(--accent) !important;
  color: #14100a !important;
  font-weight: 750 !important;
  font-size: 16px;
  padding: 8px 14px;
  line-height: 1.2;
  text-transform: none !important;
  letter-spacing: 0 !important;
  margin: 0;
  box-shadow: none !important;
}

.v892-cart .wc-proceed-to-checkout a.checkout-button:hover,
.v892-drawer .astra-cart-drawer-content a.checkout:hover,
#astra-mobile-cart-drawer .astra-cart-drawer-content a.checkout:hover {
  background: #ffc054 !important;
  color: #14100a !important;
  box-shadow: none !important;
  transform: none !important;
}

.v892-cart .wc-ppcp-cart-payments__container,
.v892-cart #wc-ppcp-cart-button-container,
.v892-cart #wc-ppcp-cart-button-container .paypal-buttons {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

.v892-cart .v892-r2-facts {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid #42372a;
  list-style: none;
  color: var(--muted);
  font: 400 13px/1.4 Rubik, sans-serif;
}

.v892-cart .v892-r2-facts li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.v892-cart .v892-r2-facts li::before {
  content: '';
  flex: 0 0 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  align-self: center;
}

.v892-cart [hidden],
.v892-drawer [hidden],
#astra-mobile-cart-drawer [hidden] {
  display: none !important;
}

.v892-cart a:focus-visible,
.v892-cart button:focus-visible,
.v892-drawer a:focus-visible,
.v892-drawer button:focus-visible,
#astra-mobile-cart-drawer a:focus-visible,
#astra-mobile-cart-drawer button:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 3px;
}

@media (max-width: 740px) {
  .v892-cart .v892-intro,
  .v892-cart .v892-grid,
  .v892-cart .woocommerce-notices-wrapper {
    width: calc(100% - 40px);
  }
  .v892-cart .v892-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "items"
      "summary"
      "suggestions";
    gap: 14px;
  }
  .v892-cart .v892-cart-summary.cart-collaterals {
    position: static;
  }
  .v892-cart .v892-intro {
    margin-bottom: 10px;
  }
  .v892-cart .v892-intro .v892-r2-back {
    font-size: 13px;
  }
  .v892-cart #content .woocommerce .v892-grid .v892-items,
  .v892-cart #content .woocommerce .v892-grid .v892-suggestions,
  .v892-cart .v892-items,
  .v892-cart .v892-suggestions,
  .v892-cart .v892-cart-summary.cart-collaterals .cart_totals {
    padding: 14px !important;
    border-radius: 14px !important;
  }
  .v892-cart .v892-heading h2,
  .v892-cart .v892-summary-head h2 {
    font-size: 18px;
  }
  .v892-cart .v892-product,
  .v892-cart .v892-recommendation {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 9px;
  }
  .v892-cart .v892-product img,
  .v892-cart .v892-recommendation img {
    width: 48px;
    height: 48px;
  }
  .v892-cart .v892-r2-facts {
    font-size: 12px;
  }
}

/* Clip the outer PayPal iframe to pill shape ONLY for standalone pill funding buttons (PayPal / Debit or Credit Card). */
iframe.v892-paypal-card,
#wc-ppcp-cart-button-container .paypal-buttons[style*="height: 40px"]:not(:has(> iframe.component-frame ~ iframe.component-frame)) > iframe.component-frame:is([title="PayPal-card"], [title="PayPal-paypal"]),
#payment .wc-ppcp-checkout-container .paypal-buttons[style*="height: 40px"]:not(:has(> iframe.component-frame ~ iframe.component-frame)) > iframe.component-frame:is([title="PayPal-card"], [title="PayPal-paypal"]),
#astra-mobile-cart-drawer .paypal-buttons[style*="height: 40px"]:not(:has(> iframe.component-frame ~ iframe.component-frame)) > iframe.component-frame:is([title="PayPal-card"], [title="PayPal-paypal"]) {
  border-radius: 999px !important;
  clip-path: inset(0 round 999px);
}

#wc-ppcp-cart-button-container .paypal-buttons:has(> iframe.v892-paypal-card:focus-visible),
#payment .wc-ppcp-checkout-container .paypal-buttons:has(> iframe.v892-paypal-card:focus-visible),
#astra-mobile-cart-drawer .paypal-buttons:has(> iframe.v892-paypal-card:focus-visible) {
  outline: 2px solid #ffa900;
  outline-offset: 3px;
  border-radius: 999px;
}

/* Astra slide-in cart drawer (#astra-mobile-cart-drawer) */
#astra-mobile-cart-drawer.astra-cart-drawer {
  width: min(100%, 440px);
  max-width: 100%;
  background: #141312 !important;
  color: var(--ink);
  box-shadow: -18px 0 50px #0008;
}

#astra-mobile-cart-drawer.astra-cart-drawer.active {
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
  z-index: 2147482001 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  transform: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}

html.ast-mobile-cart-active .astra-mobile-cart-overlay {
  z-index: 2147482000 !important;
}

@media (min-width: 741px) {
  #astra-mobile-cart-drawer.astra-cart-drawer.active {
    top: 12px !important;
    bottom: 12px !important;
    right: 12px !important;
    height: auto !important;
    border: 1px solid #423b31 !important;
    border-radius: 18px;
  }
}

#astra-mobile-cart-drawer .astra-cart-drawer-header {
  position: relative !important;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 20px !important;
  border-bottom-color: var(--line) !important;
  min-height: 70px;
}

#astra-mobile-cart-drawer .astra-cart-drawer-title {
  color: var(--ink) !important;
  font-size: 26px !important;
  font-weight: 750;
  letter-spacing: -.035em;
  text-transform: none !important;
}

#astra-mobile-cart-drawer .astra-cart-drawer-header .astra-cart-drawer-close {
  min-width: 44px;
  min-height: 44px;
  color: var(--ink) !important;
  background: #22201d !important;
  border: 1px solid var(--line) !important;
  border-radius: 9px !important;
  box-shadow: none !important;
  right: 16px;
}

#astra-mobile-cart-drawer .astra-cart-drawer-header .astra-cart-drawer-close:hover {
  color: var(--ink) !important;
  background: #2c2925 !important;
  border-color: #4f483e !important;
  box-shadow: none !important;
  transform: none !important;
}

#astra-mobile-cart-drawer .astra-cart-drawer-content {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  flex: 1;
  min-height: 0;
  height: auto !important;
  padding: 0 !important;
  overflow: hidden;
}

#astra-mobile-cart-drawer .widget_shopping_cart,
#astra-mobile-cart-drawer .widget_shopping_cart_content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  position: static !important;
}

#astra-mobile-cart-drawer .widget_shopping_cart_content .woocommerce-mini-cart {
  margin: 0;
  padding: 14px 16px;
  flex: 1;
  min-height: 0;
  overflow: auto;
}

#astra-mobile-cart-drawer .woocommerce-mini-cart .woocommerce-mini-cart-item {
  position: relative;
  display: flow-root;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 12px 36px 12px 12px !important;
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.3;
  min-height: 80px;
}

#astra-mobile-cart-drawer .woocommerce-mini-cart-item img {
  position: static !important;
  float: left !important;
  width: 56px !important;
  margin: 0 12px 0 0 !important;
  border-radius: 7px;
  top: auto !important;
  transform: none !important;
}

#astra-mobile-cart-drawer .woocommerce-mini-cart-item .quantity {
  color: var(--muted);
  margin-top: 5px;
}

#astra-mobile-cart-drawer .woocommerce-mini-cart-item a:not(.remove) {
  color: var(--ink) !important;
  font-weight: 650;
}

#astra-mobile-cart-drawer .woocommerce-mini-cart-item .remove {
  right: 8px;
  left: auto;
}

#astra-mobile-cart-drawer .widget_shopping_cart_content .woocommerce-mini-cart__total,
#astra-mobile-cart-drawer .widget_shopping_cart_content .woocommerce-mini-cart__buttons {
  position: static !important;
  flex: none;
  margin: 0;
  padding: 14px 20px;
  background: #211b14;
}

#astra-mobile-cart-drawer .widget_shopping_cart_content .woocommerce-mini-cart__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line);
}

#astra-mobile-cart-drawer .woocommerce-mini-cart__total .amount {
  font-size: 24px;
  color: var(--ink);
  font-weight: 750;
}

#astra-mobile-cart-drawer .widget_shopping_cart_content .woocommerce-mini-cart__buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 0;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

#astra-mobile-cart-drawer .woocommerce-mini-cart__buttons a.checkout {
  order: -1;
}

#astra-mobile-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__buttons a.wc-forward:not(.checkout) {
  display: grid;
  place-items: center;
  width: 100%;
  background: transparent !important;
  color: var(--ink) !important;
  border: 1px solid #766651 !important;
  border-radius: 10px !important;
  min-height: 44px;
  padding: 8px 14px;
  margin: 0;
  text-transform: none !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}

#astra-mobile-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__buttons a.wc-forward:not(.checkout):hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: #8c7a61 !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  transform: none !important;
}
