/* Eurlelectro - consent banner (modal on desktop, bottom sheet on mobile) */
.mk-ck { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(17,17,17,.55); }
.mk-ck[hidden] { display: none; }
.mk-ck__box { position: relative; width: 1000px; max-width: 100%; max-height: calc(100vh - 32px); overflow: auto; background: #fff; color: #222; border-top: 4px solid var(--mk-red, #E20612); border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.35); animation: mkCkIn .25s ease-out; }
@keyframes mkCkIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.mk-ck__head { display: flex; align-items: center; gap: 14px; padding: 26px 64px 6px 30px; }
.mk-ck__ico { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 6px; background: var(--mk-red, #E20612); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.mk-ck__title { font-size: 22px; font-weight: 800; line-height: 1.2; margin: 0; }
.mk-ck__x { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #222; background: transparent; border: 0; cursor: pointer; }
.mk-ck__x:hover { background: #f2f2f2; }
.mk-ck__body { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr) 250px; gap: 30px; padding: 16px 30px 24px; font-size: 13.5px; line-height: 1.6; }
.mk-ck__body p { margin: 0 0 12px; }
.mk-ck__body a { color: var(--mk-red, #E20612); font-weight: 600; }
.mk-ck__body a:hover { text-decoration: underline; }
.mk-ck__lead { font-weight: 700; margin-bottom: 8px !important; }
.mk-ck__list { list-style: none; margin: 0; padding: 0; }
.mk-ck__list li { position: relative; padding-left: 18px; margin-bottom: 8px; }
.mk-ck__list li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--mk-red, #E20612); }
.mk-ck__actions { display: flex; flex-direction: column; gap: 12px; }
.mk-ck__actions .btn { width: 100%; font-weight: 700; }
.mk-ck__btn-out { border-color: var(--mk-red, #E20612) !important; color: var(--mk-red, #E20612) !important; background: #fff !important; }
.mk-ck__btn-out:hover { background: #fdecec !important; }
.mk-ck__link { align-self: center; margin-top: 4px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; cursor: pointer; color: #222; font-size: 14px; }
.mk-ck__link:hover { color: var(--mk-red, #E20612); }
.mk-ck__prefs { padding: 0 30px 20px; }
.mk-ck__prefs[hidden] { display: none; }
.mk-ck__opt { display: flex; align-items: flex-start; gap: 16px; padding: 14px 0; border-top: 1px solid #eee; }
.mk-ck__opt:first-child { border-top: 0; }
.mk-ck__opt-txt { flex: 1; font-size: 13px; line-height: 1.5; color: #555; }
.mk-ck__opt-txt b { display: block; font-size: 14px; color: #222; margin-bottom: 2px; }
.mk-ck__opt-txt em { font-style: normal; font-size: 12px; font-weight: 700; color: #1a8a3a; margin-left: 6px; }
.mk-ck .toggle { -webkit-appearance: none; appearance: none; flex: 0 0 46px; width: 46px; height: 26px; margin-top: 2px; padding: 0; border: 0; border-radius: 13px; background: #cfcfcf; position: relative; cursor: pointer; transition: background .2s; box-shadow: none; }
.mk-ck .toggle::before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.mk-ck .toggle:checked { background: var(--mk-red, #E20612); }
.mk-ck .toggle:checked::before { transform: translateX(20px); }
.mk-ck .toggle:disabled { opacity: .5; cursor: not-allowed; }
.mk-ck .toggle:focus-visible { outline: 2px solid var(--mk-red, #E20612); outline-offset: 2px; }
.mk-ck__prefs-foot { display: flex; justify-content: flex-end; gap: 12px; padding-top: 10px; }
.mk-ck__foot { display: flex; flex-wrap: wrap; gap: 8px 26px; padding: 14px 30px; border-top: 1px solid #eee; background: #fafafa; font-size: 13px; border-radius: 0 0 6px 6px; }
.mk-ck__foot a { color: #222; }
.mk-ck__foot a:hover { color: var(--mk-red, #E20612); text-decoration: underline; }
.mk-ck-manage { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.mk-ck-manage:hover { text-decoration: underline; }

@media (max-width: 1023px) {
  .mk-ck__body { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .mk-ck__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .mk-ck__actions .btn { width: auto; flex: 1 1 200px; }
}
@media (max-width: 767px) {
  /* iOS Safari: page scroll behind the sheet collapses the toolbar and the fixed layer lags -> gap under the sheet.
     Lock page scroll while the banner is open, extend the overlay below the viewport and paint the sheet's colour under it. */
  html:has(.mk-ck:not([hidden])), html:has(.mk-ck:not([hidden])) body { overflow: hidden; overscroll-behavior: none; }
  .mk-ck { align-items: flex-end; padding: 0 0 160px; bottom: -160px; overscroll-behavior: contain; touch-action: none; }
  .mk-ck__box { border-radius: 12px 12px 0 0; max-height: 88vh; max-height: 88dvh; overscroll-behavior: contain; touch-action: pan-y; animation-name: mkCkUp; box-shadow: 0 -8px 30px rgba(0,0,0,.25), 0 160px 0 #fafafa; }
  @keyframes mkCkUp { from { transform: translateY(100%); } to { transform: none; } }
  .mk-ck__head { padding: 18px 52px 4px 16px; gap: 10px; }
  .mk-ck__ico { flex-basis: 34px; width: 34px; height: 34px; font-size: 15px; }
  .mk-ck__title { font-size: 18px; }
  .mk-ck__x { top: 12px; right: 10px; }
  .mk-ck__body { grid-template-columns: minmax(0,1fr); gap: 6px; padding: 10px 16px 16px; font-size: 13px; }
  .mk-ck__more { display: none; }
  .mk-ck__box.is-open .mk-ck__more { display: block; }
  .mk-ck__actions { flex-direction: column; align-items: stretch; position: sticky; bottom: 0; background: #fff; padding-top: 8px; }
  .mk-ck__actions .btn { flex: none; width: 100%; min-height: 44px; }
  .mk-ck__prefs { padding: 0 16px 16px; }
  .mk-ck__prefs-foot { flex-direction: column; }
  .mk-ck__prefs-foot .btn { width: 100%; }
  .mk-ck__foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); gap: 6px 18px; font-size: 12px; }
}
