/* ==========================================================================
   Safety commitments. Three places, one list:
   - .safety-points — the five points (partials/safety-points.php);
   - .pb-safety     — one sentence + the list folded in a <details>, inside the
                      game page's install dialog (partials/premibox-install-modal.php);
   - .pbx-safety    — the "Safe for your phone" block under the download on the
                      product page (premibox/show.php).
   Tokens only, so every theme resolves it without a block of its own. Green
   throughout: this is the "you are safe" colour the download actions already
   wear, never the accent that marks a call to action.
   ========================================================================== */

.safety-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.safety-points li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.safety-points-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: var(--green);
    background: var(--green-soft);
    border-radius: var(--radius-sm);
}

.safety-points-icon svg {
    width: 17px;
    height: 17px;
}

.safety-points-text {
    display: block;
    min-width: 0;
}

.safety-points-text strong {
    display: block;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
    color: var(--text);
}

.safety-points-text span {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
}

/* --- Install dialog ------------------------------------------------------ */

.pb-safety {
    margin-bottom: 16px;
    padding: 11px 12px;
    background: var(--green-soft);
    border: 1px solid var(--green-soft);
    border-color: color-mix(in srgb, var(--green) 35%, transparent);
    border-radius: var(--radius-sm);
}

.pb-safety-line {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text);
}

.pb-safety-line svg {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    color: var(--green);
}

/* The summary lines up under the sentence, past the shield; the list it opens
   takes the whole width — at 360px the dialog has none to spare. */
.pb-safety-more summary {
    margin: 5px 0 0 27px;
    font-size: 12.5px;
    font-weight: 650;
    color: var(--green);
    cursor: pointer;
}

.pb-safety-more summary::marker {
    color: var(--green);
}

.pb-safety-more[open] summary {
    margin-bottom: 12px;
}

.pb-safety-more .safety-points {
    gap: 10px;
}

.pb-safety-more .safety-points-text strong {
    font-size: 13px;
}

.pb-safety-more .safety-points-text span {
    font-size: 12px;
}

/* --- Product page -------------------------------------------------------- */

.pbx-safety {
    margin: 0 0 32px;
    padding: 18px 18px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 2px solid var(--green);
    border-radius: var(--radius);
}

.pbx-safety h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 19px;
    line-height: 1.3;
}

.pbx-safety h2 svg {
    flex: none;
    width: 24px;
    height: 24px;
    color: var(--green);
}

.pbx-safety-lead {
    margin: 6px 0 16px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-muted);
}

.pbx-safety-note {
    margin-top: 16px;
    padding: 12px 14px;
    font-size: 13px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.pbx-safety-note strong {
    display: block;
    font-size: 13.5px;
    color: var(--text);
}

.pbx-safety-note p {
    margin: 4px 0 0;
    line-height: 1.55;
    color: var(--text-muted);
}

.pbx-safety-note a {
    display: inline-block;
    margin-top: 8px;
    font-weight: 650;
}
