/* =========================================
   Magnet Order Form – Dark Premium Theme
   Accent: #c9a84c
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --mof-gold:       #c9a84c;
  --mof-gold-dim:   #a8893a;
  --mof-gold-pale:  rgba(201,168,76,.8);
  --mof-gold-glow:  rgba(201,168,76,.16);
  --mof-dark:       #141414;
  --mof-dark2:      #1c1c1c;
  --mof-dark3:      #232323;
  --mof-dark4:      #2c2c2c;
  --mof-dark5:      #353535;
  --mof-border:     rgba(201,168,76,.22);
  --mof-border2:    rgba(255,255,255,.07);
  --mof-text:       #ede5d4;        /* wysoki kontrast */
  --mof-muted:      rgba(237,229,212,.65);
  --mof-muted2:     rgba(237,229,212,.38);
  --mof-radius:     4px;
  --mof-font-head:  'Cormorant Garamond', Georgia, serif;
  --mof-font:       'Inter', -apple-system, sans-serif;
}

/* =========================================
   Wrapper
   ========================================= */
.mof-wrap {
  font-family: var(--mof-font);
  max-width: 780px;
  margin: 40px auto;
  background: var(--mof-dark2);
  border: 1px solid var(--mof-border);
  border-radius: 6px;
  box-shadow: 0 16px 64px rgba(0,0,0,.7), 0 0 0 1px rgba(201,168,76,.04);
  overflow: hidden;
  color: var(--mof-text);
}

/* =========================================
   Progress bar
   ========================================= */
.mof-progress {
  display: flex;
  align-items: center;
  padding: 20px 40px;
  background: var(--mof-dark);
  border-bottom: 1px solid var(--mof-border);
}

.mof-progress__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.mof-progress__num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,.22);
  background: transparent;
  color: var(--mof-muted2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  font-family: var(--mof-font);
  transition: all .35s;
  letter-spacing: .02em;
}

.mof-progress__label {
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mof-muted2);
  white-space: nowrap;
  transition: color .35s;
  font-family: var(--mof-font);
  font-weight: 500;
}

.mof-progress__step.active .mof-progress__num {
  border-color: var(--mof-gold);
  background: rgba(201,168,76,.11);
  color: var(--mof-gold);
  box-shadow: 0 0 16px rgba(201,168,76,.2);
}
.mof-progress__step.active .mof-progress__label { color: var(--mof-gold); }

.mof-progress__step.done .mof-progress__num {
  border-color: rgba(201,168,76,.35);
  background: rgba(201,168,76,.06);
  color: rgba(201,168,76,.5);
}
.mof-progress__step.done .mof-progress__label { color: rgba(201,168,76,.45); }

.mof-progress__line {
  flex: 1;
  height: 1px;
  background: rgba(201,168,76,.13);
  margin: 0 8px 22px;
}

/* =========================================
   Steps
   ========================================= */
.mof-step { display: none; padding: 40px 44px 36px; overflow: hidden; }
.mof-step--active { display: block; }

.mof-step__title {
  font-family: var(--mof-font-head);
  font-size: 30px;
  font-weight: 600;
  color: var(--mof-gold);
  margin: 0 0 10px;
  letter-spacing: .015em;
  line-height: 1.1;
}

.mof-step__desc {
  color: var(--mof-muted);
  margin: 0 0 34px;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.75;
  max-width: 560px;
}

/* =========================================
   Products – poziomy układ (krok 1)
   ========================================= */
.mof-products {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.mof-product {
  display: flex;
  border: 1px solid var(--mof-border);
  border-radius: var(--mof-radius);
  overflow: hidden;
  background: var(--mof-dark3);
  transition: border-color .25s, box-shadow .25s;
}

.mof-product:hover {
  border-color: rgba(201,168,76,.4);
  box-shadow: 0 2px 18px rgba(201,168,76,.1);
}

/* Lewa kolumna – ikona */
.mof-product__img {
  flex-shrink: 0;
  width: 156px;
  background-color: #1c1c1c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-right: 1px solid var(--mof-border);
  padding: 24px 14px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Gdy brak grafiki – pokaż gradient */
.mof-product__img:not(.mof-product__img--has-bg) {
  background-image: linear-gradient(165deg, #181818 0%, #202020 100%);
}

.mof-product__img svg { opacity: .85; }

.mof-product__img span {
  font-family: var(--mof-font);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mof-gold);
}

/* Prawa kolumna */
.mof-product__info {
  flex: 1;
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mof-product__info h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 500;
  color: var(--mof-text);
  font-family: var(--mof-font-head);
  letter-spacing: .02em;
}

.mof-product__info > p {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--mof-muted);
  line-height: 1.65;
}

.mof-product__price {
  font-family: var(--mof-font-head) !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  color: var(--mof-gold) !important;
  margin: 10px 0 18px !important;
}

.mof-qty__unit {
  font-size: 13px;
  color: var(--mof-muted);
  margin-left: 8px;
}

/* ---- Pattern choice ---- */
.mof-pattern-choice {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--mof-border2);
}

.mof-pattern-choice__label {
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mof-muted2) !important;
  margin: 0 0 12px !important;
}

.mof-radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 9px;
  font-size: 14px;
  color: var(--mof-text);
  line-height: 1.5;
}
.mof-radio input[type="radio"] { display: none; }

.mof-radio__box {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  border: 1.5px solid rgba(201,168,76,.35);
  border-radius: 50%;
  margin-top: 2px;
  background: transparent;
  transition: border-color .2s;
  position: relative;
}
.mof-radio__box::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--mof-gold);
  opacity: 0;
  transition: opacity .2s;
}
.mof-radio input[type="radio"]:checked ~ .mof-radio__box { border-color: var(--mof-gold); }
.mof-radio input[type="radio"]:checked ~ .mof-radio__box::after { opacity: 1; }

/* ---- Qty control ---- */
.mof-qty-wrap { display: flex; align-items: center; gap: 0; margin-top: 16px; }

.mof-qty__btn {
  width: 36px; height: 36px;
  border: 1px solid var(--mof-border);
  background: var(--mof-dark4);
  color: var(--mof-muted);
  font-size: 18px; line-height: 1;
  cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: center;
}
.mof-qty__btn:first-child { border-radius: var(--mof-radius) 0 0 var(--mof-radius); }
.mof-qty__btn:last-of-type { border-radius: 0 var(--mof-radius) var(--mof-radius) 0; }
.mof-qty__btn:hover { background: var(--mof-gold); border-color: var(--mof-gold); color: var(--mof-dark); }

.mof-qty__input {
  width: 54px; text-align: center;
  border: 1px solid var(--mof-border);
  border-left: none; border-right: none;
  border-radius: 0;
  padding: 6px 0;
  font-size: 17px; font-weight: 700;
  color: var(--mof-gold);
  background: var(--mof-dark3);
  font-family: var(--mof-font-head);
}

/* ---- Summary bar ---- */
.mof-summary-bar {
  background: rgba(201,168,76,.04);
  border: 1px solid var(--mof-border);
  border-radius: var(--mof-radius);
  padding: 16px 22px;
  font-size: 14.5px;
  color: var(--mof-muted);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
}

.mof-summary-bar::before {
  content: '';
  display: block; width: 2px; height: 20px;
  background: var(--mof-gold); border-radius: 1px;
  flex-shrink: 0;
}

.mof-summary-bar strong {
  color: var(--mof-gold);
  font-size: 24px;
  font-family: var(--mof-font-head);
  font-weight: 600;
}

/* =========================================
   Upload slots (krok 2)
   ========================================= */
#mof-upload-slots { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }

.mof-slot {
  border: 1px solid var(--mof-border);
  border-radius: var(--mof-radius);
  padding: 20px 22px;
  transition: border-color .25s;
  background: var(--mof-dark3);
}
.mof-slot.has-file { border-color: rgba(201,168,76,.45); }

.mof-slot__label {
  font-size: 10px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--mof-gold-pale); margin-bottom: 16px;
}

.mof-slot__body { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.mof-slot__frame-col { display: flex; flex-direction: column; align-items: center; gap: 10px; }

.mof-magnet-frame {
  flex-shrink: 0;
  border: 1.5px solid rgba(201,168,76,.3);
  border-radius: 3px;
  background: linear-gradient(135deg, #1a1a1a 0%, #232323 100%);
  overflow: hidden; position: relative;
  box-shadow: 0 2px 14px rgba(0,0,0,.4);
  transition: border-color .3s;
}
.mof-magnet-frame.has-preview { border-color: var(--mof-gold); box-shadow: 0 0 20px rgba(201,168,76,.15); }
.mof-magnet-frame__img { position: absolute; top: 0; left: 0; border-radius: 2px; }
.mof-magnet-frame__placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px; padding: 8px; text-align: center;
}
.mof-magnet-frame__dims {
  font-size: 13px; font-weight: 600;
  color: var(--mof-gold); letter-spacing: .04em;
  font-family: var(--mof-font-head);
}
.mof-magnet-frame__hint { font-size: 11px; color: var(--mof-muted2); line-height: 1.35; }

.mof-orient-toggle { display: flex; gap: 5px; }
.mof-orient-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 11px;
  border: 1px solid var(--mof-border);
  border-radius: var(--mof-radius);
  background: var(--mof-dark4);
  font-size: 10.5px; font-weight: 500; letter-spacing: .04em;
  color: var(--mof-muted); cursor: pointer; transition: all .2s;
  font-family: var(--mof-font);
}
.mof-orient-btn:hover  { border-color: rgba(201,168,76,.4); color: var(--mof-gold); }
.mof-orient-btn.active { border-color: var(--mof-gold); background: rgba(201,168,76,.09); color: var(--mof-gold); }
.mof-orient-btn svg { flex-shrink: 0; }

.mof-slot__controls { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 180px; }
.mof-slot__input { display: none; }

.mof-slot__choose {
  display: inline-block;
  padding: 9px 20px;
  background: transparent;
  border: 1px solid var(--mof-gold);
  color: var(--mof-gold);
  border-radius: var(--mof-radius);
  cursor: pointer;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  transition: all .2s; user-select: none; align-self: flex-start;
}
.mof-slot__choose:hover { background: var(--mof-gold); color: var(--mof-dark); }

.mof-slot__filename { font-size: 13px; color: var(--mof-muted); word-break: break-all; }
.mof-slot__tip { font-size: 11.5px; color: var(--mof-muted2); line-height: 1.55; margin: 0; }

.mof-slot__copies-info {
  margin: 4px 0 0; padding: 10px 14px;
  background: rgba(201,168,76,.05);
  border: 1px solid rgba(201,168,76,.16);
  border-radius: var(--mof-radius);
  font-size: 13px; color: rgba(201,168,76,.75); line-height: 1.55;
}

.mof-no-slots { color: rgba(201,168,76,.55); font-size: 14.5px; line-height: 1.6; }

/* =========================================
   Shipping (krok 3) – siatka kart
   ========================================= */
.mof-shipping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.mof-shipping-card {
  border: 1px solid var(--mof-border);
  border-radius: var(--mof-radius);
  background: var(--mof-dark3);
  padding: 28px 18px 22px;
  cursor: pointer; text-align: center;
  transition: border-color .25s, box-shadow .25s, background .25s;
  position: relative; user-select: none;
}
.mof-shipping-card:hover {
  border-color: rgba(201,168,76,.4);
  background: rgba(201,168,76,.025);
}
.mof-shipping-card.selected {
  border-color: var(--mof-gold);
  background: rgba(201,168,76,.055);
  box-shadow: 0 0 24px rgba(201,168,76,.14);
}

.mof-shipping-card input[type="radio"] { display: none; }

.mof-shipping-card__check {
  position: absolute; top: 13px; right: 13px;
  width: 18px; height: 18px;
  border: 1.5px solid rgba(201,168,76,.25);
  border-radius: 50%; background: transparent;
  transition: all .2s;
}
.mof-shipping-card.selected .mof-shipping-card__check {
  border-color: var(--mof-gold); background: var(--mof-gold);
}
.mof-shipping-card.selected .mof-shipping-card__check::after {
  content: ''; position: absolute;
  top: 3px; left: 3px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--mof-dark);
}

.mof-shipping-card__icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border: 1px solid var(--mof-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(201,168,76,.04);
  overflow: hidden; transition: border-color .25s, background .25s;
}
.mof-shipping-card.selected .mof-shipping-card__icon {
  border-color: rgba(201,168,76,.45);
  background: rgba(201,168,76,.08);
}
.mof-shipping-card__icon img {
  width: 28px; height: 28px; object-fit: contain;
  filter: brightness(0) saturate(100%) invert(70%) sepia(40%) saturate(500%) hue-rotate(5deg) brightness(95%);
}
.mof-shipping-icon-svg {
  width: 26px; height: 26px; color: var(--mof-gold);
  display: flex; align-items: center; justify-content: center;
}

.mof-shipping-card__name {
  font-family: var(--mof-font-head);
  font-size: 17px; font-weight: 600;
  color: var(--mof-text); margin: 0 0 6px; letter-spacing: .02em;
}
.mof-shipping-card__desc {
  font-size: 13px; color: var(--mof-muted);
  margin: 0 0 14px; line-height: 1.6;
}
.mof-shipping-card__price {
  font-family: var(--mof-font-head);
  font-size: 20px; color: var(--mof-gold); font-weight: 600;
}

/* =========================================
   Payment step (krok 4) – trzy osobne karty
   ========================================= */

/* =========================================
   Payment box (krok 4)
   ========================================= */
.mof-payment-box {
  background: var(--mof-dark3);
  border: 1px solid var(--mof-border);
  border-radius: var(--mof-radius);
  padding: 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

/* Etykieta sekcji – separator z odstępem */
.mof-payment-section-label {
  font-size: 9.5px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--mof-muted2);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--mof-border2);
}

/* Odstęp przed każdą kolejną etykietą sekcji */
.mof-payment-section-label + * ~ .mof-payment-section-label,
.mof-payment-section-label ~ table ~ .mof-payment-section-label,
.mof-payment-section-label ~ #mof-payment-products-breakdown ~ .mof-payment-section-label {
  margin-top: 32px;
}

/* Tabele kompaktowe */
.mof-payment-table { width: 100%; border-collapse: collapse; margin: 0; }
.mof-payment-table th {
  text-align: left;
  padding: 8px 14px 8px 0;
  background: transparent;
  border-bottom: 1px solid var(--mof-border2);
  font-size: 9.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--mof-muted2);
  width: 34%; white-space: nowrap;
}
.mof-payment-table td {
  padding: 8px 0 8px 14px;
  font-size: 14px; color: var(--mof-text);
  border-bottom: 1px solid var(--mof-border2);
}
.mof-payment-table tr:last-child th,
.mof-payment-table tr:last-child td { border-bottom: none; }

/* Wiersz "Razem" */
.mof-payment-table__total th,
.mof-payment-table__total td {
  padding-top: 11px; padding-bottom: 11px;
  background: rgba(201,168,76,.035);
  border-bottom: none !important;
}
.mof-payment-table__total th { color: var(--mof-muted); font-size: 10px; }

.mof-payment-table code {
  font-size: 12px;
  background: var(--mof-dark4);
  border: 1px solid var(--mof-border);
  padding: 3px 9px; border-radius: 3px;
  color: var(--mof-gold); letter-spacing: .05em;
  font-family: 'Courier New', monospace;
}
.mof-payment-table strong {
  color: var(--mof-gold);
  font-family: var(--mof-font-head); font-size: 22px; font-weight: 600;
}

/* Zestawienie per produkt */
#mof-payment-products-breakdown { margin: 0; }
#mof-payment-products-breakdown table { width: 100%; border-collapse: collapse; }
#mof-payment-products-breakdown th {
  text-align: left; padding: 6px 14px 6px 0;
  font-size: 9.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--mof-muted2); width: 34%;
  border-bottom: 1px solid var(--mof-border2);
}
#mof-payment-products-breakdown td {
  padding: 6px 0 6px 14px;
  font-size: 13.5px; color: var(--mof-text);
  border-bottom: 1px solid var(--mof-border2);
}
#mof-payment-products-breakdown tr:last-child th,
#mof-payment-products-breakdown tr:last-child td { border-bottom: none; }

.mof-payment-note {
  font-size: 12px; color: var(--mof-muted2);
  margin: 6px 0 0; line-height: 1.75;
}

/* Odstępy między sekcjami wewnątrz boxa */
.mof-payment-box > .mof-payment-section-label:not(:first-child) {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(201,168,76,.08);
}
.mof-payment-box > .mof-coupon-wrap {
  margin-top: 0;
}

/* Klasa pomocnicza usunięta – nie używamy nagłówków kart */
.mof-payment-box__header,
.mof-payment-box__header-icon,
.mof-payment-box__title,
.mof-payment-box__body { display: contents; }

/* =========================================
   Contact fields (krok 5)
   ========================================= */
.mof-fields-section-label {
  font-size: 9.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--mof-muted2);
  margin: 24px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--mof-border2);
}
.mof-fields-section-label:first-of-type { margin-top: 0; }

.mof-fields { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 6px; }

.mof-field { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 7px; }
.mof-field--full   { flex-basis: 100%; min-width: 100%; }
.mof-field--street { flex: 2; min-width: 260px; }
.mof-field--zip    { flex: 0 0 120px; min-width: 0; }
.mof-field--city   { flex: 1; min-width: 160px; }

.mof-field label {
  font-size: 10px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--mof-muted);
}

.mof-field input,
.mof-field textarea {
  padding: 11px 15px;
  border: 1px solid var(--mof-border);
  border-radius: var(--mof-radius);
  font-size: 14px; font-family: var(--mof-font);
  background: var(--mof-dark3); color: var(--mof-text);
  transition: border-color .2s; resize: vertical;
  width: 100%; box-sizing: border-box;
}
.mof-field input::placeholder,
.mof-field textarea::placeholder { color: rgba(237,229,212,.2); }
.mof-field input:focus,
.mof-field textarea:focus {
  outline: none; border-color: var(--mof-gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.08);
}

/* =========================================
   Navigation
   ========================================= */
.mof-nav { display: flex; margin-top: 16px; gap: 10px; }
.mof-nav--right   { justify-content: flex-end; }
.mof-nav--between { justify-content: space-between; }

.mof-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 30px;
  border: 1px solid transparent;
  border-radius: var(--mof-radius);
  font-size: 11px; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  cursor: pointer; transition: all .22s;
  font-family: var(--mof-font);
}
.mof-btn--primary { background: var(--mof-gold); border-color: var(--mof-gold); color: var(--mof-dark); }
.mof-btn--primary:hover {
  background: var(--mof-gold-dim); border-color: var(--mof-gold-dim);
  box-shadow: 0 4px 18px rgba(201,168,76,.25);
}
.mof-btn--secondary { background: transparent; border-color: rgba(201,168,76,.22); color: var(--mof-muted); }
.mof-btn--secondary:hover { border-color: rgba(201,168,76,.5); color: var(--mof-gold); }
.mof-btn:disabled { opacity: .35; cursor: not-allowed; }

/* =========================================
   Alert
   ========================================= */
.mof-alert {
  padding: 13px 18px;
  border-radius: var(--mof-radius);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.6;
}
.mof-alert--error {
  background: rgba(180,50,40,.1);
  border: 1px solid rgba(180,50,40,.28);
  color: #e8908a;
}

/* =========================================
   Success
   ========================================= */
.mof-step--success { text-align: center; padding: 64px 40px; }
.mof-success-icon {
  width: 76px; height: 76px; border-radius: 50%;
  border: 1.5px solid var(--mof-gold);
  background: rgba(201,168,76,.07);
  color: var(--mof-gold); font-size: 30px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 26px;
  box-shadow: 0 0 40px rgba(201,168,76,.18);
}
.mof-step--success h2 {
  font-family: var(--mof-font-head); font-size: 32px;
  color: var(--mof-gold); margin: 0 0 14px;
}
.mof-step--success p {
  color: var(--mof-muted); font-size: 15.5px; line-height: 1.8; max-width: 480px; margin: 0 auto;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 640px) {
  .mof-step { padding: 28px 22px 24px; }
  .mof-progress { padding: 16px 18px; }
  .mof-progress__label { display: none; }
  .mof-product { flex-direction: column; }
  .mof-product__img {
    width: 100%; height: 76px;
    flex-direction: row; gap: 12px;
    border-right: none; border-bottom: 1px solid var(--mof-border);
    padding: 12px 18px;
  }
  .mof-shipping-grid { grid-template-columns: 1fr 1fr; }
  .mof-payment-box { padding: 20px 18px; }
}
@media (max-width: 420px) {
  .mof-shipping-grid { grid-template-columns: 1fr; }
}

/* =========================================
   reCAPTCHA badge (krok 5 – info)
   ========================================= */
.mof-recaptcha-info {
  margin-top: 10px;
  font-size: 11px;
  color: var(--mof-muted2);
  line-height: 1.6;
}
.mof-recaptcha-info a {
  color: rgba(201,168,76,.55);
  text-decoration: none;
}
.mof-recaptcha-info a:hover { color: var(--mof-gold); }

/* Ukryj domyślny badge reCAPTCHA (mamy własną notatkę) */
.grecaptcha-badge { visibility: hidden !important; }

/* =========================================
   Grafika tła produktu
   ========================================= */
.mof-product__img--has-bg {
  position: relative;
}
.mof-product__img--has-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(20,18,14,.72) 0%, rgba(30,26,18,.82) 100%);
  border-radius: inherit;
  z-index: 0;
}
.mof-product__img--has-bg > * {
  position: relative;
  z-index: 1;
}

/* =========================================
   Kod rabatowy – krok 4
   ========================================= */
.mof-coupon-wrap { margin-top: 2px; }

.mof-coupon-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.mof-coupon-input {
  flex: 1;
  min-width: 140px;
  max-width: 240px;
  padding: 9px 14px;
  border: 1px solid var(--mof-border);
  border-radius: var(--mof-radius);
  background: var(--mof-dark4);
  color: var(--mof-text);
  font-size: 14px;
  font-family: 'Courier New', monospace;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: border-color .2s;
}
.mof-coupon-input::placeholder {
  color: var(--mof-muted2);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--mof-font);
}
.mof-coupon-input:focus {
  outline: none;
  border-color: var(--mof-gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.08);
}
.mof-coupon-input:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.mof-coupon-btn {
  padding: 9px 18px !important;
  font-size: 10.5px !important;
  white-space: nowrap;
}

.mof-coupon-btn--remove {
  border-color: rgba(180,80,70,.4) !important;
  color: rgba(230,120,110,.8) !important;
  background: rgba(180,80,70,.06) !important;
}
.mof-coupon-btn--remove:hover {
  border-color: rgba(180,80,70,.7) !important;
  color: #e87870 !important;
}

.mof-coupon-feedback {
  font-size: 13px;
  padding: 7px 12px;
  border-radius: var(--mof-radius);
  line-height: 1.5;
}
.mof-coupon-feedback--ok {
  background: rgba(80,160,100,.1);
  border: 1px solid rgba(80,160,100,.25);
  color: #7dbf7d;
}
.mof-coupon-feedback--error {
  background: rgba(180,50,40,.09);
  border: 1px solid rgba(180,50,40,.25);
  color: #e08a82;
}

.mof-coupon-applied-badge {
  display: inline-block;
  padding: 1px 8px;
  background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 10px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  color: var(--mof-gold);
  vertical-align: middle;
}
