/* Allma cookie banner, preference center, placeholders */
.allma-ck[hidden], .allma-ck-modal[hidden], .allma-ck-fab[hidden] { display: none !important; }
.allma-blocked { display: none !important; }
html.allma-ck-lock { overflow: hidden; }

/* ---- shared buttons: Accept and Reject have identical size, weight and colour ---- */
.allma-ck__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: var(--a-pill, 999px); border: 1.5px solid transparent; font: inherit; font-weight: 700; font-size: 14.5px; line-height: 1.2; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, color .15s; text-align: center; }
.allma-ck__btn:focus-visible, .allma-ck-modal__close:focus-visible, .allma-ck-fab:focus-visible { outline: 3px solid var(--a-ink, #17171a); outline-offset: 2px; }
.allma-ck__btn--choice { background: var(--a-grad-h, linear-gradient(90deg, #ff9a2e, #f2640a)); color: #fff; box-shadow: var(--a-shadow-or, 0 10px 22px rgba(242, 100, 10, .28)); }
.allma-ck__btn--choice:hover { transform: translateY(-1px); filter: saturate(1.08); }
.allma-ck__btn--ghost { background: #fff; color: var(--a-ink, #17171a); border-color: #3a3a40; }
.allma-ck__btn--ghost:hover { border-color: var(--a-orange, #f2640a); color: var(--a-orange, #f2640a); }

/* ---- banner ---- */
.allma-ck { position: fixed; z-index: 99990; left: 20px; bottom: 20px; width: min(460px, calc(100vw - 32px)); background: #fff; color: var(--a-text, #2b2b31); border: 1px solid var(--a-line, #f1e5d9); border-radius: var(--a-radius, 20px); box-shadow: 0 24px 60px rgba(60, 28, 0, .22), 0 4px 10px rgba(60, 28, 0, .1); padding: 22px 22px 20px; opacity: 0; transform: translateY(14px); transition: opacity .25s ease, transform .25s ease; font-family: var(--a-font, system-ui, sans-serif); font-size: 14px; line-height: 1.55; }
.allma-ck.is-visible { opacity: 1; transform: none; }
.allma-ck__title { margin: 0 0 8px; font-size: 18px; line-height: 1.25; font-weight: 800; color: var(--a-ink, #17171a); letter-spacing: -.01em; }
.allma-ck__text { margin: 0 0 16px; color: var(--a-muted, #62626b); }
.allma-ck__text a { color: var(--a-orange, #f2640a); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.allma-ck__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.allma-ck__actions .allma-ck__btn--ghost { grid-column: 1 / -1; }

.allma-ck--bar { left: 0; right: 0; bottom: 0; width: auto; border-radius: var(--a-radius, 20px) var(--a-radius, 20px) 0 0; border-width: 1px 0 0; padding: 18px max(20px, calc((100vw - var(--a-container, 1200px)) / 2)); }
.allma-ck--bar .allma-ck__body { display: grid; grid-template-columns: 1fr auto; gap: 8px 28px; align-items: center; }
.allma-ck--bar .allma-ck__title { grid-column: 1; margin: 0; }
.allma-ck--bar .allma-ck__text { grid-column: 1; margin: 0; }
.allma-ck--bar .allma-ck__actions { grid-column: 2; grid-row: 1 / span 2; grid-template-columns: repeat(3, auto); }
.allma-ck--bar .allma-ck__actions .allma-ck__btn--ghost { grid-column: auto; }

/* ---- preference center ---- */
.allma-ck-modal { position: fixed; z-index: 99995; inset: 0; background: rgba(23, 23, 26, .6); display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .2s ease; font-family: var(--a-font, system-ui, sans-serif); }
.allma-ck-modal.is-visible { opacity: 1; }
.allma-ck-modal__panel { width: min(640px, 100%); max-height: min(88vh, 760px); display: flex; flex-direction: column; background: #fff; color: var(--a-text, #2b2b31); border-radius: var(--a-radius, 20px); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); outline: none; transform: translateY(10px); transition: transform .2s ease; }
.allma-ck-modal.is-visible .allma-ck-modal__panel { transform: none; }
.allma-ck-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 14px; border-bottom: 1px solid var(--a-line, #f1e5d9); }
.allma-ck-modal__head h2 { margin: 0; font-size: 20px; font-weight: 800; color: var(--a-ink, #17171a); }
.allma-ck-modal__close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--a-bg-2, #fff4ea); color: var(--a-ink, #17171a); font-size: 26px; line-height: 1; cursor: pointer; }
.allma-ck-modal__close:hover { background: var(--a-orange-soft, #fff1e4); color: var(--a-orange, #f2640a); }
.allma-ck-modal__scroll { overflow: auto; padding: 16px 24px; }
.allma-ck-modal__intro { margin: 0 0 14px; font-size: 14px; color: var(--a-muted, #62626b); }
.allma-ck-cat { padding: 14px 0; border-top: 1px solid var(--a-line, #f1e5d9); }
.allma-ck-cat__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.allma-ck-cat h3 { margin: 0 0 4px; font-size: 15.5px; font-weight: 800; color: var(--a-ink, #17171a); }
.allma-ck-cat p { margin: 0; font-size: 13.5px; color: var(--a-muted, #62626b); }
.allma-ck-cat__found { margin-top: 6px !important; font-size: 12.5px !important; color: var(--a-faint, #8c8c95) !important; }
.allma-ck-cat__always { flex: none; padding: 4px 12px; border-radius: 999px; background: #eaf7ef; color: #11823b; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.allma-ck-modal__more { margin: 8px 0 0; font-size: 13.5px; }
.allma-ck-modal__more a { color: var(--a-orange, #f2640a); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.allma-ck-modal__foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 24px 20px; border-top: 1px solid var(--a-line, #f1e5d9); }

/* toggle switch (unticked by default) */
.allma-ck-switch { position: relative; flex: none; display: inline-block; width: 52px; height: 30px; cursor: pointer; }
.allma-ck-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.allma-ck-switch__ui { position: absolute; inset: 0; border-radius: 999px; background: #c9c9d1; transition: background .18s; }
.allma-ck-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); transition: transform .18s; }
.allma-ck-switch input:checked + .allma-ck-switch__ui { background: var(--a-orange, #f2640a); }
.allma-ck-switch input:checked + .allma-ck-switch__ui::after { transform: translateX(22px); }
.allma-ck-switch input:focus-visible + .allma-ck-switch__ui { outline: 3px solid var(--a-ink, #17171a); outline-offset: 2px; }

/* floating "Setări cookies" button — withdrawing consent must be as easy as giving it */
.allma-ck-fab { position: fixed; z-index: 99980; left: 16px; bottom: 16px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--a-line, #f1e5d9); background: #fff; color: var(--a-orange, #f2640a); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(60, 28, 0, .18); cursor: pointer; transition: transform .15s; }
.allma-ck-fab:hover { transform: translateY(-2px); }

/* placeholder for blocked iframes (video, map…) */
.allma-embed { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; min-height: 220px; width: 100%; padding: 24px; background: var(--a-bg-2, #fff4ea); border: 1px dashed var(--a-orange-line, #f6dcc3); border-radius: var(--a-radius, 20px); color: var(--a-muted, #62626b); font-size: 14px; }
.allma-embed p { margin: 0; max-width: 420px; }

/* cookie table on the policy page */
.allma-ck-table-wrap { overflow-x: auto; margin: 0 0 18px; }
.allma-ck-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.allma-ck-table th, .allma-ck-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--a-line, #f1e5d9); }
.allma-ck-table th { background: var(--a-bg-2, #fff4ea); font-weight: 800; color: var(--a-ink, #17171a); white-space: nowrap; }
.allma-ck-declaration__meta { font-size: 13px; color: var(--a-faint, #8c8c95); }

@media (max-width: 640px) {
  .allma-ck, .allma-ck--bar { left: 0; right: 0; bottom: 0; width: auto; border-radius: var(--a-radius, 20px) var(--a-radius, 20px) 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); }
  .allma-ck--bar .allma-ck__body { display: block; }
  .allma-ck--bar .allma-ck__title { margin: 0 0 8px; }
  .allma-ck--bar .allma-ck__text { margin: 0 0 14px; }
  .allma-ck__actions, .allma-ck--bar .allma-ck__actions { grid-template-columns: 1fr; }
  .allma-ck-modal { align-items: flex-end; padding: 0; }
  .allma-ck-modal__panel { max-height: 92vh; border-radius: var(--a-radius, 20px) var(--a-radius, 20px) 0 0; }
  .allma-ck-modal__foot { grid-template-columns: 1fr; }
  .allma-ck-modal__foot .allma-ck__btn--ghost { order: 3; }
}
@media (prefers-reduced-motion: reduce) {
  .allma-ck, .allma-ck-modal, .allma-ck-modal__panel, .allma-ck-fab, .allma-ck-switch__ui, .allma-ck-switch__ui::after { transition: none; }
}
