/* FMG poklon bon – konfigurator. Boje brenda sa živog weba: zelena #035520, tamnoplava #031b4e. */
.fmg-bon { --fmg-green: #035520; --fmg-navy: #031b4e; --fmg-line: #d5dbe3; --fmg-soft: #f4f7f5; --fmg-text: #1d2433; --fmg-muted: #3f4756; --fmg-error: #b3261e;
  max-width: 760px; margin: 0 auto; color: var(--fmg-text); font-size: 16px; line-height: 1.5; }
.fmg-bon *, .fmg-bon *::before, .fmg-bon *::after { box-sizing: border-box; }
.fmg-bon-form { display: grid; gap: 20px; }
.fmg-bon-step { min-width: 0; margin: 0; padding: 20px 24px 24px; border: 1px solid var(--fmg-line); border-radius: 16px; background: #fff; }
.fmg-bon-step[hidden] { display: none; }
.fmg-bon-step > legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 0; font-family: Sora, sans-serif; font-size: 18px; font-weight: 600; color: var(--fmg-navy); }
.fmg-bon-step > legend + * { clear: both; }
.fmg-bon-num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--fmg-green); color: #fff; font-size: 15px; }

/* Kategorije */
.fmg-bon-filter { display: flex; flex-wrap: wrap; gap: 10px; }
.fmg-bon-cat { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border: 1.5px solid var(--fmg-line); border-radius: 30px; background: #fff; color: var(--fmg-navy); font-weight: 600; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.fmg-bon-cat { min-height: 40px; padding: 8px 16px; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; }
.fmg-bon-cat[aria-pressed="true"] { border-color: var(--fmg-green); background: var(--fmg-green); color: #fff; }
.fmg-bon-cat:focus-visible { outline: 2px solid var(--fmg-navy); outline-offset: 2px; }

/* Polja */
.fmg-bon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.fmg-bon-field { margin: 0 0 14px; }
.fmg-bon-field label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.fmg-bon-field input, .fmg-bon-field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1.5px solid var(--fmg-line); border-radius: 10px; background: #fff; color: inherit; font: inherit; }
.fmg-bon-field textarea { min-height: 88px; resize: vertical; }
.fmg-bon-field input:focus, .fmg-bon-field textarea:focus { border-color: var(--fmg-green); outline: 2px solid rgba(3, 85, 32, .2); outline-offset: 0; }
.fmg-bon [aria-invalid="true"] { border-color: var(--fmg-error); }
.fmg-bon-help { display: block; margin-top: 4px; font-size: 13px; color: var(--fmg-muted); }
.fmg-bon-req { color: var(--fmg-error); }
.fmg-bon-opt { font-weight: 400; color: var(--fmg-muted); }
.fmg-bon-error { display: block; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--fmg-error); }
.fmg-bon-error:empty { display: none; }

/* Najtraženije usluge: kartice koje jednim klikom dodaju uslugu u bon */
.fmg-bon-featured { margin: 0 0 20px; }
.fmg-bon .fmg-bon-featured-title { margin: 0 0 12px; font-family: Sora, sans-serif; font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--fmg-navy); }
.fmg-bon-featured-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.fmg-bon-featured-list > li { display: flex; margin: 0; padding: 0; }
.fmg-bon-feature { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; padding: 16px; border: 1.5px solid var(--fmg-line); border-radius: 14px; background: #fff; color: var(--fmg-text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.fmg-bon-feature:hover { border-color: var(--fmg-green); box-shadow: 0 4px 14px rgba(3, 27, 78, .08); }
.fmg-bon-feature:focus-visible { outline: 2px solid var(--fmg-navy); outline-offset: 2px; }
.fmg-bon-feature.is-added { border-color: var(--fmg-green); background: #eaf3ed; }
.fmg-bon-feature-name { font-weight: 600; line-height: 1.35; color: var(--fmg-navy); }
.fmg-bon-feature-price { flex: 1 0 auto; }
.fmg-bon-feature .fmg-price { font-family: Sora, sans-serif; font-size: 20px; font-weight: 600; color: var(--fmg-navy); }
.fmg-bon-feature-cta { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 14px; border-radius: 30px; background: var(--fmg-green); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.2; }
.fmg-bon-feature.is-added .fmg-bon-feature-cta { background: #fff; color: var(--fmg-green); box-shadow: inset 0 0 0 1.5px var(--fmg-green); }
.fmg-bon-featured-more { margin: 16px 0 0; font-size: 14px; color: var(--fmg-muted); }

/* Usluge */
.fmg-bon-search { margin-top: 16px; }
.fmg-bon-services { max-height: 440px; overflow-y: auto; margin: 0; padding: 0; list-style: none; border: 1px solid var(--fmg-line); border-radius: 12px; }
.fmg-bon-service { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--fmg-line); }
.fmg-bon-service:last-child { border-bottom: 0; }
.fmg-bon-service[hidden] { display: none; }
.fmg-bon-service-name { font-weight: 600; }
.fmg-bon-service-price { text-align: right; }
.fmg-bon-empty { margin: 12px 0 0; color: var(--fmg-muted); }
.fmg-bon-add, .fmg-bon-remove { min-height: 40px; padding: 8px 16px; border: 1.5px solid var(--fmg-green); border-radius: 30px; background: #fff; color: var(--fmg-green); font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer; }
.fmg-bon-add:hover, .fmg-bon-add:focus-visible { background: var(--fmg-green); color: #fff; }
.fmg-bon-remove { border-color: var(--fmg-line); color: var(--fmg-muted); }
.fmg-bon-add:focus-visible, .fmg-bon-remove:focus-visible { outline: 2px solid var(--fmg-navy); outline-offset: 2px; }

/* Košarica */
.fmg-bon-cart { margin-top: 16px; padding: 16px; border-radius: 12px; background: var(--fmg-soft); }
.fmg-bon-cart h3 { margin: 0 0 8px; font-size: 16px; color: var(--fmg-navy); }
.fmg-bon-cart-empty { margin: 0; color: var(--fmg-muted); }
.fmg-bon-cart-list { margin: 0; padding: 0; list-style: none; }
.fmg-bon-cart-item { display: grid; grid-template-columns: 1fr 72px auto auto; gap: 10px; align-items: center; padding: 6px 0; }
.fmg-bon-qty { width: 72px; min-height: 40px; padding: 6px 8px; border: 1.5px solid var(--fmg-line); border-radius: 10px; font: inherit; }
.fmg-bon-cart-line { font-weight: 600; white-space: nowrap; }

/* Privole, ukupno, slanje */
.fmg-bon-consent label { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: 15px; }
.fmg-bon-consent input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--fmg-green); }
.fmg-bon-consent a { color: var(--fmg-green); text-decoration: underline; }
.fmg-bon-summary { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 24px; border-radius: 16px; background: var(--fmg-navy); color: #fff; }
.fmg-bon-total { font-family: Sora, sans-serif; font-size: 28px; font-weight: 600; white-space: nowrap; }
.fmg-bon-error-general { margin: 0; }
.fmg-bon-submit { width: 100%; border: 0; cursor: pointer; font-size: 14px; }
.fmg-bon-submit[disabled] { opacity: .6; cursor: progress; }
.fmg-bon-note { margin: 0; font-size: 14px; color: var(--fmg-muted); }
.fmg-bon-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Potvrda */
.fmg-bon-done { padding: 24px; border: 2px solid var(--fmg-green); border-radius: 16px; background: #fff; }
.fmg-bon-done:focus { outline: none; }
.fmg-bon .fmg-bon-done h3 { margin: 0 0 12px; font-family: Sora, sans-serif; font-size: clamp(20px, 4.5vw, 26px); line-height: 1.3; color: var(--fmg-green); }
.fmg-bon .fmg-bon-done h4 { margin: 20px 0 8px; font-size: 18px; line-height: 1.3; color: var(--fmg-navy); }
.fmg-bon-pay { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 16px; }
.fmg-bon-pay dt { font-weight: 600; color: var(--fmg-muted); }
.fmg-bon-pay dd { margin: 0; overflow-wrap: anywhere; }
.fmg-bon-barcode { margin: 16px 0; }
.fmg-bon-barcode img { display: block; max-width: 100%; height: auto; background: #fff; image-rendering: pixelated; }
.fmg-bon-barcode figcaption { margin-top: 6px; font-size: 13px; color: var(--fmg-muted); }

@media (max-width: 480px) {
  .fmg-bon-featured-list { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .fmg-bon-step { padding: 16px; }
  .fmg-bon-grid { grid-template-columns: 1fr; }
  .fmg-bon-service { grid-template-columns: 1fr auto; }
  .fmg-bon-service-price { grid-column: 1; text-align: left; }
  .fmg-bon-add { grid-column: 2; grid-row: 1 / span 2; }
  .fmg-bon-cart-item { grid-template-columns: 1fr auto; }
  .fmg-bon-qty { width: 64px; }
  .fmg-bon-cart-line { justify-self: start; }
  .fmg-bon-remove { justify-self: end; }
  .fmg-bon-summary { padding: 16px; }
  .fmg-bon-total { font-size: 24px; }
  .fmg-bon-pay { grid-template-columns: 1fr; gap: 0; }
  .fmg-bon-pay dd { margin-bottom: 8px; }
}

/* Themes such as XCare style every button with button:not(...):not(...):not(...) (specificity 0,3,1):
   big padding, letter-spacing, capitals. These selectors (0,4,1) keep the configurator's small buttons compact. */
.fmg-bon[data-fmg-bon] button[type].fmg-bon-cat,
.fmg-bon[data-fmg-bon] button[type].fmg-bon-add,
.fmg-bon[data-fmg-bon] button[type].fmg-bon-remove { padding: 8px 16px; font-size: 14px; line-height: 1.2; letter-spacing: normal; text-transform: none; }
.fmg-bon[data-fmg-bon] button[type].fmg-bon-feature { display: flex; width: 100%; height: auto; padding: 16px; border: 1.5px solid var(--fmg-line); border-radius: 14px; background: #fff; color: var(--fmg-text); font-family: inherit; font-size: 16px; font-weight: 400; line-height: 1.5; letter-spacing: normal; text-align: left; text-transform: none; }
.fmg-bon[data-fmg-bon] button[type].fmg-bon-feature:hover { border-color: var(--fmg-green); background: #fff; color: var(--fmg-text); }
.fmg-bon[data-fmg-bon] button[type].fmg-bon-feature.is-added { border-color: var(--fmg-green); background: #eaf3ed; }
.fmg-bon[data-fmg-bon] button[type].fmg-bon-feature::before,
.fmg-bon[data-fmg-bon] button[type].fmg-bon-feature::after { content: none; }
