/* Maxmart redesign — compatibility layer (docs/redesign, Phase 9).

   combined.min.css (Bootstrap + Font Awesome + the old theme SCSS) is gone; libs.min.css brings the
   libraries back. What follows is the part of the old theme CSS that markup still relies on,
   rewritten on the mm tokens:
     - partials shared with other themes (Views/Shared): cookie banner, consent-gated embeds,
       welcome-bonus popup, experience card;
     - pages kept as they were and restyled through their classes: feedback + newsletter, CMS /
       privacy text, insurance (module views on register-part / register-heading);
     - the legacy button names module views without a theme override still use. */

/* ---------- Legacy buttons ---------- */
.btn-yellow, .btn-feedback-send, .btn-newsletter, .btn-experience {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--mm-btn-h); padding: 0 20px; border: 0; border-radius: var(--mm-r-btn);
  background: var(--mm-accent); color: var(--mm-ink); font-weight: 700; text-transform: none;
}
.btn-yellow:hover, .btn-feedback-send:hover, .btn-newsletter:hover, .btn-experience:hover,
.btn-yellow:focus, .btn-feedback-send:focus, .btn-newsletter:focus, .btn-experience:focus { background: var(--mm-accent-hover); color: var(--mm-ink); text-decoration: none; }
.btn-blue {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--mm-btn-h); padding: 0 20px; border: 0; border-radius: var(--mm-r-btn);
  background: var(--mm-brand); color: #fff; font-weight: 700; text-transform: none;
}
.btn-blue:hover, .btn-blue:focus { background: var(--mm-brand-dark); color: #fff; }
.btn-white {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--mm-btn-h); padding: 0 20px; border: 1.5px solid var(--mm-border-strong); border-radius: var(--mm-r-btn);
  background: #fff; color: var(--mm-text); font-weight: 600;
}
.btn-white:hover { border-color: var(--mm-brand); color: var(--mm-brand); }
.btn-block.btn-yellow, .btn-block.btn-blue { display: flex; width: 100%; }

/* ---------- Callback popup message (_Layout) ---------- */
.callback-msg { margin: 10px 0 0; font-size: var(--mm-fs-sm); }
.callback-msg.is-ok { color: var(--mm-success); }
.callback-msg.is-error { color: #B4232E; }

/* ---------- Cookie banner (Views/Shared/_CookieConsentPartial) ---------- */
.cookie-consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050;
  padding: 16px; background: rgba(18, 23, 29, .35);
}
.cookie-consent[hidden], .cookie-consent__options[hidden], .cookie-consent__btn[hidden] { display: none !important; }
.cookie-consent__panel {
  max-width: 960px; max-height: 85vh; margin: 0 auto; padding: 20px 24px; overflow-y: auto; box-sizing: border-box;
  background: #fff; border-radius: var(--mm-r-xl); box-shadow: var(--mm-shadow-lg);
}
.cookie-consent__title { margin: 0 0 6px; font-family: var(--mm-font-display); font-size: 18px; font-weight: 800; line-height: 1.3; }
.cookie-consent__message { margin: 0; font-size: var(--mm-fs-sm); line-height: 1.5; color: var(--mm-text-2); }
.cookie-consent__policy { white-space: nowrap; text-decoration: underline; }
.cookie-consent__options { margin-top: 14px; border-top: 1px solid var(--mm-border); }
.cookie-consent__option { padding: 10px 0; border-bottom: 1px solid #EEF1F4; }
.cookie-consent__option:last-child { border-bottom: 0; }
.cookie-consent__option-head { display: flex; align-items: center; margin: 0; cursor: pointer; }
.cookie-consent__option-head input[type="checkbox"] { flex: none; width: 18px; height: 18px; margin: 0 8px 0 0; accent-color: var(--mm-brand); }
.cookie-consent__option-head input[disabled] { cursor: default; }
.cookie-consent__option-name { font-weight: 700; font-size: var(--mm-fs-md); }
.cookie-consent__option-state { margin-left: 8px; font-size: var(--mm-fs-xs); color: var(--mm-muted-2); }
.cookie-consent__option-info { margin: 4px 0 0 26px; font-size: var(--mm-fs-xs); line-height: 1.45; color: var(--mm-muted); }
.cookie-consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.cookie-consent__btn { font-size: var(--mm-fs-md); }
.cookie-consent__btn--plain {
  display: inline-flex; align-items: center; min-height: var(--mm-btn-h); padding: 0 20px;
  border: 1.5px solid var(--mm-border-strong); border-radius: var(--mm-r-btn); background: #fff; color: var(--mm-text); font-weight: 600;
}
.cookie-consent__btn--plain:hover { border-color: var(--mm-brand); color: var(--mm-brand); }
.cookie-consent__btn--link { margin-left: auto; padding: 0 4px; border: 0; background: none; color: var(--mm-brand); font-weight: 600; text-decoration: underline; }
body.has-cookie-consent { padding-bottom: 220px; }
@media (max-width: 575.98px) {
  .cookie-consent { padding: 0; }
  .cookie-consent__panel { max-height: 90vh; padding: 16px; border-radius: var(--mm-r-xl) var(--mm-r-xl) 0 0; }
  .cookie-consent__btn { flex: 1 1 100%; }
  .cookie-consent__btn--link { margin-left: 0; }
}

/* Placeholder for an embed the visitor has not consented to (footer map / video). */
.consent-gated-embed {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 160px; padding: 20px; box-sizing: border-box; text-align: center;
  border: 1px dashed rgba(255, 255, 255, .35); border-radius: var(--mm-r-lg);
}
.consent-gated-embed[hidden] { display: none !important; }
.consent-gated-embed__text { margin: 0; font-size: var(--mm-fs-sm); }

/* ---------- Welcome-bonus popup (Views/Shared/_WelcomeBonus) ---------- */
.welcome-bonus {
  position: fixed; inset: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(18, 23, 29, .55);
}
.welcome-bonus[hidden] { display: none !important; }
.welcome-bonus__panel {
  position: relative; display: flex; flex-wrap: wrap; width: 100%; max-width: 900px; max-height: 92vh; overflow-y: auto;
  background: #fff; border-radius: var(--mm-r-xl); box-shadow: var(--mm-shadow-lg);
}
.welcome-bonus__close {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  width: 40px; height: 40px; border: 0; border-radius: var(--mm-r-btn); background: rgba(255, 255, 255, .9);
  font-size: 26px; line-height: 1; color: var(--mm-muted); cursor: pointer;
}
.welcome-bonus__close:hover { color: var(--mm-ink); }
.welcome-bonus__media { position: relative; flex: 1 1 320px; min-width: 280px; }
.welcome-bonus__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--mm-r-xl) 0 0 var(--mm-r-xl); }
.welcome-bonus__badge { position: absolute; left: 0; bottom: 24px; padding: 12px 20px; background: var(--mm-accent); color: var(--mm-ink); border-radius: 0 var(--mm-r-lg) var(--mm-r-lg) 0; }
.welcome-bonus__badge strong { display: block; font-family: var(--mm-font-display); font-size: 34px; font-weight: 800; line-height: 1; }
.welcome-bonus__badge span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.welcome-bonus__body { flex: 1 1 340px; min-width: 300px; padding: 32px 28px; box-sizing: border-box; }
.welcome-bonus__eyebrow { margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mm-brand); }
.welcome-bonus__title { margin: 0 0 12px; font-family: var(--mm-font-display); font-size: 30px; font-weight: 800; line-height: 1.15; }
.welcome-bonus__note { font-size: var(--mm-fs-sm); font-weight: 600; color: var(--mm-muted); }
.welcome-bonus__code {
  margin: 8px 0; padding: 10px; border: 1px dashed var(--mm-brand); border-radius: var(--mm-r-btn);
  font-family: var(--mm-font-display); font-size: 22px; font-weight: 800; letter-spacing: .06em; text-align: center; color: var(--mm-brand-dark);
}
.welcome-bonus .form-control { min-height: var(--mm-control-h); border: 1px solid var(--mm-border-strong); border-radius: var(--mm-r-btn); }
@media (max-width: 767.98px) {
  .welcome-bonus { padding: 0; }
  .welcome-bonus__panel { max-height: 100vh; border-radius: 0; }
  .welcome-bonus__media { flex-basis: 100%; max-height: 180px; }
  .welcome-bonus__media img { border-radius: 0; }
  .welcome-bonus__badge { bottom: 12px; padding: 8px 14px; }
  .welcome-bonus__badge strong { font-size: 26px; }
  .welcome-bonus__body { min-width: 0; padding: 20px 18px 28px; }
  .welcome-bonus__title { font-size: 24px; }
}

/* ---------- Feedback page, newsletter block, experience card ---------- */
.feedback-card, .newsletter-block, .experience-card, .feedback-aside {
  padding: 24px; box-sizing: border-box; background: #fff; border: 1px solid var(--mm-border); border-radius: var(--mm-r-xl);
}
.feedback-card__head, .experience-card__head, .newsletter-block__head { display: flex; align-items: flex-start; gap: 12px; }
.feedback-card__head { justify-content: space-between; margin-bottom: 16px; }
.feedback-card__lead { font-weight: 700; font-size: var(--mm-fs-base); }
.feedback-card__badge, .experience-card__badge, .feedback-aside__icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: var(--mm-r-btn); background: var(--mm-accent-soft); color: #9A7A00; font-size: 16px;
}
.feedback-card__foot, .newsletter-block__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.feedback-input, .newsletter-input { min-height: var(--mm-control-h); border: 1px solid var(--mm-border-strong); border-radius: var(--mm-r-btn); }
.feedback-input::placeholder, .newsletter-input::placeholder { color: var(--mm-muted-2); }
textarea.feedback-input { min-height: 160px; }
.feedback-consent, .newsletter-consent { flex: 1 1 300px; font-size: var(--mm-fs-sm); color: var(--mm-muted); }
.feedback-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.feedback-aside { height: 100%; background: var(--mm-brand-tint); border-color: transparent; text-align: center; }
.feedback-aside__icon { width: 56px; height: 56px; font-size: 28px; }
.feedback-aside__text { margin: 12px 0 0; font-size: var(--mm-fs-md); color: var(--mm-text-2); }
.feedback-sent__badge {
  display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px;
  border-radius: 50%; background: var(--mm-success-soft); color: var(--mm-success); font-size: 28px;
}
.newsletter-block__icon { font-size: 26px; color: var(--mm-brand); }
.newsletter-block__title { margin: 0; font-family: var(--mm-font-display); font-size: 26px; font-weight: 800; }
.newsletter-block__subtitle { margin: 14px 0 4px; font-size: var(--mm-fs-base); font-weight: 700; }
.newsletter-block__text { margin-bottom: 14px; font-size: var(--mm-fs-md); color: var(--mm-muted); }
.newsletter-block__msg { margin: 10px 0 0; font-size: var(--mm-fs-sm); }
.newsletter-block__msg.is-ok { color: var(--mm-success); }
.newsletter-block__msg.is-error { color: #B4232E; }
.experience-card { display: flex; flex-direction: column; }
.experience-card__title { font-family: var(--mm-font-display); font-size: 18px; font-weight: 800; line-height: 1.2; }
.experience-card__text { margin: 12px 0 0; font-size: var(--mm-fs-md); color: var(--mm-muted); }
.btn-experience { margin-top: 16px; }
@media (max-width: 991.98px) {
  .feedback-aside, .experience-card { margin-top: 16px; }
  .newsletter-block__title { font-size: 22px; }
}

/* ---------- CMS pages and the privacy policy ---------- */
.page-content { color: var(--mm-text-2); line-height: 1.6; }
.page-content > header, .page-content > article, .mm-cms .page-content {
  padding: 24px 28px; background: #fff; border: 1px solid var(--mm-border); border-radius: var(--mm-r-xl);
}
.page-content > header { margin-bottom: 16px; }
.page-content header h1 { margin: 0; font-family: var(--mm-font-display); font-size: 28px; font-weight: 800; line-height: 1.2; color: var(--mm-text); }
.page-content h1, .page-content h2, .page-content h3 { margin: 24px 0 10px; font-family: var(--mm-font-display); font-weight: 800; line-height: 1.25; color: var(--mm-text); }
.page-content h1 { font-size: 24px; }
.page-content h2 { font-size: 20px; }
.page-content h3 { font-size: 17px; }
.page-content > :first-child, .page-content article > :first-child { margin-top: 0; }
.page-content p { margin: 0 0 12px; }
.page-content ul, .page-content ol { margin: 0 0 12px; padding-left: 22px; }
.page-content li { margin-bottom: 6px; }
.page-content a { color: var(--mm-brand); text-decoration: underline; }
.page-content img { max-width: 100%; height: auto; }
.page-content table { max-width: 100%; border-collapse: collapse; }
.page-content td, .page-content th { padding: 8px 10px; border: 1px solid var(--mm-border); }
.policy-heading { display: flex; align-items: center; gap: 1rem; font-weight: 400; }
.policy-number { font-weight: 700; color: var(--mm-brand); }
.policy-title { font-size: 1.1rem; font-weight: 700; }

/* ---------- Insurance (module views: register-part / register-heading / register-title) ---------- */
.register-heading { margin: 8px 0 16px; font-family: var(--mm-font-display); font-size: 28px; font-weight: 800; color: var(--mm-text); }
.register-part { margin-bottom: 16px; padding: 24px !important; background: #fff; border: 1px solid var(--mm-border); border-radius: var(--mm-r-xl); }
.register-title { font-family: var(--mm-font-display); font-size: 18px; font-weight: 800; color: var(--mm-text); }
.register-part .form-control, .register-part .custom-select { min-height: var(--mm-control-h); border: 1px solid var(--mm-border-strong); border-radius: var(--mm-r-btn); }
.register-part .progress { height: 8px; border-radius: 4px; background: var(--mm-bg); }
.register-part .progress-bar { background: var(--mm-brand); }
.register-part .alert { border: 0; border-radius: var(--mm-r-tile); }

/* ---------- Bootstrap bits the old theme restyled ---------- */
.alert { border-radius: var(--mm-r-tile); }
.alert-warning { background: var(--mm-warning-soft); border-color: transparent; color: var(--mm-text); }
.alert-danger { background: #FDECEE; border-color: transparent; color: #8E1B24; }
.alert-success { background: var(--mm-success-soft); border-color: transparent; color: var(--mm-success-ink); }
.alert-info { background: var(--mm-brand-soft); border-color: transparent; color: var(--mm-brand-dark); }
.breadcrumb { padding: 0; background: none; font-size: var(--mm-fs-sm); }
.breadcrumb a { color: var(--mm-muted-2); }
.toast-top-right { top: 96px; }

/* ---------- Cart exit offer (develop c9a83833; js/cart-exit-offer.js builds the markup) ----------
   Plain on purpose: the amount is the offer, and declining is a button, not a hunt for the cross. */
.exit-offer-backdrop {
  position: fixed; inset: 0; z-index: 1080; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(18, 23, 29, .55);
}
.exit-offer {
  position: relative; width: 100%; max-width: 420px; padding: 28px 28px 22px; text-align: center;
  background: #fff; border-radius: var(--mm-r-xl); box-shadow: var(--mm-shadow-lg);
}
.exit-offer__close {
  position: absolute; top: 8px; right: 8px; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: none;
  font-size: 26px; line-height: 1; color: var(--mm-muted); cursor: pointer;
}
.exit-offer__close:hover { background: var(--mm-bg); color: var(--mm-text); }
.exit-offer__title { margin: 0 0 10px; font-family: var(--mm-font-display); font-size: 22px; font-weight: 800; color: var(--mm-text); }
.exit-offer__amount { margin: 0 0 8px; font-family: var(--mm-font-display); font-size: 36px; font-weight: 800; line-height: 1.1; color: var(--mm-success); }
.exit-offer__body { margin: 0 0 18px; font-size: var(--mm-fs-md); color: var(--mm-muted); }
.exit-offer__actions { display: flex; flex-direction: column; gap: 8px; }
.exit-offer__accept {
  min-height: 48px; padding: 0 16px; border: 0; border-radius: var(--mm-r-btn); background: var(--mm-accent);
  font-weight: 700; font-size: 15px; color: var(--mm-text); cursor: pointer;
}
.exit-offer__accept:hover { background: var(--mm-accent-hover); }
.exit-offer__accept:disabled { opacity: .6; cursor: default; }
.exit-offer__decline { min-height: 40px; padding: 6px; border: 0; background: none; font-size: var(--mm-fs-sm); color: var(--mm-muted); text-decoration: underline; cursor: pointer; }
.exit-offer__note { min-height: 1px; margin: 10px 0 0; font-size: var(--mm-fs-sm); color: var(--mm-discount); }
@media (prefers-reduced-motion: no-preference) {
  .exit-offer { animation: mm-exit-offer-in .18s ease-out; }
  @keyframes mm-exit-offer-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
}
