/* SZPD opt-in box v CF7 formulároch (inc/szpd-optin.php) – len SK verzia */
.tmlg-szpd {
    --szpd: #d91f47;
    --szpd-dark: #b3173a;
    --szpd-line: #f0c9d2;
    margin: 6px 0 22px;
    border: 1.5px solid var(--szpd-line);
    border-radius: 16px;
    background: linear-gradient(180deg, #fff7f9, #fff);
    color: #5b6773;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    transition: border-color .2s, box-shadow .25s;
    clear: both;
}
.tmlg-szpd:hover { border-color: #e48aa0; }
.tmlg-szpd.is-checked { border-color: var(--szpd); box-shadow: 0 14px 30px -18px rgba(217, 31, 71, .55); }

.tmlg-szpd .tmlg-szpd-main {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 14px;
    margin: 0;
    padding: 16px 18px 6px;
    cursor: pointer;
    font-weight: normal;
    font-size: inherit;
    color: inherit;
}

/* Skrytý natívny checkbox – prebíja štýly témy / gyan-cf7 */
.tmlg-szpd input.tmlg-szpd-input {
    position: absolute !important;
    top: 16px;
    left: 18px;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    border: 0 !important;
}

.tmlg-szpd .tmlg-szpd-box {
    display: grid;
    place-items: center;
    flex: none;
    width: 22px;
    height: 22px;
    border: 1.5px solid #e0a3b2;
    border-radius: 7px;
    background: #fff;
    transition: background-color .2s, border-color .2s;
}
.tmlg-szpd .tmlg-szpd-box svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transform: scale(.6);
    transition: opacity .2s, transform .25s cubic-bezier(.2, .8, .2, 1);
}
.tmlg-szpd input.tmlg-szpd-input:checked + .tmlg-szpd-box { background: var(--szpd); border-color: var(--szpd); }
.tmlg-szpd input.tmlg-szpd-input:checked + .tmlg-szpd-box svg { opacity: 1; transform: none; }
.tmlg-szpd input.tmlg-szpd-input:focus-visible + .tmlg-szpd-box { outline: 2px solid var(--szpd); outline-offset: 2px; }

.tmlg-szpd .tmlg-szpd-body { display: grid; gap: 6px; min-width: 0; }
.tmlg-szpd .tmlg-szpd-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tmlg-szpd .tmlg-szpd-title { color: #15374e; font-weight: 700; font-size: 15px; line-height: 1.35; }
.tmlg-szpd .tmlg-szpd-free {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--szpd);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}
.tmlg-szpd .tmlg-szpd-lead { display: block; }
.tmlg-szpd .tmlg-szpd-logo { display: block; width: 58px; max-width: none; height: auto; margin-top: 1px; }

.tmlg-szpd .tmlg-szpd-more { margin: 0; padding: 0 18px 12px 54px; }
.tmlg-szpd .tmlg-szpd-more summary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    color: var(--szpd-dark);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.tmlg-szpd .tmlg-szpd-more summary::-webkit-details-marker { display: none; }
.tmlg-szpd .tmlg-szpd-more summary::marker { content: ''; }
.tmlg-szpd .tmlg-szpd-more summary svg,
.tmlg-szpd .tmlg-szpd-link svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.tmlg-szpd .tmlg-szpd-more summary svg { width: 16px; height: 16px; transition: transform .25s; }
.tmlg-szpd .tmlg-szpd-more[open] summary svg { transform: rotate(180deg); }
.tmlg-szpd .tmlg-szpd-more summary:focus-visible { outline: 2px solid var(--szpd); outline-offset: 2px; border-radius: 4px; }
.tmlg-szpd .tmlg-szpd-more-body { display: grid; gap: 6px; padding-top: 4px; font-size: 13.5px; }
.tmlg-szpd .tmlg-szpd-more-body p { margin: 0; padding: 0; font-size: inherit; line-height: 1.5; color: inherit; }
.tmlg-szpd .tmlg-szpd-handover { color: #15374e; opacity: .75; }
.tmlg-szpd .tmlg-szpd-link {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--szpd-dark);
    font-weight: 600;
    text-decoration: none;
    box-shadow: none;
}
.tmlg-szpd .tmlg-szpd-link:hover { color: var(--szpd); }
.tmlg-szpd .tmlg-szpd-link svg { width: 14px; height: 14px; transition: transform .2s; }
.tmlg-szpd .tmlg-szpd-link:hover svg { transform: translate(2px, -2px); }

/* Tmavé pozadie sekcie (trieda pridaná z JS podľa farby pozadia) */
.tmlg-szpd.is-dark { border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .78); }
.tmlg-szpd.is-dark:hover, .tmlg-szpd.is-dark.is-checked { border-color: #ff6b8a; box-shadow: none; }
.tmlg-szpd.is-dark .tmlg-szpd-title, .tmlg-szpd.is-dark .tmlg-szpd-handover { color: #fff; }
.tmlg-szpd.is-dark .tmlg-szpd-more summary, .tmlg-szpd.is-dark .tmlg-szpd-link { color: #ff9db2; }
.tmlg-szpd.is-dark .tmlg-szpd-box { border-color: rgba(255, 255, 255, .4); background: transparent; }
.tmlg-szpd.is-dark .tmlg-szpd-logo { padding: 4px 6px; border-radius: 8px; background: #fff; box-sizing: content-box; }

@media (max-width: 560px) {
    .tmlg-szpd .tmlg-szpd-main { grid-template-columns: auto 1fr; padding: 14px 14px 4px; }
    .tmlg-szpd input.tmlg-szpd-input { top: 14px; left: 14px; }
    .tmlg-szpd .tmlg-szpd-logo { position: absolute; top: 12px; right: 12px; width: 44px; margin: 0; }
    .tmlg-szpd .tmlg-szpd-title { padding-right: 52px; }
    .tmlg-szpd .tmlg-szpd-more { padding: 0 14px 10px 50px; }
}
