/* EC 15.11.2026 — jaunie komponenti (sīkdatņu logs, izvēles lapa u.c.).
 * Peldošie elementi telefonā: vienmēr virs iOS 26 Safari peldošajām pogām (B6 specifikācija) —
 * html.ec-ios: bottom = safe-area + 64px; citur safe-area + 16px. */
:root {
    --ec-yellow: #ffb400;
    --ec-dark: #0b1b2b;
    --ec-float-bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
}
html.ec-ios { --ec-float-bottom: calc(env(safe-area-inset-bottom, 0px) + 64px); }

/* ---------------- sīkdatņu logs (7.A–B) ---------------- */
.ec-cc[hidden] { display: none !important; }
.ec-cc { position: fixed; inset: 0; z-index: 10050; pointer-events: none; font-family: Poppins, sans-serif; }
.ec-cc__backdrop { position: absolute; inset: 0; background: rgba(11, 27, 43, .35); }
.ec-cc__card {
    position: absolute; pointer-events: auto; background: #fff; color: #222; border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25); display: flex; flex-direction: column; overflow: hidden;
    left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(620px, calc(100vw - 32px)); max-height: min(86vh, 720px);
}
.ec-cc__view { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.ec-cc__view[hidden] { display: none; }
.ec-cc__body { padding: 20px 24px 12px; overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1 1 auto; min-height: 0; }
.ec-cc__logo { display: block; height: 24px; width: auto; margin-bottom: 10px; }
.ec-cc__title { font-size: 18px; font-weight: 600; line-height: 1.3; margin: 0 0 12px; color: #222; }
.ec-cc__lead { font-size: 13px; font-weight: 600; margin: 10px 0 4px; color: #222; }
.ec-cc__list { list-style: none; margin: 0; padding: 0; }
.ec-cc__list li { position: relative; padding: 3px 0 3px 26px; font-size: 13px; line-height: 1.45; color: #333; }
.ec-cc__ico { position: absolute; left: 2px; top: 6px; width: 16px; text-align: center; font-size: 12px; color: #666; }
.ec-cc__small, .ec-cc__text { font-size: 13px; line-height: 1.6; color: #333; margin: 10px 0 0; }
.ec-cc a { color: #222; text-decoration: underline; }
.ec-cc__btns { display: grid; gap: 10px; padding: 12px 24px 20px; border-top: 1px solid #eee; background: #fff; }
.ec-cc__btns--first, .ec-cc__btns--prefs { grid-template-columns: auto auto 1fr; }
.ec-cc__btn {
    height: 46px; border-radius: 23px; font-size: 14px; font-weight: 600; padding: 0 22px; cursor: pointer;
    font-family: inherit; line-height: 1; white-space: nowrap;
}
.ec-cc__btn--line { background: #fff; color: #222; border: 1.5px solid #222; }
.ec-cc__btn--line:hover { background: #f4f4f4; }
.ec-cc__btn--accept { background: var(--ec-yellow); color: #fff; border: 1.5px solid var(--ec-yellow); }
.ec-cc__btn--accept:hover { filter: brightness(.95); }
.ec-cc__btn:focus-visible { outline: 3px solid #336699; outline-offset: 2px; }

.ec-cc__tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #eee; padding: 0 24px; }
.ec-cc__tab {
    background: none; border: 0; border-bottom: 3px solid transparent; padding: 16px 8px 12px; font: 600 12px/1 Poppins, sans-serif;
    letter-spacing: .06em; text-transform: uppercase; color: #888; cursor: pointer;
}
.ec-cc__tab.is-active { color: #222; border-bottom-color: var(--ec-yellow); }
.ec-cc__row {
    display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 10px; padding: 14px 0;
    border-bottom: 1px solid #eee; margin: 0; cursor: pointer; font-weight: 400;
}
.ec-cc__row:last-child { border-bottom: 0; }
.ec-cc__name { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: #222; font-weight: 400; }
.ec-cc__count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #eee; color: #666; font-size: 11px; }
.ec-cc__desc { font-size: 12px; color: #888; line-height: 1.35; }
.ec-cc__check { width: 24px; height: 24px; margin: 0; accent-color: var(--ec-yellow); cursor: pointer; }
.ec-cc__check--locked { opacity: .55; }

/* telefons: kartīte apakšā (~puse ekrāna), virs Safari pogām; pogas vienmēr redzamas */
@media (max-width: 767px) {
    .ec-cc__card {
        left: 12px; right: 12px; top: auto; transform: none; width: auto;
        bottom: var(--ec-float-bottom); max-height: calc(100vh - var(--ec-float-bottom) - 72px); max-height: calc(100dvh - var(--ec-float-bottom) - 72px);
    }
    .ec-cc__body { padding: 16px 18px 10px; max-height: 52vh; max-height: 52dvh; }
    .ec-cc__btns { padding: 10px 18px 16px; }
    .ec-cc__btns--first, .ec-cc__btns--prefs { grid-template-columns: 1fr 1fr; }
    .ec-cc__btns--first .ec-cc__btn--accept, .ec-cc__btns--prefs .ec-cc__btn--accept { grid-column: 1 / -1; }
    .ec-cc__btn { padding: 0 12px; }
    .ec-cc__tabs { padding: 0 18px; }
    .ec-cc__row { grid-template-columns: auto auto 1fr auto; gap: 8px; }
}
/* datorā pogu secība: Pielāgot ›, Noraidīt, Pieņemt visas (labajā pusē) */
@media (min-width: 768px) {
    .ec-cc__btns--first { grid-template-columns: auto auto 1fr; }
    .ec-cc__btns--first .ec-cc__btn--accept, .ec-cc__btns--prefs .ec-cc__btn--accept { justify-self: end; min-width: 180px; }
}

/* kājenes saite „Pārvaldīt sīkdatnes” — telefonā atstarpe līdz „Mans konts” */
.ec-cc-footer-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ec-yellow) !important; }
@media (max-width: 575px) { .ec-cc-footer-link { margin-bottom: 24px; } }

/* sīkdatņu politikas (un citu info lapu) tabulas telefonā — kartītēs (7.E) */
@media (max-width: 767px) {
    .ec-table-cards thead { display: none; }
    .ec-table-cards, .ec-table-cards tbody, .ec-table-cards tr, .ec-table-cards td { display: block; width: 100% !important; }
    .ec-table-cards tr { border: 1px solid #e5e5e5; border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; }
    .ec-table-cards td { border: 0 !important; padding: 4px 0 !important; word-break: break-word; }
    .ec-table-cards td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: #888; }
}

/* ---------------- „Padomi” (EC 15.11.2026) ---------------- */
.ec-art-h1 { font-size: 30px; line-height: 1.25; font-weight: 600; margin: 8px 0 12px; color: #222; }
.ec-art-h2 { font-size: 20px; font-weight: 600; margin: 32px 0 16px; color: #222; }
.ec-art-topic-desc { max-width: 760px; color: #444; margin-bottom: 16px; }
.ec-art-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.ec-art-topics a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid #ddd; border-radius: 18px; color: #333; font-size: 13px; }
.ec-art-topics a.is-active, .ec-art-topics a:hover { border-color: var(--ec-dark); background: var(--ec-dark); color: #fff; }
.ec-art-search { display: flex; max-width: 420px; margin: 0 0 24px; border: 1px solid #ddd; border-radius: 22px; overflow: hidden; }
.ec-art-search input { flex: 1; border: 0; padding: 0 16px; height: 44px; font-size: 16px; min-width: 0; }
.ec-art-search button { border: 0; background: none; width: 48px; cursor: pointer; }
.ec-art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ec-art-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991px) { .ec-art-grid, .ec-art-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 575px) { .ec-art-grid, .ec-art-grid--4 { grid-template-columns: 1fr; } .ec-art-h1 { font-size: 24px; } }
.ec-art-card { display: flex; flex-direction: column; border: 1px solid #eee; border-radius: 12px; overflow: hidden; background: #fff; height: 100%; }
.ec-art-card__img { display: block; aspect-ratio: 1200 / 630; background: #f4f4f4; overflow: hidden; }
.ec-art-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ec-art-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ec-art-card__topic { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #888; }
.ec-art-card__title { font-size: 17px; line-height: 1.35; margin: 0; font-weight: 600; }
.ec-art-card__title a { color: #222; }
.ec-art-card__intro { font-size: 14px; color: #555; margin: 0; line-height: 1.5; }
.ec-art-card__date { font-size: 12px; color: #888; margin-top: auto; }
.ec-art-author-head { display: flex; gap: 20px; align-items: flex-start; margin: 8px 0 24px; }
.ec-art-author-photo { border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.ec-art { max-width: 820px; padding-bottom: 32px; }
.ec-art__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: #666; margin-bottom: 12px; }
.ec-art__meta a { color: #222; text-decoration: underline; }
.ec-art__intro { font-size: 17px; line-height: 1.6; color: #333; }
.ec-art__hero { margin: 16px 0 24px; }
.ec-art__hero img { width: 100%; height: auto; border-radius: 12px; display: block; }
.ec-art__toc { border: 1px solid #eee; border-radius: 12px; padding: 14px 18px; margin: 0 0 24px; background: #fafafa; }
.ec-art__toc-title { font-weight: 600; margin-bottom: 6px; }
.ec-art__toc ol { margin: 0; padding-left: 20px; }
.ec-art__toc a { display: inline-block; padding: 4px 0; min-height: 32px; color: #222; }
.ec-art__content { font-size: 16px; line-height: 1.7; color: #222; }
.ec-art__content h2 { font-size: 22px; margin: 32px 0 12px; scroll-margin-top: 80px; }
.ec-art__content h3 { font-size: 18px; margin: 24px 0 8px; }
.ec-art__content img { max-width: 100%; height: auto; border-radius: 8px; }
.ec-art__content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; display: block; overflow-x: auto; }
.ec-art__content th, .ec-art__content td { border: 1px solid #e5e5e5; padding: 8px 10px; text-align: left; }
.ec-art__content a { text-decoration: underline; }
.ec-art-products { margin: 16px 0 24px; }
.ec-art-category { margin: 24px 0; }
.ec-art-category__name { font-weight: 600; font-size: 18px; color: #222; }
.ec-art-catlinks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ec-art-catlinks a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid #ddd; border-radius: 20px; color: #222; }
.ec-art-block { margin: 32px 0 8px; }
.ec-pi-tips { margin: 12px 0 0; font-size: 14px; }
.ec-pi-tips__label { font-weight: 600; margin-right: 4px; }
.ec-pi-tips a { color: #222; text-decoration: underline; }
