/**
 * Glory Grab Child — Cart & Checkout
 * ----------------------------------
 * Loaded only on is_cart() / is_checkout() pages.
 *
 * EDIT COLORS / SPACING:
 *   Reuses parent theme tokens from styles.css (:root):
 *   --black, --white, --bg, --gray, --gray-mid, --yellow, --font, --pad
 *
 *   Prefer changing those parent variables, or override below under
 *   "Local tokens" if you need cart/checkout-only tweaks.
 */

/* Local tokens (safe to edit) */
.gg-woo-cart-page,
.gg-woo-checkout-page {
  --gg-woo-radius: 0; /* theme uses square corners */
  --gg-woo-border: 1px solid #e5e5e5;
  --gg-woo-input-h: 48px;
  --gg-woo-gap: clamp(24px, 4vw, 48px);
}

/* ==========================================================================
   Shared page chrome
   ========================================================================== */
.gg-woo-cart,
.gg-woo-checkout,
.gg-woo-thankyou {
  padding-top: 16px;
  padding-bottom: 96px;
}

/* ==========================================================================
   Checkout progress steps (01 / 02 / 03)
   ========================================================================== */
.gg-checkout-steps {
  margin: 0 0 28px;
}

.gg-checkout-steps__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gg-checkout-steps__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 12px 16px;
  border: 1px solid #e5e5e5;
  background: #f5f5f5;
  color: #888;
  text-decoration: none;
  font-family: var(--font, "Poppins", sans-serif);
}

.gg-checkout-steps__item.is-current .gg-checkout-steps__link,
.gg-checkout-steps__item.is-done .gg-checkout-steps__link {
  border-color: #111;
  background: #111;
  color: #fff;
}

.gg-checkout-steps__item.is-done .gg-checkout-steps__link {
  background: #222;
}

a.gg-checkout-steps__link:hover {
  border-color: #111;
  color: #111;
}

.gg-checkout-steps__item.is-current a.gg-checkout-steps__link:hover,
.gg-checkout-steps__item.is-done a.gg-checkout-steps__link:hover {
  color: #fff;
  opacity: 0.92;
}

.gg-checkout-steps__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gg-checkout-steps__num {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  opacity: 0.35;
}

.gg-checkout-steps__item.is-current .gg-checkout-steps__num,
.gg-checkout-steps__item.is-done .gg-checkout-steps__num {
  opacity: 0.45;
  color: #fff;
}

.gg-woo-cart__header,
.gg-woo-checkout__header {
  padding-top: 16px;
  padding-bottom: 28px;
}

.gg-woo-cart__title,
.gg-woo-checkout__title {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--black);
}

.gg-woo-cart__lead {
  margin: 10px 0 0;
  max-width: 36rem;
  color: #666;
  font-size: 15px;
  line-height: 1.5;
}

/* ==========================================================================
   CART LAYOUT — table left, totals sticky right
   ========================================================================== */
.gg-woo-cart__layout.custom-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.8fr);
  grid-template-areas:
    "form totals"
    "cross cross";
  gap: var(--gg-woo-gap);
  align-items: start;
}

.gg-woo-cart__form {
  grid-area: form;
  min-width: 0;
}

/* Let cart_totals + cross-sells participate in parent grid */
.gg-woo-cart__collaterals {
  display: contents;
}

.gg-woo-cart .cart_totals.custom-cart-totals {
  grid-area: totals;
}

.gg-woo-cart .cross-sells {
  grid-area: cross;
  margin-top: 8px;
}

/* Table */
.gg-woo-cart table.shop_table.cart {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  background: transparent;
}

.gg-woo-cart table.shop_table.cart thead th {
  padding: 0 12px 14px;
  border: 0;
  border-bottom: 1px solid #111;
  background: none;
  color: #111;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
}

.gg-woo-cart table.shop_table.cart tbody td {
  padding: 24px 12px;
  border: 0;
  border-bottom: var(--gg-woo-border);
  background: none;
  vertical-align: middle;
  font-family: var(--font);
  font-size: 15px;
  color: var(--black);
}

.gg-woo-cart table.shop_table.cart .product-remove {
  width: 32px;
  padding-left: 0;
}

.gg-woo-cart table.shop_table.cart .product-remove .remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0 !important;
  border-radius: var(--gg-woo-radius) !important;
  background: transparent !important;
  color: var(--gray) !important;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
}

.gg-woo-cart table.shop_table.cart .product-remove .remove:hover {
  color: var(--black) !important;
}

.gg-woo-cart table.shop_table.cart .product-thumbnail {
  width: 92px;
}

.gg-woo-cart table.shop_table.cart .product-thumbnail a {
  display: block;
  width: 80px;
  height: 100px;
  overflow: hidden;
  background: var(--bg);
}

.gg-woo-cart table.shop_table.cart .product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gg-woo-cart table.shop_table.cart .product-name a {
  color: var(--black);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.4;
}

.gg-woo-cart table.shop_table.cart .product-name a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gg-woo-cart .gg-cart-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 10px;
}

.gg-woo-cart .gg-cart-item-price {
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

.gg-woo-cart .gg-cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gg-woo-cart table.shop_table.cart .product-name .variation {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray);
}

.gg-woo-cart table.shop_table.cart .product-name .variation dt,
.gg-woo-cart table.shop_table.cart .product-name .variation dd {
  float: none;
  display: inline;
  margin: 0;
}

.gg-woo-cart table.shop_table.cart .product-name .variation dd p {
  display: inline;
  margin: 0;
}

.gg-woo-cart table.shop_table.cart .product-price,
.gg-woo-cart table.shop_table.cart .product-subtotal {
  white-space: nowrap;
  font-weight: 600;
}

.gg-woo-cart table.shop_table.cart .product-subtotal {
  text-align: right;
  padding-right: 0;
  font-weight: 700;
}

.gg-woo-cart table.shop_table.cart thead th.product-subtotal {
  text-align: right;
  padding-right: 0;
}

/* Quantity stepper — pill (− / qty / +) matching PDP */
.gg-woo-cart table.shop_table.cart .quantity,
.gg-woo-cart .gg-qty {
  display: inline-flex;
  align-items: center;
  float: none;
  margin: 0;
  height: 40px;
  border: 1px solid var(--black);
  background: var(--white);
  border-radius: 999px;
  overflow: hidden;
}

.gg-woo-cart table.shop_table.cart .quantity .qty,
.gg-woo-cart .gg-qty .qty {
  width: 44px;
  min-width: 44px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  -moz-appearance: textfield;
  appearance: textfield;
  box-shadow: none;
}

.gg-woo-cart .quantity .qty::-webkit-outer-spin-button,
.gg-woo-cart .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.gg-woo-cart .gg-qty-arrows {
  display: none !important;
}

.gg-woo-cart .gg-qty-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  color: var(--black);
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.gg-woo-cart .gg-qty-btn:hover:not(:disabled) {
  background: var(--bg);
}

.gg-woo-cart .gg-qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.gg-woo-cart .gg-qty-btn:active:not(:disabled) {
  background: var(--black);
  color: var(--white);
}

.gg-woo-cart tr.cart_item.is-updating {
  opacity: 0.55;
  pointer-events: none;
}

/* Coupon + update row removed from template; hide leftover action cell */
.gg-woo-cart__actions-hidden,
.gg-woo-cart table.shop_table.cart td.actions {
  display: none;
  padding: 0;
  border: 0;
}

.gg-woo-cart .coupon {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  float: left;
}

.gg-woo-cart .coupon .input-text {
  min-width: 180px;
  height: var(--gg-woo-input-h);
  padding: 0 14px;
  border: 1px solid var(--gray-mid);
  border-radius: var(--gg-woo-radius);
  background: var(--white);
  font-family: var(--font);
  font-size: 14px;
}

.gg-woo-cart .coupon .button,
.gg-woo-cart button[name="update_cart"] {
  min-height: var(--gg-woo-input-h);
  padding: 0 22px;
  border: 1px solid var(--black);
  border-radius: var(--gg-woo-radius);
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.gg-woo-cart .coupon .button:hover,
.gg-woo-cart button[name="update_cart"]:hover {
  background: var(--white);
  color: var(--black);
}

.gg-woo-cart button[name="update_cart"] {
  float: right;
  background: var(--white);
  color: var(--black);
}

.gg-woo-cart button[name="update_cart"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Cart totals box */
.gg-woo-cart .cart-collaterals {
  width: 100%;
  margin: 0;
}

.gg-woo-cart .cart_totals.custom-cart-totals {
  width: 100%;
  padding: 28px 26px 24px;
  border: 0;
  background: #f6f6f6;
  position: sticky;
  top: 24px;
}

.gg-woo-cart .cart_totals > h2 {
  margin: 0 0 8px;
  padding: 0 0 16px;
  border-bottom: 1px solid #e5e5e5;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
}

.gg-cart-coupon {
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e5e5;
}

.gg-cart-coupon__summary {
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.gg-cart-coupon__summary::-webkit-details-marker {
  display: none;
}

.gg-cart-coupon__summary::after {
  content: "+";
  float: right;
  font-weight: 700;
}

.gg-cart-coupon__details[open] .gg-cart-coupon__summary::after {
  content: "−";
}

.gg-cart-coupon__row,
.gg-checkout-coupon__row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.gg-cart-coupon__row .input-text,
.gg-checkout-coupon__row .input-text {
  flex: 1 1 auto;
  min-width: 0;
  min-height: var(--gg-woo-input-h);
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 0;
  background: #fff;
  font: inherit;
}

.gg-cart-coupon__row .button,
.gg-checkout-coupon__row .button {
  flex: 0 0 auto;
  min-height: var(--gg-woo-input-h);
  padding: 10px 16px;
  border: 1px solid #111 !important;
  border-radius: 0 !important;
  background: #111 !important;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.gg-checkout-coupon {
  margin: 0 0 20px;
}

.gg-checkout-coupon-form-external {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}

.gg-checkout-coupon__form {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.gg-woo-cart .cart_totals table.shop_table {
  width: 100%;
  margin: 0 0 20px;
  border: 0;
}

.gg-woo-cart .cart_totals table.shop_table th,
.gg-woo-cart .cart_totals table.shop_table td {
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid #e5e5e5;
  background: none;
  font-family: var(--font);
  font-size: 14px;
  vertical-align: top;
}

.gg-woo-cart .cart_totals table.shop_table th {
  text-align: left;
  font-weight: 500;
  color: #555;
}

.gg-woo-cart .cart_totals table.shop_table td {
  text-align: right;
  font-weight: 600;
  color: var(--black);
}

.gg-woo-cart .cart_totals .order-total th,
.gg-woo-cart .cart_totals .order-total td {
  border-bottom: 0;
  padding-top: 18px;
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
}

.gg-woo-cart .cart_totals .order-total .amount {
  font-size: 22px;
}

.gg-woo-cart .wc-proceed-to-checkout {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  margin: 0;
}

.gg-woo-cart .wc-proceed-to-checkout .checkout-button,
.gg-woo-cart .wc-proceed-to-checkout a.button.alt,
.gg-woo-cart-page .woocommerce a.checkout-button.button.alt,
.woocommerce-cart .gg-woo-cart a.checkout-button.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 14px 18px;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--black) !important;
  background-color: var(--black) !important;
  color: var(--white) !important;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: none !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.gg-woo-cart .cart-continue {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gg-woo-cart .wc-proceed-to-checkout .checkout-button:hover,
.gg-woo-cart .wc-proceed-to-checkout a.button.alt:hover,
.gg-woo-cart-page .woocommerce a.checkout-button.button.alt:hover,
.woocommerce-cart .gg-woo-cart a.checkout-button.button:hover {
  background: var(--white) !important;
  background-color: var(--white) !important;
  color: var(--black) !important;
  border-color: var(--black) !important;
  opacity: 1;
}

/* Cross-sells */
.gg-woo-cart .cross-sells > h2 {
  margin: 0 0 24px;
  font-family: var(--font);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  text-transform: uppercase;
}

/* Empty cart: hide any leftover page chrome; compose a centered empty state. */
body.gg-woo-cart-is-empty > .wrap > .page-hero {
  display: none;
}

.gg-woo-cart--empty {
  padding-top: 24px;
  padding-bottom: 96px;
}

.gg-woo-cart__empty-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(56px, 10vh, 96px) 16px clamp(64px, 9vh, 88px);
  max-width: 640px;
  margin: 0 auto;
}

.gg-woo-cart__empty-hero h1 {
  margin: 0 0 14px;
  font-family: var(--font);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--black);
}

.gg-woo-cart__empty-hero p {
  margin: 0;
  max-width: 420px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  color: #555;
}

.gg-woo-cart__empty-hero .btn {
  margin-top: 28px;
  display: inline-flex;
  min-height: 56px;
  padding: 16px 48px;
  border: 0;
  border-radius: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
  line-height: 23px;
  letter-spacing: 0;
  text-transform: capitalize;
  text-decoration: none;
}

.gg-woo-cart__empty-hero .btn:hover {
  background: #222;
  color: var(--white);
}

.gg-woo-cart__suggest {
  padding: 48px 0 0;
  margin-top: 8px;
  border-top: 1px solid #ececec;
}

.gg-woo-cart__suggest .section-title {
  margin: 0 0 32px;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.25;
  text-transform: capitalize;
}

.gg-woo-cart__suggest .product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.gg-woo-cart__suggest .product-card .swatches {
  display: none;
}

/* ==========================================================================
   CHECKOUT — two columns: fields | sticky order summary
   ========================================================================== */
.gg-woo-checkout__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.85fr);
  gap: var(--gg-woo-gap);
  align-items: start;
}

.gg-woo-checkout__sidebar.custom-checkout-summary {
  position: sticky;
  top: 24px;
  padding: 28px 24px;
  border: var(--gg-woo-border);
  background: var(--bg);
}

.gg-woo-checkout #order_review_heading {
  margin: 0 0 16px;
  padding: 0 0 14px;
  border-bottom: var(--gg-woo-border);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gg-woo-checkout .woocommerce-billing-fields > h3,
.gg-woo-checkout .woocommerce-shipping-fields > h3,
.gg-woo-checkout .woocommerce-additional-fields > h3 {
  margin: 0 0 20px;
  padding: 0 0 12px;
  border-bottom: var(--gg-woo-border);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gg-woo-checkout .col2-set {
  display: block;
  width: 100%;
}

.gg-woo-checkout .col2-set .col-1,
.gg-woo-checkout .col2-set .col-2 {
  float: none;
  width: 100%;
  max-width: none;
}

.gg-woo-checkout .col-2 {
  margin-top: 32px;
}

/* Form fields */
.gg-woo-checkout .form-row {
  margin: 0 0 16px;
  padding: 0;
}

.gg-woo-checkout .form-row label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #444;
}

.gg-woo-checkout .form-row .required {
  color: #b42318;
  text-decoration: none;
}

.gg-woo-checkout .form-row input.input-text,
.gg-woo-checkout .form-row textarea,
.gg-woo-checkout .form-row select,
.gg-woo-checkout .select2-container .select2-selection--single {
  width: 100%;
  min-height: var(--gg-woo-input-h);
  padding: 10px 14px;
  border: 1px solid var(--gray-mid);
  border-radius: var(--gg-woo-radius);
  background: var(--white);
  font-family: var(--font);
  font-size: 14px;
  color: var(--black);
  box-shadow: none;
}

.gg-woo-checkout .form-row textarea {
  min-height: 110px;
  resize: vertical;
}

.gg-woo-checkout .form-row input.input-text:focus,
.gg-woo-checkout .form-row textarea:focus,
.gg-woo-checkout .form-row select:focus {
  outline: 2px solid var(--black);
  outline-offset: 1px;
  border-color: var(--black);
}

.gg-woo-checkout .form-row-first,
.gg-woo-checkout .form-row-last {
  width: calc(50% - 10px);
}

.gg-woo-checkout .form-row-first {
  float: left;
}

.gg-woo-checkout .form-row-last {
  float: right;
}

.gg-woo-checkout .form-row-wide {
  clear: both;
  float: none;
  width: 100%;
}

.gg-woo-checkout .woocommerce-billing-fields__field-wrapper::after,
.gg-woo-checkout .woocommerce-shipping-fields__field-wrapper::after,
.gg-woo-checkout .woocommerce-additional-fields__field-wrapper::after {
  content: "";
  display: table;
  clear: both;
}

#ship-to-different-address {
  margin: 0 0 16px;
  border: 0;
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

#ship-to-different-address label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

/* Coupon on checkout (before form) */
.gg-woo-checkout-page .woocommerce-form-coupon-toggle .woocommerce-info,
.gg-woo-checkout-page .woocommerce-form-login-toggle .woocommerce-info {
  border: var(--gg-woo-border);
  background: var(--bg);
  color: var(--black);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.gg-woo-checkout-page form.checkout_coupon {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  padding: 16px;
  border: var(--gg-woo-border);
  background: var(--white);
}

.gg-woo-checkout-page form.checkout_coupon .form-row {
  margin: 0;
  flex: 1 1 180px;
}

.gg-woo-checkout-page form.checkout_coupon .button {
  min-height: var(--gg-woo-input-h);
  padding: 0 20px;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Review order table */
.gg-woo-checkout .woocommerce-checkout-review-order-table {
  width: 100%;
  margin: 0 0 20px;
  border: 0;
  border-collapse: collapse;
}

.gg-woo-checkout .woocommerce-checkout-review-order-table .product-name {
  display: block;
}

.gg-checkout-review-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.gg-checkout-review-item__media {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 1px solid #ececec;
  background: #f5f5f5;
}

.gg-checkout-review-item__media img,
.gg-checkout-review-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gg-checkout-review-item__body {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

.gg-checkout-section {
  margin: 0 0 28px;
}

.gg-checkout-section--account {
  margin-bottom: 32px;
  padding-bottom: 8px;
}

.gg-checkout-account-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

.gg-checkout-account-fields .form-row {
  float: none !important;
  width: 100% !important;
}

.gg-woo-checkout .woocommerce-checkout-review-order-table th,
.gg-woo-checkout .woocommerce-checkout-review-order-table td {
  padding: 12px 0;
  border: 0;
  border-bottom: var(--gg-woo-border);
  background: none;
  font-family: var(--font);
  font-size: 14px;
  vertical-align: top;
}

.gg-woo-checkout .woocommerce-checkout-review-order-table thead th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}

.gg-woo-checkout .woocommerce-checkout-review-order-table .product-total,
.gg-woo-checkout .woocommerce-checkout-review-order-table tfoot td {
  text-align: right;
  font-weight: 600;
}

.gg-woo-checkout .woocommerce-checkout-review-order-table .order-total th,
.gg-woo-checkout .woocommerce-checkout-review-order-table .order-total td {
  border-bottom: 0;
  padding-top: 16px;
  font-size: 16px;
  font-weight: 700;
}

/* Payment method cards */
.gg-woo-checkout #payment.custom-checkout-payment {
  background: transparent;
  border-radius: 0;
}

.gg-woo-checkout #payment ul.payment_methods {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  list-style: none;
}

.gg-woo-checkout #payment ul.payment_methods li {
  margin: 0 0 10px;
  padding: 14px 16px;
  border: var(--gg-woo-border);
  background: var(--white);
  list-style: none;
}

.gg-woo-checkout #payment ul.payment_methods li label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.gg-woo-checkout #payment div.payment_box {
  margin: 12px 0 0;
  padding: 12px;
  border: 0;
  background: var(--bg);
  font-size: 13px;
  color: #555;
  border-radius: 0;
}

.gg-woo-checkout #payment div.payment_box::before {
  display: none;
}

.gg-woo-checkout #payment .place-order {
  margin: 0;
  padding: 0;
}

.gg-woo-checkout #place_order {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin: 12px 0 0;
  padding: 14px 18px;
  border: 1px solid var(--black);
  border-radius: var(--gg-woo-radius);
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.gg-woo-checkout #place_order:hover {
  background: var(--white);
  color: var(--black);
}

.gg-woo-checkout .woocommerce-terms-and-conditions-wrapper {
  margin: 12px 0;
  font-size: 13px;
}

/* Thank you / Order received */
.gg-woo-thankyou.custom-checkout-thankyou {
  padding-top: 32px;
  padding-bottom: 96px;
}

.gg-woo-thankyou__header {
  max-width: 40rem;
  margin: 0 auto 28px;
  padding-top: 16px;
  padding-bottom: 8px;
  text-align: center;
}

.gg-woo-thankyou__title {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--black);
}

.gg-woo-thankyou__lead {
  margin: 10px auto 0;
  max-width: 36rem;
  color: #666;
  font-size: 15px;
  line-height: 1.5;
}

.gg-woo-thankyou__email {
  margin: 8px 0 0;
  color: var(--gray);
  font-size: 13px;
  line-height: 1.5;
}

.gg-woo-thankyou .woocommerce-notice,
.gg-woo-thankyou .woocommerce-thankyou-order-received {
  margin: 20px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: none;
}

/* Branded header replaces the default success line */
.gg-woo-thankyou .woocommerce-thankyou-order-received {
  display: none;
}

.gg-woo-thankyou .woocommerce-notice--error {
  color: #8a1f1f;
}

/* Legacy overview panel — only when card-grid class is absent */
.gg-woo-thankyou .woocommerce-order-overview:not(.gg-woo-thankyou__overview) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 28px 0;
  padding: 24px;
  list-style: none;
  border: var(--gg-woo-border);
  background: var(--bg);
}

.gg-woo-thankyou .woocommerce-order-overview:not(.gg-woo-thankyou__overview) li {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gg-woo-thankyou .woocommerce-order-overview:not(.gg-woo-thankyou__overview) li strong {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--black);
}

.gg-woo-thankyou__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 28px;
}

.gg-woo-thankyou__btn,
.gg-woo-thankyou a.button,
.gg-woo-thankyou .button.pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0;
  padding: 12px 22px;
  border: 1px solid var(--black) !important;
  border-radius: 0 !important;
  background: var(--black) !important;
  color: var(--white) !important;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: none !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.gg-woo-thankyou__btn:hover,
.gg-woo-thankyou a.button:hover,
.gg-woo-thankyou .button.pay:hover {
  background: var(--white) !important;
  color: var(--black) !important;
}

.gg-woo-thankyou__btn--ghost {
  background: var(--white) !important;
  color: var(--black) !important;
}

.gg-woo-thankyou__btn--ghost:hover {
  background: var(--black) !important;
  color: var(--white) !important;
}

/* Payment instruction (e.g. COD) */
.gg-woo-thankyou > p:not([class]),
.gg-woo-thankyou .woocommerce-bacs-bank-details,
.gg-woo-thankyou .wc-bacs-bank-details-account-name {
  font-size: 14px;
  line-height: 1.5;
  color: #666;
}

.gg-woo-thankyou .woocommerce-order-details,
.gg-woo-thankyou .woocommerce-customer-details {
  margin-top: 40px;
}

.gg-woo-thankyou .woocommerce-order-details__title,
.gg-woo-thankyou .woocommerce-column__title,
.gg-woo-thankyou .woocommerce-customer-details h2 {
  margin: 0 0 16px;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
}

.gg-woo-thankyou table.shop_table {
  width: 100%;
  margin: 0;
  border: var(--gg-woo-border);
  border-collapse: collapse;
  border-radius: 0;
}

.gg-woo-thankyou table.shop_table th,
.gg-woo-thankyou table.shop_table td {
  padding: 14px 16px;
  border: var(--gg-woo-border);
  border-width: 0 0 1px;
  font-size: 14px;
  vertical-align: top;
  background: transparent;
}

.gg-woo-thankyou table.shop_table thead th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  background: var(--bg);
}

.gg-woo-thankyou table.shop_table tfoot th {
  width: 40%;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #666;
}

.gg-woo-thankyou table.shop_table tfoot tr:last-child th,
.gg-woo-thankyou table.shop_table tfoot tr:last-child td {
  border-bottom: 0;
  font-weight: 700;
  color: var(--black);
}

.gg-woo-thankyou table.shop_table .product-name a {
  color: var(--black);
  text-decoration: none;
  font-weight: 600;
}

.gg-woo-thankyou table.shop_table .product-name a:hover {
  text-decoration: underline;
}

.gg-woo-thankyou .woocommerce-customer-details .woocommerce-columns,
.gg-woo-thankyou .woocommerce-customer-details .col2-set,
.gg-woo-thankyou .woocommerce-customer-details .addresses {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gg-woo-gap);
  align-items: stretch;
  width: 100%;
  margin: 0;
  clear: both;
}

.gg-woo-thankyou .woocommerce-customer-details .woocommerce-columns::before,
.gg-woo-thankyou .woocommerce-customer-details .woocommerce-columns::after,
.gg-woo-thankyou .woocommerce-customer-details .col2-set::before,
.gg-woo-thankyou .woocommerce-customer-details .col2-set::after {
  display: none !important;
  content: none !important;
}

.gg-woo-thankyou .woocommerce-customer-details .woocommerce-column,
.gg-woo-thankyou .woocommerce-customer-details .col-1,
.gg-woo-thankyou .woocommerce-customer-details .col-2,
.gg-woo-thankyou .woocommerce-customer-details address {
  margin: 0;
  padding: 0;
  border: 0;
  font-style: normal;
}

.gg-woo-thankyou .woocommerce-customer-details .woocommerce-column,
.gg-woo-thankyou .woocommerce-customer-details .col-1,
.gg-woo-thankyou .woocommerce-customer-details .col-2 {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  clear: none !important;
  padding: 20px 22px;
  border: var(--gg-woo-border);
  background: var(--bg);
  box-sizing: border-box;
}

.gg-woo-thankyou .woocommerce-customer-details address {
  font-size: 14px;
  line-height: 1.7;
  color: #333;
}

.gg-woo-thankyou .woocommerce-customer-details .woocommerce-customer-details--email,
.gg-woo-thankyou .woocommerce-customer-details .woocommerce-customer-details--phone {
  display: block;
  margin-top: 8px;
  color: #666;
}

@media (max-width: 768px) {
  .gg-woo-thankyou .woocommerce-order-overview:not(.gg-woo-thankyou__overview) {
    grid-template-columns: 1fr 1fr;
  }

  .gg-woo-thankyou .woocommerce-customer-details .woocommerce-columns,
  .gg-woo-thankyou .woocommerce-customer-details .col2-set,
  .gg-woo-thankyou .woocommerce-customer-details .addresses {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .gg-woo-thankyou__title {
    font-size: 32px;
  }

  .gg-woo-thankyou .woocommerce-order-overview:not(.gg-woo-thankyou__overview) {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .gg-woo-thankyou__actions {
    flex-direction: column;
  }

  .gg-woo-thankyou__btn,
  .gg-woo-thankyou a.button {
    width: 100%;
  }
}

/* Notices — fixed toast so remove/update does not shove the page */
.gg-woo-cart-page .woocommerce-notices-wrapper,
.gg-woo-checkout-page .woocommerce-notices-wrapper {
  margin: 0;
}

.gg-woo-cart-page .woocommerce-notices-wrapper:not(:empty) {
  position: fixed;
  top: calc(var(--wp-admin--admin-bar--height, 0px) + 16px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  width: min(560px, calc(100% - 32px));
  margin: 0;
  pointer-events: none;
}

.gg-woo-cart-page .woocommerce-message,
.gg-woo-cart-page .woocommerce-info,
.gg-woo-cart-page .woocommerce-error,
.gg-woo-checkout-page .woocommerce-message,
.gg-woo-checkout-page .woocommerce-info,
.gg-woo-checkout-page .woocommerce-error {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 12px;
  padding: 14px 18px;
  border: 1px solid #e5e5e5 !important;
  border-top: 1px solid #e5e5e5 !important;
  border-left: 1px solid #e5e5e5 !important;
  border-radius: 0 !important;
  background: var(--white) !important;
  color: var(--black) !important;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  list-style: none;
  pointer-events: auto;
  animation: gg-woo-notice-in 0.32s ease;
}

.gg-woo-checkout-page .woocommerce-message,
.gg-woo-checkout-page .woocommerce-info,
.gg-woo-checkout-page .woocommerce-error {
  box-shadow: none;
  margin-bottom: 16px;
  background: var(--bg) !important;
}

.gg-woo-cart-page .woocommerce-message::before,
.gg-woo-cart-page .woocommerce-info::before,
.gg-woo-cart-page .woocommerce-error::before,
.gg-woo-checkout-page .woocommerce-message::before,
.gg-woo-checkout-page .woocommerce-info::before,
.gg-woo-checkout-page .woocommerce-error::before {
  display: none !important;
  content: none !important;
}

.gg-woo-cart-page .woocommerce-error,
.gg-woo-checkout-page .woocommerce-error {
  border-color: #e8b4b0 !important;
  background: #fff8f7 !important;
}

.gg-woo-cart-page .woocommerce-message .restore-item,
.gg-woo-cart-page .woocommerce-message a,
.gg-woo-checkout-page .woocommerce-message a {
  float: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--black);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: none;
  box-shadow: none;
}

.gg-woo-cart-page .woocommerce-message .restore-item:hover,
.gg-woo-cart-page .woocommerce-message a:hover,
.gg-woo-checkout-page .woocommerce-message a:hover {
  opacity: 0.65;
}

.gg-woo-cart-page .woocommerce-message .button,
.gg-woo-checkout-page .woocommerce-message .button {
  float: none;
  margin-left: auto;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

@keyframes gg-woo-notice-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gg-woo-cart tr.cart_item {
  transition: opacity 0.22s ease;
}

.gg-woo-cart tr.cart_item.is-removing {
  opacity: 0.35;
  pointer-events: none;
}

/* Soften Woo block overlay during cart AJAX */
.gg-woo-cart-page .blockUI.blockOverlay {
  background: rgba(255, 255, 255, 0.35) !important;
  opacity: 1 !important;
}

/* ==========================================================================
   Thank you + invoice
   ========================================================================== */
/* Beat parent checkout.css auto-fit (wraps the 5th card) */
body.woocommerce-order-received .gg-woo-thankyou.woocommerce-order {
  max-width: none;
}

body.woocommerce-order-received .gg-woo-thankyou ul.woocommerce-order-overview.gg-woo-thankyou__overview,
.gg-woo-thankyou ul.gg-woo-thankyou__overview {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: 10px !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
  list-style: none !important;
  border: 0 !important;
  background: transparent !important;
  grid-template-columns: none !important;
}

body.woocommerce-order-received .gg-woo-thankyou ul.gg-woo-thankyou__overview > li,
.gg-woo-thankyou ul.gg-woo-thankyou__overview > li {
  display: flex !important;
  flex: 1 1 0 !important;
  flex-direction: column;
  gap: 6px;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 14px 12px !important;
  border: 1px solid #ececec !important;
  border-right: 1px solid #ececec !important;
  background: #fff !important;
  float: none !important;
  box-sizing: border-box;
}

.gg-woo-thankyou__overview-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
}

.gg-woo-thankyou ul.gg-woo-thankyou__overview > li strong {
  display: block;
  margin-top: 0 !important;
  font-size: 13px;
  font-weight: 700;
  color: #111;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.gg-invoice {
  margin: 24px auto 0;
  max-width: 880px;
}

/* Hide orphan payment-gateway thank-you copy when branded invoice is present */
.gg-woo-thankyou:has(#gg-invoice) > p:not([class]) {
  display: none !important;
}

.gg-invoice__sheet {
  padding: 36px clamp(20px, 4vw, 48px);
  border: 1px solid #ececec;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.gg-invoice__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #ececec;
}

.gg-invoice__store-name {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gg-invoice__logo img,
.gg-invoice__logo .custom-logo {
  max-height: 56px;
  width: auto;
}

.gg-invoice__store-address,
.gg-invoice__store-contact {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.5;
  color: #666;
}

.gg-invoice__title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: right;
}

.gg-invoice__meta-list {
  display: grid;
  gap: 8px;
  margin: 0;
  text-align: right;
}

.gg-invoice__meta-list dt {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
}

.gg-invoice__meta-list dd {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

.gg-invoice__parties {
  margin-bottom: 24px;
}

.gg-invoice__party-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
}

.gg-invoice__bill-to address {
  margin: 0;
  font-style: normal;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.gg-invoice__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.gg-invoice__table th {
  padding: 12px 14px;
  border: 0;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}

.gg-invoice__table td {
  padding: 14px;
  border-bottom: 1px solid #ececec;
  font-size: 14px;
  vertical-align: top;
}

.gg-invoice__col-qty,
.gg-invoice__col-price,
.gg-invoice__col-total {
  text-align: right;
  white-space: nowrap;
}

.gg-invoice__item-meta {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: #777;
}

.gg-invoice__totals-wrap {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.gg-invoice__totals {
  width: 100%;
  max-width: 320px;
  border-collapse: collapse;
}

.gg-invoice__totals th,
.gg-invoice__totals td {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.gg-invoice__totals th {
  font-weight: 500;
  color: #666;
  text-align: left;
}

.gg-invoice__totals td {
  font-weight: 600;
  text-align: right;
  color: #111;
}

.gg-invoice__totals-row--order_total th,
.gg-invoice__totals-row--order_total td {
  border-bottom: 0;
  padding: 14px 16px;
  background: #111;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.gg-invoice__footer {
  padding-top: 16px;
  border-top: 1px solid #ececec;
}

.gg-invoice__payment,
.gg-invoice__thanks {
  margin: 0 0 6px;
  font-size: 13px;
  color: #666;
}

/* Hide default Woo receipt leftovers on thank-you when invoice is present */
.gg-woo-thankyou .woocommerce-order-details,
.gg-woo-thankyou .woocommerce-customer-details,
.gg-woo-thankyou .gg-view-order__body,
.gg-woo-thankyou .gg-order-items,
.gg-woo-thankyou .gg-order-summary,
.gg-woo-thankyou .gg-order-addresses {
  display: none !important;
}

/* Print invoice — exact replica of on-screen sheet */
@media print {
  @page {
    size: A4 portrait;
    margin: 12mm 15mm;
  }

  *,
  *::before,
  *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  html,
  body {
    background: #ffffff !important;
    color: #111111 !important;
    font-family: var(--font, "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  /* Hide entire site chrome, header, steps, overview cards, footer */
  .site-header,
  .site-footer,
  header.site-header,
  footer.site-footer,
  .announcement,
  .announcement-bar,
  .whatsapp,
  .whatsapp-button,
  #wpadminbar,
  .gg-checkout-steps,
  .gg-woo-thankyou__check,
  .gg-woo-thankyou__header,
  .gg-woo-thankyou__overview,
  .gg-woo-thankyou__actions,
  .woocommerce-notice,
  .woocommerce-thankyou-order-received,
  .footer,
  header,
  footer,
  nav {
    display: none !important;
  }

  /* Reset outer wrappers */
  .wrap,
  .woocommerce-wrap,
  .gg-woo-main,
  .gg-woo-thankyou {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
  }

  .gg-invoice {
    display: block !important;
    visibility: visible !important;
    margin: 0 auto !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    position: static !important;
    page-break-after: avoid;
  }

  /* Exact sheet presentation with frame */
  .gg-invoice__sheet {
    display: block !important;
    visibility: visible !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 32px 36px !important;
    background: #ffffff !important;
    border: 1px solid #dcdcdc !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }

  .gg-invoice__header {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    margin-bottom: 24px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid #e5e5e5 !important;
  }

  .gg-invoice__brand {
    flex: 1 1 auto !important;
  }

  .gg-invoice__logo img,
  .gg-invoice__logo .custom-logo {
    max-height: 52px !important;
    width: auto !important;
    display: block !important;
  }

  .gg-invoice__store-name {
    margin: 0 0 6px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    color: #111111 !important;
  }

  .gg-invoice__store-address,
  .gg-invoice__store-contact {
    margin: 0 0 4px !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: #555555 !important;
  }

  .gg-invoice__meta {
    text-align: right !important;
    flex: 0 0 auto !important;
  }

  .gg-invoice__title {
    margin: 0 0 10px !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: #111111 !important;
    text-align: right !important;
  }

  .gg-invoice__meta-list {
    display: grid !important;
    gap: 6px !important;
    margin: 0 !important;
    text-align: right !important;
  }

  .gg-invoice__meta-list dt {
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: #777777 !important;
  }

  .gg-invoice__meta-list dd {
    margin: 1px 0 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #111111 !important;
  }

  .gg-invoice__parties {
    margin-bottom: 22px !important;
  }

  .gg-invoice__party-label {
    margin: 0 0 6px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: #777777 !important;
  }

  .gg-invoice__bill-to address {
    font-style: normal !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
    color: #222222 !important;
  }

  .gg-invoice__table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 22px !important;
    page-break-inside: avoid;
  }

  .gg-invoice__table th {
    padding: 10px 14px !important;
    background: #111111 !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    text-align: left !important;
    border: none !important;
  }

  .gg-invoice__table th.gg-invoice__col-qty,
  .gg-invoice__table th.gg-invoice__col-price,
  .gg-invoice__table th.gg-invoice__col-total {
    text-align: right !important;
  }

  .gg-invoice__table td {
    padding: 12px 14px !important;
    border-bottom: 1px solid #ebebeb !important;
    font-size: 13px !important;
    color: #111111 !important;
    vertical-align: top !important;
  }

  .gg-invoice__col-qty,
  .gg-invoice__col-price,
  .gg-invoice__col-total {
    text-align: right !important;
    white-space: nowrap !important;
  }

  .gg-invoice__item-meta {
    margin: 4px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
    font-size: 11px !important;
    color: #666666 !important;
  }

  .gg-invoice__totals-wrap {
    display: flex !important;
    justify-content: flex-end !important;
    margin-bottom: 22px !important;
    page-break-inside: avoid;
  }

  .gg-invoice__totals {
    width: 100% !important;
    max-width: 320px !important;
    border-collapse: collapse !important;
  }

  .gg-invoice__totals th,
  .gg-invoice__totals td {
    padding: 8px 12px !important;
    border-bottom: 1px solid #eeeeee !important;
    font-size: 13px !important;
  }

  .gg-invoice__totals th {
    font-weight: 500 !important;
    color: #555555 !important;
    text-align: left !important;
  }

  .gg-invoice__totals td {
    font-weight: 600 !important;
    text-align: right !important;
    color: #111111 !important;
  }

  .gg-invoice__totals-row--order_total th,
  .gg-invoice__totals-row--order_total td {
    background: #111111 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 12px 14px !important;
    border-bottom: 0 !important;
  }

  .gg-invoice__footer {
    padding-top: 14px !important;
    border-top: 1px solid #e5e5e5 !important;
    page-break-inside: avoid;
  }

  .gg-invoice__payment,
  .gg-invoice__thanks {
    margin: 0 0 4px !important;
    font-size: 12px !important;
    color: #555555 !important;
  }
}

/* Emoji safety */
.gg-woo-cart img.emoji,
.gg-woo-checkout img.emoji {
  width: 1em !important;
  height: 1em !important;
  display: inline !important;
}

/* ==========================================================================
   Responsive Breakpoints — 1200 / 900 / 768 / 600 / 480 / 375
   ========================================================================== */

@media (max-width: 1200px) {
  .gg-woo-cart__layout.custom-cart-layout,
  .gg-woo-checkout__grid {
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .gg-woo-cart__layout.custom-cart-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "form"
      "totals"
      "cross";
    gap: 32px;
  }

  .gg-woo-checkout__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .gg-woo-cart .cart_totals.custom-cart-totals,
  .gg-woo-checkout__sidebar.custom-checkout-summary {
    position: static;
    width: 100%;
    box-sizing: border-box;
  }

  .gg-checkout-steps__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .gg-checkout-steps__link {
    min-height: 48px;
    padding: 10px 12px;
    gap: 8px;
  }

  .gg-checkout-steps__num {
    font-size: 20px;
  }

  .gg-checkout-steps__label {
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .gg-woo-thankyou__overview {
    flex-wrap: nowrap !important;
    gap: 8px !important;
  }

  .gg-woo-thankyou__overview li {
    padding: 12px 10px !important;
  }

  .gg-woo-thankyou__overview li strong {
    font-size: 12px;
  }

  .gg-checkout-account-fields {
    grid-template-columns: 1fr;
  }

  .gg-woo-cart__suggest .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .gg-woo-cart__empty-hero {
    padding: 48px 8px 56px;
  }

  .gg-woo-cart__suggest {
    padding-top: 36px;
  }
}

@media (max-width: 768px) {
  /* Cart table mobile cards */
  .gg-woo-cart table.shop_table.cart thead {
    display: none;
  }

  .gg-woo-cart table.shop_table.cart,
  .gg-woo-cart table.shop_table.cart tbody,
  .gg-woo-cart table.shop_table.cart tr,
  .gg-woo-cart table.shop_table.cart td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .gg-woo-cart table.shop_table.cart tr.cart_item {
    position: relative;
    padding: 18px 0 18px 96px;
    border-bottom: 1px solid #e5e5e5;
  }

  .gg-woo-cart table.shop_table.cart tbody td {
    padding: 4px 0;
    border: 0;
    text-align: left !important;
  }

  .gg-woo-cart table.shop_table.cart .product-remove {
    position: absolute;
    top: 14px;
    right: 0;
    width: 32px;
    height: 32px;
  }

  .gg-woo-cart table.shop_table.cart .product-remove .remove {
    width: 32px;
    height: 32px;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .gg-woo-cart table.shop_table.cart .product-thumbnail {
    position: absolute;
    top: 18px;
    left: 0;
    width: 80px;
  }

  .gg-woo-cart table.shop_table.cart .product-thumbnail a {
    width: 80px;
    height: 100px;
  }

  .gg-woo-cart table.shop_table.cart .product-name {
    padding-right: 36px;
  }

  .gg-woo-cart table.shop_table.cart .product-name a {
    font-size: 14px;
    line-height: 1.35;
  }

  .gg-woo-cart .gg-cart-item-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
  }

  .gg-woo-cart .gg-cart-item-controls {
    width: 100%;
  }

  .gg-woo-cart table.shop_table.cart .product-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    margin-top: 6px;
    border-top: 1px dashed #eee;
    font-size: 15px;
    font-weight: 700;
  }

  .gg-woo-cart table.shop_table.cart .product-subtotal::before {
    content: "Total:";
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .gg-woo-cart table.shop_table.cart td.actions {
    padding-top: 16px;
  }

  .gg-woo-cart .coupon,
  .gg-woo-cart button[name="update_cart"] {
    float: none;
    width: 100%;
  }

  .gg-woo-cart button[name="update_cart"] {
    margin-top: 10px;
  }

  /* Checkout fields stack fully */
  .gg-woo-checkout .form-row,
  .gg-woo-checkout .form-row-first,
  .gg-woo-checkout .form-row-last,
  .gg-woo-checkout .form-row-wide {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 16px !important;
  }

  .gg-woo-checkout .woocommerce-billing-fields__field-wrapper,
  .gg-woo-checkout .woocommerce-shipping-fields__field-wrapper,
  .gg-woo-checkout .woocommerce-additional-fields__field-wrapper {
    display: block !important;
  }

  .gg-woo-checkout .form-row input.input-text,
  .gg-woo-checkout .form-row select,
  .gg-woo-checkout .form-row textarea {
    font-size: 16px !important; /* Prevents auto zoom in iOS Safari */
    min-height: 48px;
    box-sizing: border-box;
  }

  /* Stepper mobile tuning */
  .gg-checkout-steps__link {
    min-height: 42px;
    padding: 8px 10px;
  }

  .gg-checkout-steps__num {
    font-size: 16px;
  }

  .gg-checkout-steps__label {
    font-size: 10px;
    letter-spacing: 0.03em;
  }

  /* Thank you page — keep 5 cards in one row until narrow phones */
  .gg-woo-thankyou__overview {
    flex-wrap: nowrap !important;
    gap: 6px !important;
  }

  .gg-woo-thankyou__overview li {
    padding: 10px 8px !important;
  }

  .gg-woo-thankyou__overview-label {
    font-size: 9px;
  }

  .gg-woo-thankyou__overview li strong {
    font-size: 11px;
  }

  .gg-woo-thankyou__actions {
    flex-direction: column;
    gap: 10px;
  }

  .gg-woo-thankyou__btn,
  .gg-woo-thankyou a.button {
    width: 100% !important;
    min-height: 48px;
    box-sizing: border-box;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .gg-woo-cart,
  .gg-woo-checkout,
  .gg-woo-thankyou {
    padding-top: 12px;
    padding-bottom: 64px;
  }

  .gg-woo-cart__title,
  .gg-woo-checkout__title,
  .gg-woo-thankyou__title {
    font-size: clamp(28px, 7vw, 36px);
  }

  .gg-woo-cart__header,
  .gg-woo-checkout__header,
  .gg-woo-thankyou__header {
    padding-top: 8px;
    padding-bottom: 20px;
  }

  .gg-checkout-steps {
    margin-bottom: 20px;
  }

  .gg-checkout-steps__list {
    gap: 4px;
  }

  .gg-checkout-steps__link {
    min-height: 38px;
    padding: 6px 8px;
    gap: 6px;
  }

  .gg-checkout-steps__num {
    font-size: 14px;
  }

  .gg-checkout-steps__label {
    font-size: 9.5px;
    letter-spacing: 0.02em;
  }

  /* Cart Totals Box */
  .gg-woo-cart .cart_totals.custom-cart-totals,
  .gg-woo-checkout__sidebar.custom-checkout-summary {
    padding: 20px 16px;
  }

  /* Checkout Coupon Row */
  .gg-checkout-coupon__row {
    flex-direction: column;
    gap: 10px;
  }

  .gg-checkout-coupon__row .button {
    width: 100%;
    min-height: 48px;
  }

  /* Payment methods */
  .gg-woo-checkout #payment ul.payment_methods li {
    padding: 12px 14px;
  }

  .gg-woo-checkout #payment ul.payment_methods li label {
    font-size: 13px;
  }

  .gg-woo-checkout #place_order,
  .gg-woo-cart .wc-proceed-to-checkout .checkout-button {
    min-height: 52px;
    font-size: 13px;
  }

  /* Invoice mobile */
  .gg-invoice {
    margin-top: 28px;
  }

  .gg-invoice__sheet {
    padding: 20px 14px;
  }

  .gg-invoice__header {
    flex-direction: column;
    gap: 16px;
  }

  .gg-invoice__title,
  .gg-invoice__meta-list {
    text-align: left;
  }

  .gg-invoice__totals-wrap {
    justify-content: stretch;
  }

  .gg-invoice__totals {
    max-width: 100%;
  }

  .gg-invoice__table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .gg-checkout-steps__num {
    display: none;
  }

  .gg-checkout-steps__label {
    font-size: 9px;
    text-align: center;
    width: 100%;
  }

  .gg-woo-thankyou__overview {
    flex-wrap: wrap !important;
  }

  .gg-woo-thankyou__overview > li {
    flex: 1 1 calc(50% - 4px) !important;
  }

  .gg-woo-cart table.shop_table.cart tr.cart_item {
    padding-left: 78px;
  }

  .gg-woo-cart table.shop_table.cart .product-thumbnail {
    width: 66px;
  }

  .gg-woo-cart table.shop_table.cart .product-thumbnail a {
    width: 66px;
    height: 84px;
  }

  .gg-woo-cart__suggest .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .gg-woo-cart--empty {
    padding-bottom: 48px;
  }

  .gg-woo-cart__empty-hero h1 {
    font-size: 28px;
  }
}
