/* "Mínar veitur" / "Mín bíó" (inc/prefs.php, js/prefs.js) — marks, the prefs bar and the picker. */

/* "Hjá þér" on streaming cards */
.sn-card__mine {
    position: absolute; left: 8px; bottom: 8px; z-index: 2; padding: 3px 9px; border-radius: 999px;
    background: #0d9488; color: #fff; font-size: 11px; font-weight: 700; line-height: 1.3; letter-spacing: .01em;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .3); pointer-events: none;
}
.sn-card__media { position: relative; }

/* Movie hero: your services first, marked */
.mp-hero-streaming__pill.is-mine { border-color: #2dd4bf; background: rgba(45, 212, 191, .16); }
.mp-hero-streaming__mine {
    margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: #0d9488; color: #fff;
    font-size: 10.5px; font-weight: 700; line-height: 1.4; white-space: nowrap;
}

/* The line that asks / shows the choice */
.kvik-prefs-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 12px; font-size: 14px; color: #4b5563; }
.kvik-prefs-bar[hidden] { display: none; }
.kvik-prefs-bar__logos { display: inline-flex; gap: 5px; }
.kvik-prefs-bar__logos img { width: 24px; height: 24px; object-fit: contain; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px #e3e9eb; }
.kvik-prefs-bar__btn { padding: 5px 12px; border: 1px solid #cfd8dc; border-radius: 999px; background: #fff; color: #1a1f24; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.kvik-prefs-bar__btn:hover { border-color: #0d9488; color: #0d9488; }
.kvik-prefs-bar__btn--main { background: #0d9488; border-color: #0d9488; color: #fff; }
.kvik-prefs-bar__btn--main:hover { background: #0b7d73; color: #fff; }

/* Front page "Næstu sýningar": the note when the list is narrowed to your cinemas */
.fp4-next__mine { margin: -2px 0 4px; font-size: 12px; color: #6b7280; }
.fp4-next__mine a { color: #0d9488; font-weight: 600; }

/* Movie page showtimes: your cinemas first */
.mp-showtimes__cinema.is-mine .mp-showtimes__cinema-name::after {
    content: attr(data-mine); margin-left: 8px; padding: 1px 7px; border-radius: 999px;
    background: #e6f5f3; color: #0d9488; font-size: 10.5px; font-weight: 700; vertical-align: middle;
}

/* Picker */
.kvik-prefs-modal { position: fixed; inset: 0; z-index: 10001; display: none; align-items: center; justify-content: center; padding: 16px; }
.kvik-prefs-modal.is-on { display: flex; }
.kvik-prefs-modal__overlay { position: absolute; inset: 0; background: rgba(26, 31, 36, .72); }
.kvik-prefs-modal__box {
    position: relative; width: 100%; max-width: 440px; max-height: 92vh; overflow-y: auto; padding: 26px 24px 22px; border-radius: 14px;
    background: #fff; color: #1a1f24; box-shadow: 0 24px 70px rgba(0, 0, 0, .45); font-family: "Open Sans", Arial, sans-serif;
}
.kvik-prefs-modal__box h3 { margin: 0 0 4px; font-size: 20px; font-weight: 700; color: #1a1f24; }
.kvik-prefs-modal__sub { margin: 0 0 16px; font-size: 14px; line-height: 1.45; color: #6b7280; }
.kvik-prefs-modal__x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 26px; line-height: 1; color: #9ca3af; cursor: pointer; }
.kvik-prefs-modal__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kvik-prefs-modal__svc {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; border: 2px solid #e3e9eb; border-radius: 10px;
    background: #fff; color: #1a1f24; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: border-color .12s, background .12s;
}
.kvik-prefs-modal__svc img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; }
.kvik-prefs-modal__svc[aria-pressed="true"] { border-color: #0d9488; background: #eef9f7; }
.kvik-prefs-modal__svc[aria-pressed="true"]::after {
    content: "✓"; position: absolute; top: 5px; right: 7px; width: 18px; height: 18px; border-radius: 50%;
    background: #0d9488; color: #fff; font-size: 11px; line-height: 18px; text-align: center;
}
.kvik-prefs-modal__note { margin: 14px 0 0; font-size: 12px; line-height: 1.45; color: #9ca3af; }
.kvik-prefs-modal__save { width: 100%; margin-top: 16px; padding: 12px; border: 0; border-radius: 8px; background: #e0654f; color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.kvik-prefs-modal__save:hover { background: #c9533e; }
