:root {
  --gw-cr-green: #16aa74;
  --gw-cr-green-dark: #10855b;
  --gw-cr-orange: #eaa200;
  --gw-cr-blue: #229ed9;
  --gw-cr-text: #222;
  --gw-cr-muted: #60666b;
  --gw-cr-border: #dfe4e1;
  --gw-cr-soft: #f4f8f6;
}

body.single-product { overflow-x: hidden; }

.single-product .gw-cr-actions {
  width: 100%;
  max-width: 460px;
  margin: 18px 0 24px;
  display: grid;
  gap: 18px;
}

.gw-cr-action-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.gw-cr-action-label {
  margin: 0 !important;
  color: var(--gw-cr-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.gw-cr-button {
  box-sizing: border-box;
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 3px 10px rgba(20, 45, 35, .08);
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.gw-cr-button:hover { box-shadow: 0 6px 16px rgba(20, 45, 35, .12); transform: translateY(-1px); }
.gw-cr-button:focus-visible { outline: 3px solid rgba(22,170,116,.25); outline-offset: 2px; }

.gw-cr-button--official,
.single-product .gw-cr-button--official:visited {
  width: 100%;
  min-height: 50px;
  background: var(--gw-cr-orange);
  color: #fff !important;
  border-color: #d69600;
  font-size: 15px;
  justify-content: center;
  position: relative;
}
.gw-cr-button--official:hover { background: #d99700; color: #fff !important; }
.gw-cr-button__arrow { position: absolute; right: 16px; width: 18px; height: 18px; fill: currentColor; }

.single-product div.product form.cart.gw-cr-add-form {
  display: grid !important;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 10px;
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}
.single-product div.product form.cart.gw-cr-add-form div.quantity,
.single-product div.product form.cart.gw-cr-add-form div.quantity.buttons-added {
  box-sizing: border-box;
  display: flex !important;
  float: none !important;
  width: 126px !important;
  min-width: 126px;
  min-height: 46px;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid var(--gw-cr-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(20, 45, 35, .06);
  grid-column: 1 !important;
  grid-row: 1 !important;
}
.single-product div.product form.cart.gw-cr-add-form .quantity .minus,
.single-product div.product form.cart.gw-cr-add-form .quantity .plus {
  flex: 0 0 38px;
  width: 38px !important;
  min-height: 46px;
  border: 0 !important;
  border-radius: 0 !important;
  background: #f5f8f6;
  color: var(--gw-cr-text);
}
.single-product div.product form.cart.gw-cr-add-form .quantity .qty {
  flex: 1 1 auto;
  width: 48px !important;
  min-width: 0;
  min-height: 46px;
  padding: 0 2px;
  border-width: 0 1px !important;
  border-style: solid !important;
  border-color: var(--gw-cr-border) !important;
  border-radius: 0 !important;
  background: #fff;
  box-shadow: none !important;
}
.single-product div.product form.cart.gw-cr-add-form button[name="add-to-cart"].gw-cr-button { display: inline-flex !important; width: 100% !important; float: none !important; margin: 0 !important; white-space: nowrap; grid-column: 2 !important; grid-row: 1 !important; }
.single-product div.product form.cart.gw-cr-add-form .gw-cr-button--request { background: #fff !important; color: var(--gw-cr-green-dark) !important; border-color: rgba(22,170,116,.45); }
.single-product div.product form.cart.gw-cr-add-form .gw-cr-button--request:hover { background: var(--gw-cr-soft) !important; color: var(--gw-cr-green-dark) !important; }
.single-product div.product form.cart.gw-cr-add-form .gw-cr-button--request.is-added { background: #fff !important; color: var(--gw-cr-green-dark) !important; }
.gw-cr-button[disabled] { cursor: wait; opacity: .72; transform: none; }

.gw-cr-actions__hint,
.gw-cr-actions__status { margin: 0 !important; color: var(--gw-cr-muted); font-size: 12px; line-height: 1.45; }
.gw-cr-actions__status:empty { display: none; }
.gw-cr-messengers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gw-cr-button--messenger { color: #fff !important; }
.gw-cr-button--whatsapp { background: #55b99a; border-color: #55b99a; }
.gw-cr-button--telegram { background: #68b7dc; border-color: #68b7dc; }
.gw-cr-button--whatsapp:hover { background: #45a98a; color: #fff !important; }
.gw-cr-button--telegram:hover { background: #55a8cf; color: #fff !important; }
.gw-cr-button--messenger svg { width: 20px; height: 20px; flex: 0 0 20px; fill: currentColor; }

.gw-cr-sold-out-badge { position: absolute; z-index: 12; top: 10px; left: 10px; padding: 6px 10px; color: #fff; background: #d52b2b; font-weight: 700; }

/* GeneratePress mini cart: roomy request preview with one destination only. */
.main-navigation a.cart-contents {
  min-height: 60px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}
.main-navigation a.cart-contents .number-of-items {
  position: static !important;
  transform: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: 4px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}
.gw-cr-cart-label { display: none !important; }
.single-product div.product form.cart.gw-cr-add-form button.gw-cr-button--request {
  border: 1px solid #76bfa4 !important;
  border-radius: 8px !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}
body.woocommerce-cart .cart_totals table,
body.woocommerce-cart .cart_totals .order-total,
body.woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td { border-bottom: 0 !important; }
.main-navigation .wc-menu-item > #wc-mini-cart {
  display: block !important;
  width: 380px;
  max-width: calc(100vw - 24px);
}
.main-navigation .woocommerce-mini-cart-wrap,
.main-navigation .widget_shopping_cart {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  color: var(--gw-cr-text);
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 45, 35, .18);
}
.main-navigation .woocommerce-mini-cart {
  margin: 0 !important;
  padding: 10px 16px 2px !important;
  max-height: min(360px, calc(100vh - 360px));
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.main-navigation .woocommerce-mini-cart-item {
  box-sizing: border-box;
  min-height: 74px;
  margin: 0 !important;
  padding: 12px 32px 12px 66px !important;
  border-bottom: 1px solid var(--gw-cr-border);
  font-size: 14px;
  line-height: 1.35;
  transition: background-color .15s ease;
}
.main-navigation .woocommerce-mini-cart-item:hover { background: var(--gw-cr-soft); }
.main-navigation .woocommerce-mini-cart-item:last-child { border-bottom: 0; }
.main-navigation .woocommerce-mini-cart-item > a:not(.remove),
.main-navigation .woocommerce-mini-cart-item:hover > a:not(.remove),
.main-navigation .woocommerce-mini-cart-item.sfHover > a:not(.remove) { display: block; padding: 0 !important; color: var(--gw-cr-text) !important; background: transparent !important; font-weight: 700; line-height: 1.35; }
.main-navigation .woocommerce-mini-cart-item img { position: absolute; top: 12px; left: 0; width: 52px !important; height: 52px !important; margin: 0 !important; object-fit: contain; }
.main-navigation .woocommerce-mini-cart-item .remove { top: 12px !important; right: 0 !important; left: auto !important; width: 24px !important; height: 24px !important; line-height: 22px !important; border: 1px solid var(--gw-cr-border) !important; border-radius: 50%; color: var(--gw-cr-muted) !important; background: #fff !important; text-align: center; }
.main-navigation .woocommerce-mini-cart-item .quantity { display: block; margin-top: 5px; color: var(--gw-cr-muted); font-size: 13px; }
.main-navigation .woocommerce-mini-cart__total { margin: 0 !important; padding: 12px 16px !important; border-top: 1px solid var(--gw-cr-border) !important; color: var(--gw-cr-text); }
.main-navigation .woocommerce-mini-cart__buttons { display: block !important; margin: 0 !important; padding: 0 16px 16px !important; }
.main-navigation .woocommerce-mini-cart__buttons .button { box-sizing: border-box; display: flex !important; align-items: center; justify-content: center; width: 100% !important; min-height: 46px; margin: 0 !important; border-radius: 8px; background: var(--gw-cr-green) !important; color: #fff !important; font-weight: 700; }
.main-navigation .woocommerce-mini-cart__buttons .checkout { display: none !important; }

body.woocommerce-cart .cart_totals h2 { display: none !important; }
body.woocommerce-cart .cart_totals table { display: table !important; }
body.woocommerce-cart td.product-subtotal { display: table-cell !important; }
body.woocommerce-cart div.quantity.buttons-added { display: flex !important; }
body.woocommerce-cart .wc-proceed-to-checkout { display: none !important; }

.gw-cr-cart-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.gw-cr-cart-layout .woocommerce-cart-form { min-width: 0; }
.gw-cr-cart-aside { position: static; min-width: 0; padding: 24px; border: 1px solid var(--gw-cr-border); border-radius: 10px; background: var(--gw-cr-soft); }
.gw-cr-cart-aside .cart-collaterals { width: 100%; }
.gw-cr-cart-aside .cart_totals { width: 100%; float: none; }
.gw-cr-cart-aside .cart_totals th,
.gw-cr-cart-aside .cart_totals td { padding: 10px 0; background: transparent !important; }
body.woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td { background: transparent !important; }
body.woocommerce-cart td.actions { display: none !important; }
body.woocommerce-cart .woocommerce-message:empty { display: none !important; }
body.woocommerce-cart table.shop_table { width: 100%; table-layout: auto; }
body.woocommerce-cart table.shop_table .product-thumbnail { width: 76px; }
body.woocommerce-cart table.shop_table .product-thumbnail img { width: 58px; height: 58px; object-fit: contain; }
body.woocommerce-cart table.shop_table .product-name { min-width: 180px; }
body.woocommerce-cart table.shop_table .product-quantity { width: 132px; }
body.woocommerce-cart table.shop_table .product-price,
body.woocommerce-cart table.shop_table .product-subtotal { width: 105px; white-space: nowrap; }

.gw-cr-request-panel { margin-top: 16px; padding-top: 20px; border-top: 0; }
.gw-cr-request-panel h2 { margin: 0 0 8px; font-size: 22px; }
.gw-cr-request-panel > p { margin: 0 0 18px; color: var(--gw-cr-muted); font-size: 14px; }
.gw-cr-request-form { display: grid; gap: 14px; }
.gw-cr-field { margin: 0; }
.gw-cr-field label,
.gw-cr-channel legend { display: block; margin-bottom: 6px; color: var(--gw-cr-text); font-weight: 600; }
.gw-cr-field label span { color: var(--gw-cr-muted); font-size: 12px; font-weight: 400; }
.gw-cr-field input,
.gw-cr-field textarea { box-sizing: border-box; width: 100%; border: 1px solid var(--gw-cr-border); border-radius: 4px; padding: 10px 12px; background: #fff; }
.gw-cr-field input { min-height: 46px; }
.gw-cr-channel { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gw-cr-channel legend { grid-column: 1 / -1; }
.gw-cr-channel label { min-height: 44px; border: 1px solid var(--gw-cr-border); border-radius: 4px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; cursor: pointer; }
.gw-cr-consent { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.45; }
.gw-cr-consent input { margin-top: 4px; }
.gw-cr-submit { width: 100%; min-height: 50px; background: var(--gw-cr-green) !important; }
.gw-cr-submit-status { margin: 0; color: var(--gw-cr-muted); font-size: 13px; }
.gw-cr-submit-status:empty { display: none; }
.gw-cr-hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.gw-cr-info { max-width: 760px; margin: 44px 0 0; padding-top: 28px; border-top: 1px solid var(--gw-cr-border); }
.gw-cr-info h2 { margin-bottom: 16px; }
.gw-cr-info ol { margin: 0 0 20px 20px; }
.gw-cr-info__note { max-width: 720px; margin: 0; color: var(--gw-cr-muted); line-height: 1.65; }

.gw-cr-mobile-product { display: contents; }
.gw-cr-mobile-thumb { display: none; }

.gw-cr-received { max-width: 640px; margin: 20px auto 48px; text-align: center; }
.gw-cr-received__mark { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; color: #fff; background: var(--gw-cr-green); font-size: 28px; font-weight: 700; }
.gw-cr-received h2 { margin-bottom: 10px; }
.gw-cr-return { margin-top: 10px; }

@media (max-width: 520px) {
  .single-product div.product form.cart.gw-cr-add-form { grid-template-columns: 112px minmax(0, 1fr); }
  .single-product div.product form.cart.gw-cr-add-form div.quantity,
  .single-product div.product form.cart.gw-cr-add-form div.quantity.buttons-added { width: 112px !important; min-width: 112px; }
  .single-product div.product form.cart.gw-cr-add-form .quantity .minus,
  .single-product div.product form.cart.gw-cr-add-form .quantity .plus { flex-basis: 34px; width: 34px !important; }
  .gw-cr-button { padding-inline: 11px; }
  .gw-cr-messengers { gap: 8px; }
  .gw-cr-channel { grid-template-columns: 1fr; }
  .gw-cr-channel legend { grid-column: auto; }
  .gw-cr-cart-aside { padding: 18px; }
}

@media (max-width: 768px) {
  body.woocommerce-cart table.shop_table_responsive tr.woocommerce-cart-form__cart-item {
    display: block;
    margin: 0 0 16px;
    overflow: hidden;
    border: 1px solid var(--gw-cr-border);
    border-radius: 10px;
    background: #fff;
  }
  body.woocommerce-cart table.shop_table_responsive tr.woocommerce-cart-form__cart-item td {
    box-sizing: border-box;
    display: grid !important;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: 100% !important;
    min-width: 0 !important;
    padding: 13px 16px !important;
    border-bottom: 1px solid var(--gw-cr-border);
    text-align: left !important;
    white-space: normal !important;
  }
  body.woocommerce-cart table.shop_table_responsive tr.woocommerce-cart-form__cart-item td:last-child { border-bottom: 0; }
  body.woocommerce-cart table.shop_table_responsive tr.woocommerce-cart-form__cart-item td::before {
    float: none !important;
    margin: 0 !important;
    text-align: left;
    font-weight: 700;
  }
  body.woocommerce-cart table.shop_table_responsive tr.woocommerce-cart-form__cart-item td.product-remove {
    display: flex !important;
    min-height: 48px;
    justify-content: flex-end;
    padding-block: 9px !important;
  }
  body.woocommerce-cart table.shop_table_responsive tr.woocommerce-cart-form__cart-item td.product-thumbnail { display: none !important; }
  body.woocommerce-cart table.shop_table_responsive tr.woocommerce-cart-form__cart-item td.product-name,
  body.woocommerce-cart table.shop_table_responsive tr.woocommerce-cart-form__cart-item td.product-price,
  body.woocommerce-cart table.shop_table_responsive tr.woocommerce-cart-form__cart-item td.product-quantity,
  body.woocommerce-cart table.shop_table_responsive tr.woocommerce-cart-form__cart-item td.product-subtotal { width: 100% !important; min-width: 0 !important; }
  body.woocommerce-cart table.shop_table_responsive tr.woocommerce-cart-form__cart-item td.product-name > .gw-cr-mobile-product {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    min-width: 0;
  }
  body.woocommerce-cart table.shop_table_responsive tr.woocommerce-cart-form__cart-item .gw-cr-mobile-thumb { display: block; width: 52px; }
  body.woocommerce-cart table.shop_table_responsive tr.woocommerce-cart-form__cart-item .gw-cr-mobile-thumb__image { display: block; width: 52px !important; height: 52px !important; margin: 0 !important; object-fit: contain; }
  body.woocommerce-cart table.shop_table_responsive tr.woocommerce-cart-form__cart-item .gw-cr-mobile-name,
  body.woocommerce-cart table.shop_table_responsive tr.woocommerce-cart-form__cart-item .gw-cr-mobile-name a { min-width: 0; overflow-wrap: anywhere; }
  body.woocommerce-cart table.shop_table_responsive tr.woocommerce-cart-form__cart-item td.product-quantity .quantity { justify-self: start; margin: 0 !important; }
  body.woocommerce-cart table.shop_table_responsive tr.woocommerce-cart-form__cart-item td.product-subtotal .amount,
  body.woocommerce-cart table.shop_table_responsive tr.woocommerce-cart-form__cart-item td.product-price .amount { white-space: nowrap; }
  body.woocommerce-cart table.shop_table_responsive tr:last-child td.actions { display: none !important; }
  body.woocommerce-cart .cart_totals table.shop_table_responsive tr.order-total {
    display: flex !important;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
  }
  body.woocommerce-cart .cart_totals table.shop_table_responsive tr.order-total th {
    display: block !important;
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    padding-right: 0 !important;
  }
  body.woocommerce-cart .cart_totals table.shop_table_responsive tr.order-total td {
    display: block !important;
    flex: 0 0 auto;
    width: auto !important;
    padding-left: 0 !important;
    text-align: right !important;
    white-space: nowrap;
  }
  body.woocommerce-cart .cart_totals table.shop_table_responsive tr.order-total td::before { display: none !important; }
  body.woocommerce-cart .cart_totals table.shop_table_responsive tr.order-total .amount { white-space: nowrap; }
}

@media (max-width: 360px) {
  body.woocommerce-cart table.shop_table_responsive tr.woocommerce-cart-form__cart-item td {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 10px;
    padding-inline: 12px !important;
  }
  body.woocommerce-cart table.shop_table_responsive tr.woocommerce-cart-form__cart-item td.product-quantity .quantity,
  body.woocommerce-cart table.shop_table_responsive tr.woocommerce-cart-form__cart-item td.product-quantity .quantity.buttons-added {
    width: 110px !important;
    min-width: 110px;
  }
  body.woocommerce-cart table.shop_table_responsive tr.woocommerce-cart-form__cart-item td.product-quantity .minus,
  body.woocommerce-cart table.shop_table_responsive tr.woocommerce-cart-form__cart-item td.product-quantity .plus {
    flex: 0 0 35px;
    width: 35px !important;
  }
  body.woocommerce-cart table.shop_table_responsive tr.woocommerce-cart-form__cart-item td.product-quantity .qty {
    flex: 1 1 auto;
    width: 40px !important;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gw-cr-button { transition: none; }
}
