/**
 * tpl_terms_popup_clean — Joomla 3
 *
 * Questo file definisce soltanto il layout della finestra popup.
 * Tipografia, colori, link, bottoni e stili articolo arrivano dai CSS del
 * template frontend del sito, caricati da index.php.
 */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body.tpl-terms-popup {
    min-height: 100%;
}

body.tpl-terms-popup {
    margin: 0;
}

.terms-popup {
    width: 100%;
    min-height: 100vh;
    padding: 24px;
}

.terms-popup__panel {
    width: 100%;
    max-width: var(--terms-popup-max-width, 760px);
    margin: 0 auto;
}

.terms-popup__header {
    display: flex;
    min-height: 48px;
    padding: 0 0 14px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid currentColor;
}

.terms-popup__site-name {
    margin: 0;
    font: inherit;
    font-weight: 700;
}

.terms-popup__close {
    display: inline-block;
    padding: 7px 11px;
    border: 1px solid currentColor;
    color: inherit;
    background: transparent;
    font: inherit;
    font-size: 0.9em;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.terms-popup__close:hover,
.terms-popup__close:focus {
    color: inherit;
    text-decoration: underline;
}

.terms-popup__top:not(:empty) {
    padding: 20px 0 0;
}

.terms-popup__bottom:not(:empty) {
    padding: 0 0 20px;
}

.terms-popup__content {
    padding: 26px 0 30px;
}

.terms-popup__content .page-header,
.terms-popup__content .item-page > h1,
.terms-popup__content h1:first-child {
    margin-top: 0;
}

.terms-popup__content img,
.terms-popup__content iframe,
.terms-popup__content table {
    max-width: 100%;
}

.terms-popup__content table {
    width: 100%;
}

.terms-popup__content .alert,
.terms-popup__content .alert-message {
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .terms-popup {
        padding: 18px;
    }

    .terms-popup__header {
        min-height: 42px;
        padding-bottom: 12px;
    }

    .terms-popup__content {
        padding: 22px 0 26px;
    }
}

@media print {
    .terms-popup {
        min-height: 0;
        padding: 0;
    }

    .terms-popup__close {
        display: none;
    }

    .terms-popup__content {
        padding-bottom: 0;
    }
}
