/* Baner zgody na cookies — rent.tripinvest-es.com. Niezależny od Tailwinda. */
.tic-bar, .tic-modal, .tic-toast { font-family: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif; color: #102a43; box-sizing: border-box; }
.tic-bar *, .tic-modal *, .tic-toast * { box-sizing: border-box; }
.tic-bar[hidden], .tic-modal[hidden], .tic-toast[hidden] { display: none !important; }

/* Pasek na dole — nie zasłania strony */
.tic-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483000;
    background: #fff; border-top: 1px solid #d9e2ec;
    box-shadow: 0 -10px 30px rgba(13, 31, 60, .12);
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
}
.tic-bar__inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.tic-bar__text { flex: 1; margin: 0; font-size: 15px; line-height: 1.5; }
.tic-link { color: #0d1f3c; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.tic-link:hover { color: #9c7a25; }

/* Przyciski: wszystkie tej samej wielkości i tak samo widoczne */
.tic-btns { display: grid; gap: 10px; flex-shrink: 0; }
.tic-btns--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 560px; }
.tic-btns--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 22px; }
.tic-btn {
    appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer;
    min-height: 48px; padding: 10px 14px; border-radius: 0;
    background: #0d1f3c; color: #fff; border: 2px solid #0d1f3c;
    font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center;
    transition: background .15s ease, border-color .15s ease;
}
.tic-btn:hover { background: #1a365d; border-color: #1a365d; }
.tic-btn:focus-visible, .tic-close:focus-visible, .tic-switch:focus-visible, .tic-link:focus-visible { outline: 3px solid #f7ad0c; outline-offset: 2px; }

/* Okno ustawień */
.tic-modal {
    position: fixed; inset: 0; z-index: 2147483001;
    background: rgba(9, 21, 44, .55);
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.tic-modal__dialog {
    background: #fff; width: 100%; max-width: 580px; max-height: calc(100vh - 32px); overflow-y: auto;
    padding: 24px; box-shadow: 0 25px 60px rgba(13, 31, 60, .35); outline: none;
}
.tic-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.tic-modal__title { margin: 0; font-family: 'Sora', system-ui, sans-serif; font-size: 22px; font-weight: 700; color: #0d1f3c; }
.tic-close { appearance: none; background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: #486581; width: 44px; height: 44px; margin: -10px -10px 0 0; }
.tic-close:hover { color: #0d1f3c; }
.tic-modal__intro { margin: 10px 0 18px; font-size: 14px; line-height: 1.55; color: #486581; }
.tic-group { border-top: 1px solid #e2e8f0; padding: 14px 0; }
.tic-group__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 32px; }
.tic-group__name { font-weight: 700; font-size: 16px; color: #0d1f3c; cursor: pointer; }
.tic-group__desc { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: #486581; }
.tic-badge { font-size: 13px; font-weight: 600; color: #1f7a4a; background: #e8f6ee; padding: 5px 10px; white-space: nowrap; }

/* Przełącznik */
.tic-switch {
    appearance: none; -webkit-appearance: none; margin: 0; flex-shrink: 0; cursor: pointer;
    width: 52px; height: 30px; border-radius: 30px; background: #bcccdc; position: relative; transition: background .2s ease;
}
.tic-switch::after {
    content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s ease;
}
.tic-switch:checked { background: #0d1f3c; }
.tic-switch:checked::after { transform: translateX(22px); }

.tic-toast {
    position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 2147483002;
    background: #0d1f3c; color: #fff; padding: 12px 18px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

/* Przycisk „Ustawienia cookies” w stopce wygląda jak link */
.tic-footer-link { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.tic-footer-link:hover { color: #fff; }

/* Mapa Google na stronie kontaktu — ładowana po zgodzie na marketing albo po kliknięciu */
.tic-embed { position: relative; width: 100%; height: 100%; background: #f0f4f8; display: flex; align-items: center; justify-content: center; text-align: center; }
.tic-embed__box { padding: 20px; max-width: 380px; font-size: 14px; line-height: 1.5; color: #486581; }
.tic-embed__box .tic-btn { margin-top: 12px; padding-left: 22px; padding-right: 22px; }
.tic-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 1100px) {
    .tic-bar__inner { flex-direction: column; align-items: stretch; gap: 14px; }
    .tic-btns--3 { width: 100%; }
}
@media (max-width: 560px) {
    .tic-bar { padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); }
    .tic-bar__text { font-size: 14px; }
    .tic-btns--3, .tic-btns--2 { grid-template-columns: 1fr; }
    .tic-modal { align-items: flex-end; padding: 0; }
    .tic-modal__dialog { max-height: 92vh; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); }
}
