.chipak-u300 {
  --u300-ink: #10233f;
  --u300-muted: #526174;
  --u300-accent: #a9470b;
  --u300-focus: #0b5ea8;
  --u300-soft: #fff7f0;
  --u300-border: #e1e7ee;
  direction: rtl;
  box-sizing: border-box;
  width: 100%;
  max-inline-size: 100%;
  margin: 24px 0;
  padding: clamp(18px, 3vw, 28px);
  overflow: hidden;
  color: var(--u300-ink);
  border: 1px solid var(--u300-border);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff 0%, var(--u300-soft) 100%);
  box-shadow: 0 14px 36px rgba(16, 35, 63, .08);
}

.chipak-u300 *, .chipak-u300 *::before, .chipak-u300 *::after { box-sizing: border-box; }
.chipak-u300 [hidden] { display: none !important; }
.chipak-u300__form { width: 100%; max-inline-size: 100%; margin: 0; padding: 0; }
.chipak-u300__heading { display: grid; gap: 4px; }
.chipak-u300__title-line { color: var(--u300-ink); line-height: 1.55; }
.chipak-u300__heading h3 { display: inline; margin: 0; color: inherit; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: inherit; }
.chipak-u300__eyebrow { color: var(--u300-accent); font-size: .82rem; font-weight: 800; }
.chipak-u300__stock-group { white-space: nowrap; }
.chipak-u300__separator { margin-inline: 7px; color: inherit; font-weight: 800; }
.chipak-u300__stock { display: inline; color: inherit; font-size: .98rem; font-weight: 850; }
.chipak-u300__intro { margin: 14px 0 12px; color: var(--u300-muted); line-height: 1.9; }
.chipak-u300__controls, .chipak-u300__actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.chipak-u300__controls { align-items: end; }
.chipak-u300__quantity { display: grid; flex: 1 1 100%; gap: 7px; font-weight: 700; }
.chipak-u300__quantity > span { display: inline-flex; align-items: baseline; gap: 5px; }
.chipak-u300__quantity > span small { color: var(--u300-muted); font-size: .78em; font-weight: 650; }
.chipak-u300__quantity input { width: 100%; min-height: 48px; margin: 0; padding: 8px 12px; color: var(--u300-ink); border: 1px solid #bcc7d3; border-radius: 10px; background: #fff; font: inherit; }
.chipak-u300__help { display: block; margin-top: 8px; color: var(--u300-muted); }
.chipak-u300__lead { margin-top: 18px; padding: 16px; border: 1px solid #ead8ca; border-radius: 14px; background: rgba(255, 255, 255, .9); }
.chipak-u300__lead > p { margin: 4px 0 12px; color: var(--u300-muted); }
.chipak-u300__lead > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.chipak-u300__lead label { display: grid; gap: 6px; font-size: .88rem; font-weight: 700; }
.chipak-u300__lead input { width: 100%; min-height: 48px; margin: 0; padding: 8px 12px; border: 1px solid #bcc7d3; border-radius: 10px; background: #fff; font: inherit; }
.chipak-u300__lead .button { min-height: 48px; margin-top: 12px; padding-inline: 18px; }
.chipak-u300__lead small { display: block; min-height: 1.5em; margin-top: 7px; color: #a12626; }
.chipak-u300__price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; padding: 16px; border-radius: 14px; background: var(--u300-ink); color: #fff; }
.chipak-u300__price > div { display: grid; gap: 5px; }
.chipak-u300__price span { color: #c9d5e4; font-size: .86rem; }
.chipak-u300__price strong { color: #fff; font-size: clamp(1rem, 2.2vw, 1.35rem); }
.chipak-u300__price small { grid-column: 1 / -1; color: #d8e1ec; }
.chipak-u300__price[aria-busy="true"] { opacity: .72; }
.chipak-u300__actions { align-items: stretch; flex-direction: column; margin-top: 14px; }
.chipak-u300__actions .button { width: 100%; min-width: 190px; min-height: 50px; border-radius: 11px; }
.chipak-u300__actions .single_add_to_cart_button { border: 1px solid var(--chipak-gold, #c89536) !important; border-radius: 10px !important; background: var(--chipak-gold, #c89536) !important; color: var(--chipak-navy, #102235) !important; box-shadow: 0 12px 26px rgba(200, 149, 54, .22) !important; font-weight: 950 !important; }
.chipak-u300__actions .single_add_to_cart_button:hover:not(:disabled) { border-color: #d4a546 !important; background: #d4a546 !important; color: var(--chipak-navy, #102235) !important; }
.chipak-u300__actions > a, .chipak-u300__production-link { color: var(--u300-ink); font-weight: 700; text-underline-offset: 4px; }
.chipak-u300__actions > a { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; }
.chipak-configurator#chipak-order { scroll-margin-top: 96px; }
.chipak-u300__message, .chipak-u300__empty { margin-top: 12px; padding: 11px 13px; border-radius: 10px; line-height: 1.8; }
.chipak-u300__message:not([hidden]) { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.chipak-u300__message .button { min-height: 48px; margin: 0; }
.chipak-u300__message[data-type="error"] { color: #8a2020; border: 1px solid #edc1c1; background: #fff1f1; }
.chipak-u300__message[data-type="success"] { color: #17633b; border: 1px solid #b9dec8; background: #effbf4; }
.chipak-u300__empty { color: #72501a; border: 1px solid #ead29b; background: #fff9e9; }
.chipak-u300__empty .button { min-height: 48px; margin: 12px 10px 0 0; }
.chipak-u300__production-link { display: inline-flex; min-height: 48px; align-items: center; margin-top: 12px; }
.chipak-u300__actions > a, .chipak-u300__production-link { overflow-wrap: anywhere; text-align: center; }
.chipak-u300 button:focus-visible, .chipak-u300 input:focus-visible, .chipak-u300 a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px var(--u300-focus); }
.chipak-u300 button[disabled] { cursor: not-allowed; opacity: .55; }

.chipak-u300-loop-stock { display: grid; gap: 4px; margin: 8px 0 10px; padding: 9px 10px; border-radius: 10px; background: #f3f7fb; color: #30435b; font-size: .82rem; }
.chipak-u300-loop-stock.is-available { background: #effbf4; color: #17633b; }
.chipak-u300-loop-stock a { color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.chipak-u300-loop-price { display: inline-block; color: #30435b; font-size: .88rem; font-weight: 700; line-height: 1.7; }
.chipak-u300-loop-button { --u300-focus: #0b5ea8; min-height: 48px; align-items: center; justify-content: center; }
.chipak-u300-loop-button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px var(--u300-focus); }

@media (max-width: 900px) {
  .chipak-u300 { margin-block: 18px; border-radius: 16px; }
  .chipak-u300__controls { align-items: stretch; flex-direction: column; }
  .chipak-u300__quantity { width: 100%; flex-basis: auto; }
}

@media (max-width: 560px) {
  .chipak-u300 { width: 100%; margin-inline: 0; padding: 16px; }
  .chipak-u300__lead > div, .chipak-u300__price { grid-template-columns: 1fr; }
  .chipak-u300__price small { grid-column: 1; }
  .chipak-u300__actions .button, .chipak-u300__actions > a, .chipak-u300__message .button { width: 100%; }
  .chipak-u300__actions { align-items: stretch; flex-direction: column; }
  .chipak-u300__actions > a { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; }
  .chipak-u300 input { font-size: 16px; }
  .chipak-u300__empty .button, .chipak-u300__empty .chipak-u300__production-link { width: 100%; justify-content: center; margin-inline: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .chipak-u300 *, .chipak-u300 *::before, .chipak-u300 *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
