/* ==========================================================================
   Ghestyar — product page credit table
   Theme font is inherited; colors come from the variables below.
   ========================================================================== */
.gy-credit-box {
  --gy-accent: #0f172a;
  --gy-ink: #0f172a;
  --gy-ink-2: #334155;
  --gy-muted: #64748b;
  --gy-faint: #94a3b8;
  --gy-line: #e6eaf1;
  --gy-line-2: #f1f4f8;
  --gy-soft: #f8fafc;
  --gy-good: #15803d;
  --gy-good-50: #ecfdf3;
  --gy-radius: 18px;

  direction: rtl;
  clear: both !important;
  float: none !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 14px 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  font-family: inherit;
  color: var(--gy-ink);
  text-align: right;
  background: #fff;
  border: 1px solid var(--gy-line);
  border-radius: var(--gy-radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -18px rgba(15, 23, 42, .18);
  container-type: inline-size;
  container-name: ghestyarbox;
}
.gy-credit-box *,
.gy-credit-box *::before,
.gy-credit-box *::after { box-sizing: border-box; font-family: inherit; }
.gy-credit-box img { max-width: 100%; height: auto; }
.gy-credit-box [hidden] { display: none !important; }
.gy-credit-mounted { position: relative !important; inset: auto !important; z-index: 1; }
.gy-credit-fallback-template { display: none !important; }

/* ---------- Header ---------- */
.gy-credit-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #fbfcfe 0%, #f5f7fb 100%);
  border-bottom: 1px solid var(--gy-line);
}
.gy-credit-head-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #fff;
  border: 1px solid var(--gy-line);
  color: var(--gy-accent);
}
.gy-credit-head-icon svg { width: 21px; height: 21px; display: block; }
.gy-credit-head-body { flex: 1 1 auto; min-width: 0; }
.gy-credit-box .gy-credit-head h3 {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--gy-ink) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.7 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.gy-credit-box .gy-credit-head p {
  margin: 1px 0 0 !important;
  padding: 0 !important;
  color: var(--gy-muted) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.9 !important;
}
.gy-credit-count {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--gy-line);
  color: var(--gy-muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Rows ---------- */
.gy-credit-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: #fff;
}
.gy-credit-row {
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 15px;
  background: #fff;
  border: 1px solid var(--gy-line);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.gy-credit-row:hover { border-color: #d5dbe6; box-shadow: 0 6px 18px -12px rgba(15, 23, 42, .25); }
.gy-credit-row.is-best { border-color: #bfe6cf; background: linear-gradient(180deg, #fbfefc 0%, #fff 60%); }
.gy-credit-row.is-disabled { background: var(--gy-soft); }
.gy-credit-row.is-disabled .gy-provider-avatar img { filter: grayscale(1); opacity: .7; }

.gy-credit-main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

/* Provider */
.gy-credit-provider { display: flex; align-items: center; gap: 11px; min-width: 0; }
.gy-provider-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  padding: 7px;
  border-radius: 14px;
  background: var(--gy-soft);
  border: 1px solid var(--gy-line);
  color: var(--gy-ink-2);
  overflow: hidden;
}
.gy-provider-avatar img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.gy-provider-avatar svg { width: 22px; height: 22px; display: block; }
.gy-credit-provider-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 auto; }
.gy-credit-name-wrap { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gy-credit-box .gy-credit-name {
  display: block;
  min-width: 0;
  color: var(--gy-ink) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.6 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gy-best-tag {
  display: none;
  align-items: center;
  gap: 5px;
  flex: none;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--gy-good-50);
  color: var(--gy-good);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.gy-best-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.gy-credit-row.is-best .gy-best-tag { display: inline-flex; }
.gy-credit-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.gy-credit-installments,
.gy-credit-percent,
.gy-credit-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.gy-credit-installments { background: var(--gy-line-2); color: var(--gy-ink-2); }
.gy-credit-percent { background: #fff7ed; color: #b45309; }
.gy-credit-badge { background: #eef2ff; color: #4338ca; }

/* Price */
.gy-credit-price-stock { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; }
.gy-credit-price-label { font-size: 11px; font-weight: 500; color: var(--gy-faint); line-height: 1.6; }
.gy-credit-box .gy-credit-price {
  display: block !important;
  max-width: 100%;
  margin: 0 !important;
  color: var(--gy-ink) !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gy-credit-box .gy-credit-monthly {
  display: block !important;
  margin: 0 !important;
  color: var(--gy-muted) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.8 !important;
}
.gy-credit-box .gy-credit-monthly b { color: var(--gy-ink-2) !important; font-weight: 700 !important; }
.gy-credit-box .gy-credit-price *,
.gy-credit-box .gy-credit-monthly *,
.gy-credit-box .gy-credit-breakdown dd * {
  font-style: normal !important;
  text-decoration: none !important;
  letter-spacing: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  float: none !important;
  position: static !important;
}
.gy-credit-box .woocommerce-Price-amount,
.gy-credit-box .woocommerce-Price-amount bdi { display: inline !important; white-space: nowrap !important; color: inherit !important; font-size: inherit !important; font-weight: inherit !important; }
.gy-credit-box .woocommerce-Price-currencySymbol {
  font-size: .62em !important;
  font-weight: 500 !important;
  color: var(--gy-muted) !important;
  margin-inline-start: 3px !important;
  vertical-align: baseline !important;
}
.gy-credit-box .gy-credit-monthly .woocommerce-Price-currencySymbol { font-size: .9em !important; }

/* Actions */
.gy-credit-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.gy-credit-box .gy-add-to-cart {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 128px;
  min-height: 42px;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--gy-accent) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 8px 18px -10px rgba(15, 23, 42, .55) !important;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, background-color .2s ease;
}
.gy-credit-box .gy-add-to-cart:hover { transform: translateY(-1px); filter: brightness(1.12); }
.gy-credit-box .gy-add-to-cart:focus-visible { outline: 2px solid var(--gy-accent) !important; outline-offset: 2px; }
.gy-credit-box .gy-add-to-cart:disabled,
.gy-credit-box .gy-add-to-cart.gy-disabled {
  background: #e2e8f0 !important;
  color: var(--gy-faint) !important;
  cursor: not-allowed;
  transform: none;
  filter: none;
  box-shadow: none !important;
}
.gy-credit-box .gy-add-to-cart.is-done { background: var(--gy-good) !important; }
.gy-btn-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  animation: gySpin .7s linear infinite;
}
.gy-add-to-cart.is-loading { cursor: progress !important; }
.gy-add-to-cart.is-loading .gy-btn-spinner { display: inline-block; }
@keyframes gySpin { to { transform: rotate(360deg); } }

.gy-credit-box .gy-credit-toggle-details {
  display: inline-grid !important;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 12px !important;
  border: 1px solid var(--gy-line) !important;
  background: #fff !important;
  color: var(--gy-ink-2) !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.gy-credit-box .gy-credit-toggle-details:hover { background: var(--gy-soft) !important; border-color: #d5dbe6 !important; }
.gy-credit-box .gy-credit-toggle-details:focus-visible { outline: 2px solid var(--gy-accent) !important; outline-offset: 2px; }
.gy-toggle-chevron {
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}
.gy-credit-row.is-details-open .gy-toggle-chevron { transform: translateY(2px) rotate(225deg); }

/* ---------- Details ---------- */
.gy-credit-details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .22s ease;
}
.gy-credit-row.is-details-open .gy-credit-details { grid-template-rows: 1fr; }
.gy-credit-details-inner { min-height: 0; overflow: hidden; }
.gy-credit-details-inner > :first-child { margin-top: 12px !important; }
.gy-credit-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
}
.gy-credit-breakdown > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 11px;
  background: var(--gy-soft);
  border: 1px solid var(--gy-line-2);
}
.gy-credit-breakdown dt { margin: 0; font-size: 12px; font-weight: 400; color: var(--gy-muted); line-height: 1.7; }
.gy-credit-breakdown dd { margin: 0; font-size: 13px; font-weight: 700; color: var(--gy-ink); white-space: nowrap; line-height: 1.7; }
.gy-credit-breakdown > .is-total { background: #fff; border-color: var(--gy-line); }
.gy-credit-provider-description {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 11px;
  background: var(--gy-soft);
  color: var(--gy-ink-2);
  font-size: 13px;
  line-height: 2;
}
.gy-credit-provider-description > :first-child { margin-top: 0 !important; }
.gy-credit-provider-description p { margin: 0 0 6px !important; }
.gy-credit-provider-description p:last-child { margin-bottom: 0 !important; }
.gy-credit-provider-description ul,
.gy-credit-provider-description ol { margin: 0 !important; padding-inline-start: 18px !important; }
.gy-credit-feature-empty { margin: 0 !important; color: var(--gy-muted); font-size: 12px; }

/* ---------- Loading skeleton (variation change) ---------- */
.gy-credit-box.is-loading .gy-credit-price,
.gy-credit-box.is-loading .gy-credit-monthly b,
.gy-credit-box.is-loading .gy-credit-breakdown dd {
  color: transparent !important;
  border-radius: 6px;
  background: linear-gradient(90deg, #eef1f6 25%, #f7f9fc 50%, #eef1f6 75%) !important;
  background-size: 200% 100% !important;
  animation: gyShimmer 1.1s linear infinite;
}
.gy-credit-box.is-loading .gy-credit-price *,
.gy-credit-box.is-loading .gy-credit-monthly b *,
.gy-credit-box.is-loading .gy-credit-breakdown dd * { color: transparent !important; visibility: hidden; }
@keyframes gyShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.gy-credit-box.is-all-hidden .gy-credit-rows::after {
  content: "برای این گزینه روش خرید اعتباری فعالی وجود ندارد.";
  display: block;
  padding: 14px;
  border-radius: 12px;
  background: var(--gy-soft);
  color: var(--gy-muted);
  font-size: 13px;
  text-align: center;
}

/* ---------- Empty state & cash seller ---------- */
.gy-credit-empty { padding: 14px 18px !important; }
.gy-credit-empty p { margin: 0 !important; color: var(--gy-muted); font-size: 13px; line-height: 1.9; }

.gy-seller {
  --gy-accent: #0f172a;
  position: relative;
  display: flex !important;
  flex-direction: column;
  gap: 12px;
  clear: both;
  width: 100%;
  max-width: 100%;
  margin: 14px 0 !important;
  padding: 14px 16px !important;
  box-sizing: border-box;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e6eaf1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -18px rgba(15, 23, 42, .18);
  color: #334155;
  font-family: inherit;
  text-align: right;
  direction: rtl;
  overflow: hidden;
  container-type: inline-size;
  container-name: gyseller;
}
.gy-seller *, .gy-seller *::before, .gy-seller *::after { box-sizing: border-box; font-family: inherit; }
.gy-seller [hidden] { display: none !important; }
.gy-seller svg { display: block !important; flex: none !important; max-width: none !important; }
.gy-seller-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gy-seller-logo {
  display: grid !important;
  place-items: center;
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 13px;
  background: #f4f6fb;
  background: color-mix(in srgb, var(--gy-accent) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--gy-accent) 14%, #e6eaf1);
  color: var(--gy-accent);
}
.gy-seller-logo svg { width: 22px !important; height: 22px !important; }
.gy-seller-body { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.gy-seller-label { font-size: 11px; font-weight: 500; color: #94a3b8; line-height: 1.6; }
.gy-seller-name { display: flex; align-items: center; gap: 5px; min-width: 0; }
.gy-seller-name strong { color: #0f172a !important; font-size: 15px !important; font-weight: 800 !important; line-height: 1.6 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gy-seller-verified { color: #1d9bf0; flex: none; }
.gy-seller-verified svg { width: 16px !important; height: 16px !important; }
.gy-seller-note { font-size: 12px; color: #64748b; line-height: 1.8; }
.gy-seller-chip { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 26px; padding: 0 10px; border-radius: 999px; background: #ecfdf3; color: #15803d; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.gy-seller-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.gy-seller-buy-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #eef1f6;
}
.gy-seller-price { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.gy-seller-price-label { font-size: 11px; font-weight: 500; color: #94a3b8; line-height: 1.6; }
.gy-seller-price strong, .gy-seller-price strong * { color: #0f172a !important; font-size: 19px !important; font-weight: 800 !important; line-height: 1.5 !important; letter-spacing: 0 !important; text-decoration: none !important; white-space: nowrap; }
.gy-seller-price .woocommerce-Price-currencySymbol { font-size: 11px !important; font-weight: 500 !important; color: #64748b !important; margin-inline-start: 3px; }
.gy-seller-pay { font-size: 11px; color: #64748b; line-height: 1.7; }
.gy-seller-saving {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 6px 10px;
  border-radius: 10px;
  background: #ecfdf3;
  border: 1px dashed #86efac;
  color: #15803d;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}
.gy-seller-saving svg { width: 16px !important; height: 16px !important; }
.gy-seller-saving b, .gy-seller-saving b * { color: #15803d !important; font-weight: 800 !important; font-size: 13px !important; }
.gy-seller-saving .woocommerce-Price-currencySymbol { font-size: 10px !important; font-weight: 500 !important; }
.gy-seller .gy-seller-buy {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: none;
  min-width: 132px;
  min-height: 44px;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--gy-accent) !important;
  color: #fff !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--gy-accent) 85%, transparent) !important;
  transition: transform .15s ease, filter .15s ease;
}
.gy-seller .gy-seller-buy svg { width: 18px !important; height: 18px !important; }
.gy-seller .gy-seller-buy:hover { transform: translateY(-1px); filter: brightness(1.12); }
.gy-seller .gy-seller-buy:focus-visible { outline: 2px solid var(--gy-accent) !important; outline-offset: 2px; }
.gy-seller .gy-seller-buy.is-loading { cursor: progress !important; }
.gy-seller .gy-seller-buy.is-loading .gy-btn-spinner { display: inline-block; }
.gy-seller .gy-seller-buy.is-loading svg { display: none !important; }
.gy-native-moved { display: none !important; }

@container gyseller (max-width: 520px) {
  .gy-seller-buy-row { flex-wrap: wrap; }
  .gy-seller-price { flex-basis: calc(100% - 150px); }
  .gy-seller .gy-seller-buy { flex: 1 1 100%; order: 3; }
}
@container gyseller (max-width: 360px) {
  .gy-seller-chip { display: none; }
  .gy-seller-price { flex-basis: 100%; }
}
@supports not (container-type: inline-size) {
  @media (max-width: 480px) {
    .gy-seller-buy-row { flex-wrap: wrap; }
    .gy-seller .gy-seller-buy { flex: 1 1 100%; }
  }
}

/* ---------- Variation attention ---------- */
form.variations_form.gy-attention { animation: gyNudge .5s ease 2; border-radius: 12px; box-shadow: 0 0 0 3px rgba(220, 38, 38, .18); transition: box-shadow .3s; }
@keyframes gyNudge { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* ---------- Native add-to-cart hiding (optional setting) ----------
   Strict mode: every purchase control WooCommerce, the theme or a "buy now" plugin
   puts in the main product summary is hidden; only Ghestyar's own buttons remain. */
body.ghestyar-hide-native-cart.single-product form.cart .single_add_to_cart_button,
body.ghestyar-hide-native-cart.single-product form.cart .quantity,
body.ghestyar-hide-native-cart.single-product form.cart button:not([type="button"]):not(.gy-seller-buy):not(.gy-add-to-cart),
body.ghestyar-hide-native-cart.single-product form.cart input[type="submit"],
body.ghestyar-hide-native-cart.single-product form.cart [name="add-to-cart"]:not(input[type="hidden"]),
body.ghestyar-hide-native-cart.single-product .woocommerce-variation-add-to-cart > :not(.variations_button):not(input[type="hidden"]):not(.gy-seller):not(.gy-credit-box),
body.ghestyar-hide-native-cart.single-product .wd-buy-now-btn,
body.ghestyar-hide-native-cart.single-product .buy-now,
body.ghestyar-hide-native-cart.single-product .buy_now_button,
body.ghestyar-hide-native-cart.single-product .buy-now-button,
body.ghestyar-hide-native-cart.single-product .button-buy-now,
body.ghestyar-hide-native-cart.single-product .single_buy_now_button,
body.ghestyar-hide-native-cart.single-product .wc-buy-now-btn,
body.ghestyar-hide-native-cart.single-product .wpcbn-btn,
body.ghestyar-hide-native-cart.single-product .product-buy-now,
body.ghestyar-hide-native-cart.single-product .direct-checkout-button,
body.ghestyar-hide-native-cart.single-product .quick-buy-button,
body.ghestyar-hide-native-cart.single-product .elementor-widget-woocommerce-product-add-to-cart .elementor-button:not(.gy-seller-buy):not(.gy-add-to-cart),
body.ghestyar-hide-native-cart.single-product div.product [class*="quick-buy"]:not([class*="gy-"]),
body.ghestyar-hide-native-cart.single-product div.product [class*="quick_buy"]:not([class*="gy-"]),
body.ghestyar-hide-native-cart.single-product div.product [id*="quick_buy"],
body.ghestyar-hide-native-cart.single-product div.product [id*="quick-buy"],
body.ghestyar-hide-native-cart.single-product div.product [class*="buy-now"]:not([class*="gy-"]),
body.ghestyar-hide-native-cart.single-product div.product [class*="buy_now"]:not([class*="gy-"]),
body.ghestyar-hide-native-cart.single-product [class*="sticky-add-to-cart"],
body.ghestyar-hide-native-cart.single-product [class*="sticky_add_to_cart"],
body.ghestyar-hide-native-cart.single-product .gy-native-cart-hidden,
.gy-native-moved {
  display: none !important;
}

/* ---------- Teaser under price ---------- */
.gy-teaser {
  --gy-accent: #0f172a;
  --gy-tint: #f4f6fb;
  --gy-edge: #e3e8f1;
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 4px 0 12px !important;
  padding: 5px 6px 5px 12px !important;
  box-sizing: border-box;
  border-radius: 16px;
  border: 1px solid var(--gy-edge);
  background: var(--gy-tint);
  background: linear-gradient(115deg, color-mix(in srgb, var(--gy-accent) 9%, #fff) 0%, #fff 70%);
  border-color: color-mix(in srgb, var(--gy-accent) 18%, #e6eaf1);
  color: #334155 !important;
  font-family: inherit;
  font-size: 13px !important;
  font-weight: 500;
  line-height: 1.7 !important;
  text-decoration: none !important;
  text-align: right;
  direction: rtl;
  overflow: hidden;
  box-shadow: 0 10px 24px -18px color-mix(in srgb, var(--gy-accent) 70%, transparent);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.gy-teaser *, .gy-teaser *::before, .gy-teaser *::after { box-sizing: border-box; }
.gy-teaser::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%);
  transform: translateX(120%);
  pointer-events: none;
}
a.gy-teaser:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--gy-accent) 35%, #e6eaf1); box-shadow: 0 14px 28px -18px color-mix(in srgb, var(--gy-accent) 80%, transparent); }
a.gy-teaser:hover::after { animation: gyShine .9s ease; }
@keyframes gyShine { to { transform: translateX(-120%); } }
.gy-teaser svg { display: block !important; flex: none !important; max-width: none !important; }
.gy-teaser-icon {
  display: grid !important;
  place-items: center;
  flex: 0 0 30px !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 10px;
  background: var(--gy-accent);
  color: #fff !important;
  box-shadow: 0 8px 16px -8px color-mix(in srgb, var(--gy-accent) 90%, transparent);
}
.gy-teaser-icon svg { width: 16px !important; height: 16px !important; }
.gy-teaser-body { display: flex; flex-direction: column; min-width: 0; gap: 0; }
.gy-teaser-text { color: var(--gy-teaser-fg, #334155); font-size: 13px; font-weight: 500; line-height: 1.8; }
.gy-teaser-price, .gy-teaser-price * { color: var(--gy-teaser-price, var(--gy-accent)) !important; font-weight: 800 !important; font-size: 14px !important; }
.gy-teaser-price .woocommerce-Price-currencySymbol { font-size: 11px !important; font-weight: 500 !important; opacity: .8; margin-inline-start: 2px; }
.gy-teaser-sub { color: var(--gy-teaser-fg, #64748b); font-size: 11.5px; font-weight: 400; line-height: 1.7; }
.gy-teaser-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  margin-inline-start: 6px;
  height: 30px;
  padding: 0 12px 0 8px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--gy-accent) 20%, #e6eaf1);
  color: var(--gy-accent);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.gy-teaser-cta svg { width: 14px !important; height: 14px !important; transition: transform .18s ease; }
a.gy-teaser:hover .gy-teaser-cta { background: var(--gy-accent); color: #fff; }
a.gy-teaser:hover .gy-teaser-cta svg { transform: translateX(-3px); }

.gy-teaser-loop { gap: 8px; margin: 6px auto 8px !important; padding: 4px 10px 4px 5px !important; border-radius: 999px; box-shadow: none; }
.gy-teaser-loop .gy-teaser-icon { flex-basis: 24px !important; width: 24px !important; height: 24px !important; border-radius: 50%; box-shadow: none; }
.gy-teaser-loop .gy-teaser-icon svg { width: 13px !important; height: 13px !important; }
.gy-teaser-loop .gy-teaser-text { font-size: 12px; }
.gy-teaser-loop .gy-teaser-price, .gy-teaser-loop .gy-teaser-price * { font-size: 12.5px !important; }

@media (max-width: 480px) {
  .gy-teaser-single { width: 100%; }
  .gy-teaser-cta { padding: 0 8px; }
  .gy-teaser-cta { font-size: 0 !important; gap: 0; width: 32px; justify-content: center; }
}

.gy-credit-box.gy-pulse { animation: gyPulseBox 1.1s ease; }
@keyframes gyPulseBox { 0% { box-shadow: 0 0 0 0 rgba(15, 23, 42, .25); } 100% { box-shadow: 0 0 0 14px rgba(15, 23, 42, 0); } }

/* ---------- Admin live preview helpers ---------- */
.gy-credit-box.gy-hide-percent .gy-credit-percent,
.gy-credit-box.gy-hide-breakdown .gy-credit-breakdown,
.gy-credit-box.gy-hide-best .gy-best-tag,
.gy-credit-box.gy-hide-fee .gy-breakdown-fee { display: none !important; }
.gy-credit-box.gy-hide-best .gy-credit-row.is-best { border-color: var(--gy-line); background: #fff; }

/* ---------- Toasts ---------- */
.gy-toasts {
  position: fixed;
  z-index: 999999;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(380px, calc(100vw - 24px));
  pointer-events: none;
  direction: rtl;
  font-family: inherit;
}
.gy-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px 13px 12px;
  border-radius: 14px;
  background: #0f172a;
  color: #f8fafc;
  box-shadow: 0 18px 40px -16px rgba(15, 23, 42, .55), 0 2px 6px rgba(15, 23, 42, .15);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(10px) scale(.98);
  transition: opacity .22s ease, transform .22s ease;
  text-align: right;
}
.gy-toast.is-in { opacity: 1; transform: none; }
.gy-toast.is-out { opacity: 0; transform: translateY(6px); }
.gy-toast-icon { display: grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; }
.gy-toast-icon svg { width: 16px; height: 16px; display: block; }
.gy-toast.is-success .gy-toast-icon { background: rgba(34, 197, 94, .18); color: #4ade80; }
.gy-toast.is-error .gy-toast-icon { background: rgba(248, 113, 113, .18); color: #fca5a5; }
.gy-toast.is-info .gy-toast-icon { background: rgba(147, 197, 253, .18); color: #93c5fd; }
.gy-toast-body { flex: 1 1 auto; min-width: 0; }
.gy-toast-text { margin: 0 !important; font-size: 13px; font-weight: 500; line-height: 1.9; color: inherit !important; }
.gy-toast-action {
  display: inline-block;
  margin-top: 4px;
  color: #a5b4fc !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
}
.gy-toast-action:hover { color: #c7d2fe !important; }
.gy-toast-close {
  flex: none;
  width: 26px;
  height: 26px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 8px;
  background: transparent !important;
  color: #94a3b8 !important;
  font-size: 20px !important;
  line-height: 1 !important;
  cursor: pointer;
}
.gy-toast-close:hover { background: rgba(255, 255, 255, .08) !important; color: #fff !important; }

/* ---------- Responsive (container first, viewport fallback) ---------- */
@container ghestyarbox (max-width: 620px) {
  .gy-credit-main { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "provider provider" "price actions"; gap: 12px; }
  .gy-credit-provider { grid-area: provider; }
  .gy-credit-price-stock { grid-area: price; }
  .gy-credit-actions { grid-area: actions; }
  .gy-credit-box .gy-credit-price { font-size: 18px !important; }
}
@container ghestyarbox (max-width: 440px) {
  .gy-credit-head { padding: 13px 14px; gap: 10px; }
  .gy-credit-head-icon { flex-basis: 38px; width: 38px; height: 38px; border-radius: 12px; }
  .gy-credit-count { display: none; }
  .gy-credit-box .gy-credit-head h3 { font-size: 15px !important; }
  .gy-credit-box .gy-credit-head p { font-size: 11.5px !important; }
  .gy-credit-rows { padding: 9px; gap: 9px; }
  .gy-credit-row { padding: 11px; border-radius: 14px; }
  .gy-provider-avatar { flex-basis: 42px; width: 42px; height: 42px; border-radius: 12px; padding: 6px; }
  .gy-credit-box .gy-credit-name { font-size: 14px !important; }
  .gy-credit-main { grid-template-columns: minmax(0, 1fr); grid-template-areas: "provider" "price" "actions"; gap: 10px; }
  .gy-credit-price-stock { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--gy-soft); }
  .gy-credit-price-label { display: none; }
  .gy-credit-box .gy-credit-price { font-size: 17px !important; }
  .gy-credit-box .gy-credit-monthly { font-size: 11.5px !important; }
  .gy-credit-actions { justify-self: stretch; }
  .gy-credit-box .gy-add-to-cart { flex: 1 1 auto; min-width: 0; min-height: 40px; }
  .gy-credit-box .gy-credit-toggle-details { flex-basis: 40px; }
  .gy-credit-breakdown { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
@supports not (container-type: inline-size) {
  @media (max-width: 480px) {
    .gy-credit-count { display: none; }
    .gy-credit-main { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .gy-credit-actions { justify-self: stretch; }
    .gy-credit-box .gy-add-to-cart { flex: 1 1 auto; min-width: 0; }
    .gy-credit-breakdown { grid-template-columns: minmax(0, 1fr); }
  }
}
@media (max-width: 600px) {
  .gy-toasts { left: 12px; right: 12px; bottom: 12px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .gy-credit-box *, .gy-toast, form.variations_form.gy-attention { animation: none !important; transition: none !important; }
}

/* ---------- 2.1: teaser styles ---------- */
.gy-ts-soft { background: color-mix(in srgb, var(--gy-accent) 8%, #fff) !important; border-color: transparent !important; box-shadow: none !important; }
.gy-ts-soft .gy-teaser-icon { background: #fff; color: var(--gy-accent) !important; box-shadow: none; }
.gy-ts-soft .gy-teaser-cta { background: var(--gy-accent); color: #fff; border-color: transparent; }
.gy-ts-pill { border-radius: 999px !important; padding: 4px 12px 4px 5px !important; box-shadow: none !important; background: #fff !important; border-color: color-mix(in srgb, var(--gy-accent) 30%, #e6eaf1) !important; }
.gy-ts-pill .gy-teaser-icon { border-radius: 50%; flex-basis: 28px !important; width: 28px !important; height: 28px !important; box-shadow: none; }
.gy-ts-pill .gy-teaser-cta { border: 0; background: color-mix(in srgb, var(--gy-accent) 10%, #fff); border-radius: 999px; }
.gy-ts-outline { background: transparent !important; border: 1.5px solid var(--gy-accent) !important; box-shadow: none !important; }
.gy-ts-outline .gy-teaser-icon { background: transparent; color: var(--gy-accent) !important; box-shadow: none; border: 1.5px solid var(--gy-accent); }
.gy-ts-outline .gy-teaser-cta { background: var(--gy-accent); color: #fff; border-color: var(--gy-accent); }
.gy-ts-gradient { background: linear-gradient(120deg, var(--gy-accent), color-mix(in srgb, var(--gy-accent) 60%, #7c5cff)) !important; border-color: transparent !important; box-shadow: 0 16px 30px -18px var(--gy-accent) !important; color: #fff !important; }
.gy-ts-gradient .gy-teaser-text, .gy-ts-gradient .gy-teaser-sub { color: var(--gy-teaser-fg, rgba(255, 255, 255, .92)); }
.gy-ts-gradient .gy-teaser-price, .gy-ts-gradient .gy-teaser-price * { color: var(--gy-teaser-price, #fff) !important; }
.gy-ts-gradient .gy-teaser-icon { background: rgba(255, 255, 255, .2); box-shadow: none; }
.gy-ts-gradient .gy-teaser-cta { background: #fff; color: var(--gy-accent); border-color: transparent; }
a.gy-ts-gradient:hover .gy-teaser-cta { background: #fff; color: var(--gy-accent); }
.gy-ts-minimal { background: transparent !important; border: 0 !important; border-bottom: 1.5px dashed color-mix(in srgb, var(--gy-accent) 45%, #cbd5e1) !important; border-radius: 0 !important; box-shadow: none !important; padding: 2px 0 4px !important; }
.gy-ts-minimal .gy-teaser-icon { background: transparent; color: var(--gy-accent) !important; box-shadow: none; flex-basis: 20px !important; width: 20px !important; height: 20px !important; }
.gy-ts-minimal .gy-teaser-cta { border: 0; background: transparent; padding: 0 4px; text-decoration: underline; text-underline-offset: 4px; }
.gy-ts-minimal::after { display: none; }
.gy-ts-ticket { border-radius: 12px !important; background: #fff !important; border: 1.5px solid color-mix(in srgb, var(--gy-accent) 25%, #e6eaf1) !important; padding: 0 0 0 0 !important; gap: 0 !important; box-shadow: none !important; }
.gy-ts-ticket .gy-teaser-icon { align-self: stretch; height: auto !important; width: 46px !important; flex-basis: 46px !important; border-radius: 0; box-shadow: none; }
.gy-ts-ticket .gy-teaser-body { padding: 6px 12px; border-inline-start: 2px dashed color-mix(in srgb, var(--gy-accent) 30%, #e2e8f0); }
.gy-ts-ticket .gy-teaser-cta { margin-inline: 0 8px; }
.gy-teaser-loop.gy-ts-ticket, .gy-teaser-loop.gy-ts-minimal, .gy-teaser-loop.gy-ts-outline { border-radius: 999px !important; }
.gy-teaser-loop.gy-ts-minimal { border-radius: 0 !important; }

/* ---------- 2.1: animated marquee strip ---------- */
/* The strip is LTR on purpose: the track starts at the left edge and slides left by half its width (seamless loop). */
.gy-marquee { --gy-deco-bg: #0f172a; --gy-accent: #0f172a; position: relative !important; display: block !important; width: 100% !important; max-width: 100% !important; margin: 6px 0 14px !important; padding: 0 !important; overflow: hidden !important; box-sizing: border-box !important; direction: ltr !important; border-radius: 12px; line-height: 1.6 !important; font-family: inherit; text-align: left; float: none !important; clear: both; --gy-mq-c: var(--gy-deco-fg, #fff); color: var(--gy-mq-c); background: var(--gy-deco-bg); }
.gy-marquee *, .gy-marquee *::before, .gy-marquee *::after { box-sizing: border-box; }
.gy-marquee-track { display: flex !important; flex-wrap: nowrap !important; width: max-content !important; margin: 0 !important; padding: 9px 0 !important; direction: ltr; animation: gyMarquee 30s linear infinite; will-change: transform; }
.gy-marquee-slow .gy-marquee-track { animation-duration: 48s; }
.gy-marquee-fast .gy-marquee-track { animation-duration: 18s; }
.gy-marquee:hover .gy-marquee-track { animation-play-state: paused; }
.gy-marquee-item { display: inline-flex !important; align-items: center; flex: none; gap: 8px; padding: 0 22px; direction: rtl; unicode-bidi: isolate; white-space: nowrap; font-size: 13px; font-weight: 600; line-height: 1.6; color: inherit !important; }
.gy-marquee .gy-marquee-item .gy-marquee-text, .gy-marquee .gy-marquee-item .gy-marquee-text * { color: var(--gy-mq-c) !important; font-size: inherit !important; font-family: inherit !important; text-decoration: none !important; }
.gy-marquee .gy-marquee-item .gy-marquee-text .gy-teaser-price, .gy-marquee .gy-marquee-item .gy-marquee-text .gy-teaser-price * { color: var(--gy-deco-price, var(--gy-mq-c)) !important; font-weight: 800 !important; }
.gy-marquee .gy-marquee-item .gy-marquee-text .woocommerce-Price-currencySymbol { font-weight: 500 !important; font-size: .88em !important; opacity: .9; }
.gy-deco-dot { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; }
.gy-deco-ic { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; line-height: 0; color: inherit; }
.gy-deco-ic svg { display: block !important; width: 16px !important; height: 16px !important; max-width: none !important; }
.gy-deco-ic.is-logo { width: auto; height: 20px; }
.gy-deco-ic.is-logo img { display: block !important; height: 20px !important; width: auto !important; max-width: 60px !important; object-fit: contain; border-radius: 4px; }
@keyframes gyMarquee { to { transform: translateX(-50%); } }
/* designs */
.gy-mq-solid { background: var(--gy-deco-bg); }
.gy-mq-gradient { background: linear-gradient(100deg, var(--gy-deco-bg), color-mix(in srgb, var(--gy-deco-bg) 55%, #7c5cff)); }
.gy-mq-soft { --gy-mq-c: var(--gy-deco-fg, var(--gy-deco-bg)); background: color-mix(in srgb, var(--gy-deco-bg) 10%, #fff); border: 1px solid color-mix(in srgb, var(--gy-deco-bg) 22%, #fff); }
.gy-mq-outline { --gy-mq-c: var(--gy-deco-fg, var(--gy-deco-bg)); background: transparent; border: 1.5px solid var(--gy-deco-bg); }
.gy-mq-ticker { background: #0b1020; border-radius: 6px; --gy-mq-c: var(--gy-deco-fg, #fff); box-shadow: inset 0 -3px 0 var(--gy-deco-bg); }
.gy-mq-ticker .gy-deco-dot, .gy-mq-ticker .gy-deco-ic { color: var(--gy-deco-bg); filter: brightness(1.5); opacity: 1; }
.gy-mq-soft, .gy-mq-outline, .gy-mq-solid, .gy-mq-gradient { -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.gy-marquee-loop { margin: 4px 0 8px !important; border-radius: 8px; }
.gy-marquee-loop .gy-marquee-track { padding: 6px 0 !important; }
.gy-marquee-loop .gy-marquee-item { font-size: 11.5px; padding: 0 16px; gap: 6px; }
@media (prefers-reduced-motion: reduce) { .gy-marquee-track { animation: none; } }

/* ---------- 2.1: price badge over product images ---------- */
.gy-badge { --gy-deco-bg: #0f172a; --gy-accent: #0f172a; position: absolute; z-index: 9; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 16px); margin: 0 !important; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--gy-deco-bg); color: var(--gy-deco-fg, #fff); font-family: inherit; font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap; box-shadow: 0 10px 22px -10px var(--gy-deco-bg); pointer-events: none; direction: rtl; box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; }
.gy-badge *, .gy-badge *::before, .gy-badge *::after { box-sizing: border-box; }
.gy-badge .gy-deco-ic, .gy-badge .gy-deco-ic svg { width: 14px !important; height: 14px !important; }
.gy-badge .gy-deco-ic.is-logo { width: auto !important; height: 16px !important; }
.gy-badge .gy-deco-ic.is-logo img { height: 16px !important; }
.gy-badge .gy-badge-text, .gy-badge .gy-badge-text * { color: inherit !important; font-size: inherit !important; font-family: inherit !important; font-weight: 800 !important; text-decoration: none !important; }
.gy-badge .gy-badge-text .gy-teaser-price, .gy-badge .gy-badge-text .gy-teaser-price * { color: var(--gy-deco-price, inherit) !important; }
.gy-badge .gy-teaser-price .woocommerce-Price-currencySymbol { font-weight: 500 !important; font-size: .85em !important; opacity: .85; }
.gy-badge-top-right { top: 12px; right: 12px; }
.gy-badge-top-left { top: 12px; left: 12px; }
.gy-badge-bottom-right { bottom: 12px; right: 12px; }
.gy-badge-bottom-left { bottom: 12px; left: 12px; }
.gy-badge:not(.is-placed) { display: none; }
/* sizes */
.gy-bds-sm { font-size: 10.5px; padding: 4px 9px 4px 7px; gap: 4px; }
.gy-bds-lg { font-size: 14.5px; padding: 9px 16px 9px 13px; gap: 8px; }
.gy-bds-lg .gy-deco-ic, .gy-bds-lg .gy-deco-ic svg { width: 18px !important; height: 18px !important; }
/* designs */
.gy-bd-glass { background: rgba(255, 255, 255, .72); color: var(--gy-deco-fg, var(--gy-deco-bg)); backdrop-filter: blur(8px) saturate(1.4); -webkit-backdrop-filter: blur(8px) saturate(1.4); border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 10px 24px -12px rgba(15, 23, 42, .45); }
.gy-bd-outline { background: #fff; color: var(--gy-deco-fg, var(--gy-deco-bg)); border: 1.5px solid var(--gy-deco-bg); box-shadow: 0 8px 18px -12px rgba(15, 23, 42, .4); }
.gy-bd-ribbon { border-radius: 0; padding-inline: 14px 18px; clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 50%, 100% 100%, 0 100%); box-shadow: none; filter: drop-shadow(0 6px 8px rgba(15, 23, 42, .25)); overflow: visible; }
.gy-bd-tag { border-radius: 6px 12px 12px 6px; padding-inline-start: 18px; position: absolute; }
.gy-bd-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .85); position: absolute; right: 7px; top: 50%; margin-top: -3.5px; }
.gy-bd-circle { flex-direction: column; justify-content: center; text-align: center; width: 78px; height: 78px; padding: 6px; gap: 0; border-radius: 50%; white-space: normal; line-height: 1.35; max-width: 78px; border: 3px solid rgba(255, 255, 255, .85); }
.gy-bd-circle.gy-bds-sm { width: 60px; height: 60px; max-width: 60px; font-size: 9.5px; }
.gy-bd-circle.gy-bds-lg { width: 98px; height: 98px; max-width: 98px; font-size: 13px; }
.gy-bd-circle .gy-badge-text { display: block; max-width: 100%; }
.gy-bd-circle .gy-deco-ic { display: none; }
.gy-badge-loop { z-index: 8; }

/* ---------- phones: compact product-card decorations ---------- */
@media (max-width: 600px) {
  .gy-teaser-loop { max-width: 100%; justify-content: center; text-align: center; flex-wrap: wrap; gap: 4px; padding: 5px 8px !important; border-radius: 14px !important; }
  .gy-teaser-loop .gy-teaser-icon { display: none !important; }
  .gy-teaser-loop .gy-teaser-text { font-size: 11px; }
  .gy-badge-loop { font-size: 10.5px; padding: 4px 8px; max-width: calc(100% - 14px); }
  .gy-badge-loop .woocommerce-Price-currencySymbol { display: none; }
  .gy-marquee-loop .gy-marquee-item { font-size: 11px; padding: 0 12px; }
}
.gy-badge .gy-badge-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
