/* [otmzm_bundle] - phone first. Typography is inherited from the Oxygen page;
 * the two accents match the page: magenta for prices, purple for headings. */
.otmzm-fg {
  --fg-accent: #c2185b;
  --fg-ink: #2b2140;
  --fg-purple: #5e4b9b;
  --fg-line: #e6e1ef;
  --fg-soft: #f6f3fa;
  --fg-ok: #2e7d32;
  font: inherit;
  /* The funnel page sets large type on everything; the block needs its own scale, or a
     product name wraps to four lines on a phone. Family still comes from the page. */
  font-size: 16px;
  line-height: 1.4;
  color: var(--fg-ink);
  border: 1px solid var(--fg-line);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  /* Fill the Oxygen element that holds the block, like the boxes above and below it.
     A fixed cap made its right edge stop short of theirs on wide screens. */
  width: 100%;
  box-sizing: border-box;
}
.otmzm-fg *, .otmzm-fg *::before, .otmzm-fg *::after { box-sizing: border-box; }
/* Oxygen columns align their children to the start, so the shortcode element that holds
   the block shrank to its content while the boxes above and below it are width:100%.
   Stretch it to the column, and keep the block off the box above it. */
.ct-shortcode:has(> .otmzm-fg) { align-self: stretch; width: 100%; }
.ct-shortcode > .otmzm-fg { margin-top: 20px; }
.otmzm-fg img { display: block; object-fit: cover; border-radius: 10px; background: var(--fg-soft); }

.otmzm-fg__base { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--fg-soft); border-radius: 12px; }
.otmzm-fg__base-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.otmzm-fg__base-name { font-weight: 600; line-height: 1.3; font-size: 16px; }
.otmzm-fg__base-tag { font-size: 13px; color: var(--fg-ok); font-weight: 600; }
.otmzm-fg__price { font-weight: 600; color: var(--fg-accent); white-space: nowrap; font-size: 16px; }

.otmzm-fg__title { margin: 18px 0 8px; font-weight: 600; color: var(--fg-purple); font-size: 16px; }

.otmzm-fg__addons { display: flex; flex-direction: column; gap: 8px; }
.otmzm-fg__addon { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--fg-line); border-radius: 12px; cursor: pointer; min-height: 56px; transition: border-color .15s, background .15s; }
.otmzm-fg__addon input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.otmzm-fg__check { flex: 0 0 22px; height: 22px; border: 1.5px solid var(--fg-line); border-radius: 7px; background: #fff; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.otmzm-fg__addon.is-checked { border-color: var(--fg-purple); background: var(--fg-soft); }
.otmzm-fg__addon.is-checked .otmzm-fg__check { background: var(--fg-purple); border-color: var(--fg-purple); }
.otmzm-fg__addon.is-checked .otmzm-fg__check::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.otmzm-fg__addon input:focus-visible + .otmzm-fg__check { outline: 3px solid var(--fg-purple); outline-offset: 2px; }
.otmzm-fg__addon-name { flex: 1; font-weight: 600; line-height: 1.3; min-width: 0; font-size: 16px; }

.otmzm-fg__gifts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.otmzm-fg__gift { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 8px; border: 1px dashed #cfc6de; border-radius: 12px; filter: grayscale(1); opacity: .6; transition: filter .25s, opacity .25s, border-color .25s, background .25s; }
.otmzm-fg__gift-name { font-size: 13px; font-weight: 500; line-height: 1.25; }
.otmzm-fg__gift-was { font-size: 13px; text-decoration: line-through; opacity: .7; }
.otmzm-fg__gift-state { font-size: 13px; font-weight: 600; }
.otmzm-fg__gift.is-unlocked { filter: none; opacity: 1; border-style: solid; border-color: #9fd3a3; background: #f3f9f3; }
.otmzm-fg__gift.is-unlocked .otmzm-fg__gift-state { color: var(--fg-ok); }
.otmzm-fg__gift.is-pop { animation: otmzm-fg-pop .6s ease-out; }
@keyframes otmzm-fg-pop { 0% { transform: scale(1); } 40% { transform: scale(1.07); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .otmzm-fg__gift.is-pop { animation: none; } }

.otmzm-fg__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--fg-line); font-size: 16px; }
.otmzm-fg__total strong { color: var(--fg-accent); font-size: 20px; font-weight: 700; }

.otmzm-fg__ship { margin-top: 10px; font-size: 14px; }
.otmzm-fg__ship-track { height: 6px; border-radius: 3px; background: var(--fg-line); overflow: hidden; margin-bottom: 6px; }
.otmzm-fg__ship-bar { height: 100%; width: 0; background: var(--fg-purple); transition: width .3s; }
.otmzm-fg.has-free-ship .otmzm-fg__ship-bar { background: var(--fg-ok); }
.otmzm-fg.has-free-ship [data-ship] { color: var(--fg-ok); font-weight: 600; }

.otmzm-fg__cta { display: block; width: 100%; margin-top: 16px; padding: 16px; border: 0; border-radius: 12px; background: #E10035; /* brand book */ color: #fff; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.otmzm-fg__cta:hover { background: #c4002e; }
.otmzm-fg__cta:disabled { opacity: .6; cursor: progress; }
.otmzm-fg__msg { margin: 10px 0 0; color: #b00020; font-weight: 600; }

/* Cart / checkout rows (cart.php) */
.otmzm-gift-badge { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 999px; background: #f1f8f1; color: #2e7d32; font-size: 12px; font-weight: 700; vertical-align: middle; }

/* Add-on discount: percent badge, old price struck in grey (the line red, like #210), new price */
.otmzm-fg__price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.otmzm-fg__off { display: inline-block; padding: 1px 6px; border-radius: 999px; background: var(--fg-accent); color: #fff; font-size: 12px; font-weight: 600; }
.otmzm-fg__was { color: #6E6472; font-weight: 500; font-size: 13px; text-decoration-color: #e15334; }

/* 'choice' offers (Супер Мама): pick one */
.otmzm-fg__title--first { margin-top: 0; }
.otmzm-fg__choices { display: flex; flex-direction: column; gap: 12px; }
/* A roomy card, like the variant pickers of the big shops: a large product image with the
   check on its corner, the words left-aligned with the price under the name - so the
   name gets the whole width instead of wrapping to three centred lines. */
.otmzm-fg__choice { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--fg-line); border-radius: 16px; background: #fff; cursor: pointer; min-height: 120px; text-align: left; transition: border-color .15s, background .15s, box-shadow .15s; }
.otmzm-fg__choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.otmzm-fg__choice-media { position: relative; flex: 0 0 88px; }
.otmzm-fg__choice-media img { width: 88px; height: 88px; border-radius: 14px; box-shadow: 0 4px 12px rgba(43, 33, 64, .14); }
.otmzm-fg__radio { position: absolute; top: -9px; left: -9px; width: 24px; height: 24px; border: 1.5px solid var(--fg-line); border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(43, 33, 64, .15); transition: background .15s, border-color .15s; }
.otmzm-fg__choice.is-checked { border-color: var(--fg-purple); background: var(--fg-soft); box-shadow: 0 6px 18px rgba(94, 75, 155, .16); }
.otmzm-fg__choice.is-checked .otmzm-fg__radio { background: var(--fg-purple); border-color: var(--fg-purple); }
.otmzm-fg__choice.is-checked .otmzm-fg__radio::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }
.otmzm-fg__choice input:focus-visible + .otmzm-fg__choice-media .otmzm-fg__radio { outline: 3px solid var(--fg-purple); outline-offset: 2px; }
.otmzm-fg__choice-text { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; text-align: left; }
.otmzm-fg__choice .otmzm-fg__addon-name { flex: none; font-size: 16px; font-weight: 600; line-height: 1.3; }
.otmzm-fg__choice .otmzm-fg__price { font-size: 17px; margin-top: 2px; }
.otmzm-fg__includes { font-size: 14px; color: var(--fg-ink); opacity: .75; line-height: 1.35; }
.otmzm-fg__unlock-hint { font-size: 13px; font-weight: 500; color: var(--fg-ok); }
/* Tabs on the card's top edge (Miamante-style 'НАЙ-ПОПУЛЯРЕН' / '+ ПОДАРЪК'). */
.otmzm-fg__choice.has-tabs { margin-top: 14px; padding-top: 24px; }
.otmzm-fg__tabs { position: absolute; top: -13px; left: 14px; display: flex; gap: 6px; }
.otmzm-fg__tab { padding: 4px 10px; border-radius: 6px; background: var(--fg-ok); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .05em; line-height: 1.3; white-space: nowrap; }
.otmzm-fg__tab--alt { background: var(--fg-accent); }
.otmzm-fg__price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.otmzm-fg__worth { color: var(--fg-ink); opacity: .5; font-size: 14px; }
.otmzm-fg__save { display: inline-block; margin-top: 2px; padding: 2px 8px; border: 1px solid var(--fg-accent); border-radius: 6px; color: var(--fg-accent); font-size: 13px; font-weight: 500; }
/* Phones: give the cards the width the outer frame was taking. */
@media (max-width: 480px) {
  .otmzm-fg--choice { padding: 14px 10px; }
  .otmzm-fg__choice { padding: 14px 12px; gap: 14px; }
}

/* The page's product gallery (the one the choice block swaps) stays in view while its
   hero section scrolls, and stops at the end of its column. */
.otmzm-fg-sticky {
  position: sticky;
  top: 24px;
  z-index: 1;
}
/* `overflow-x: hidden` on <body> (Oxygen AOS, and page code blocks that stop sideways
   scrolling on mobile) turns <body> into a scroll container that never scrolls - and a
   sticky element inside it then never sticks. `clip` stops sideways scrolling the same
   way without making a scroll container. */
html body.otmzm-fg-has-sticky { overflow-x: clip !important; }

/* Three gifts (Супер Бебе B): one row of three, a size smaller, instead of 2 + a lonely third. */
.otmzm-fg__gifts:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.otmzm-fg__gifts:has(> :nth-child(3):last-child) .otmzm-fg__gift { padding: 8px 4px; }
.otmzm-fg__gifts:has(> :nth-child(3):last-child) .otmzm-fg__gift img { width: 60px; height: 60px; }
.otmzm-fg__gifts:has(> :nth-child(3):last-child) .otmzm-fg__gift-name { font-size: 12px; line-height: 1.25; }
.otmzm-fg__gifts:has(> :nth-child(3):last-child) .otmzm-fg__gift-was,
.otmzm-fg__gifts:has(> :nth-child(3):last-child) .otmzm-fg__gift-state { font-size: 11px; }

/* The loss box (choice offers that set 'lost'): what the visitor gives up, one tap back. */
.otmzm-fg__lost { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: #fff3f5; color: #a3002a; font-size: 14px; font-weight: 600; text-align: center; }
.otmzm-fg__lost[hidden] { display: none; }
.otmzm-fg__lost button { padding: 6px 14px; border: 1px solid #E10035; border-radius: 999px; background: #fff; color: #E10035; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
