/**
 * Stili per l'area pubblica di kshare (es. pagina download + OTP)
 */

.kshare-download-page .entry-title {
    /* Stili per il titolo */
}

.kshare-message {
    margin-bottom: 1.5em;
    padding: 1em;
    border-left: 4px solid #0073aa;
    background-color: #f7f7f7;
}

.kshare-file-details ul {
    list-style: disc;
    margin-left: 20px;
}

.kshare-download-action {
    margin-top: 2em;
}

.kshare-download-button {
    padding: 10px 20px;
    font-size: 1.2em;
}

.kshare-invalid-share-page .entry-title {
     color: #dc3232;
}

.kshare-otp-gate {
    max-width: 480px;
    margin: 1.5em auto;
    padding: 1.25em 1.5em;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
}

.kshare-otp-gate--layout-card {
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.kshare-otp-gate--layout-tile {
    border: none;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    padding: 1.75em 1.5em;
}

.kshare-el-otp-gate__icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 2rem;
    color: #2271b1;
}

.kshare-otp-steps {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    width: 100%;
}

.kshare-otp-steps__item {
    flex: 1 1 0;
    text-align: center;
    padding: 0.45rem 0.35rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #646970;
    background: #f0f0f1;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.kshare-otp-steps__item.is-active {
    color: #fff;
    background: #2271b1;
}

.kshare-otp-steps__item.is-done {
    color: #135e96;
    background: #e7f3ff;
}

.kshare-otp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.kshare-otp-gate__intro,
.kshare-otp-gate__hint {
    width: 100%;
    margin: 0 0 1rem;
    text-align: center;
    line-height: 1.5;
    color: #50575e;
}

.kshare-otp-gate__intro {
    color: inherit;
}

.kshare-otp-label {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 0 0 0.5rem;
    text-align: center;
    font-weight: 600;
}

.kshare-otp-gdpr-consent {
    width: 100%;
    max-width: 360px;
    margin: 0.85rem auto 0;
    padding: 0.75rem 0.9rem;
    text-align: left;
    border-radius: 8px;
    background: rgba(246, 247, 247, 0.92);
    border: 1px solid rgba(220, 220, 222, 0.9);
    box-sizing: border-box;
}

.kshare-otp-gdpr-consent__label {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0;
    cursor: pointer;
}

.kshare-otp-gdpr-consent__text {
    display: block;
    flex: 1 1 auto;
    font-size: 0.84rem;
    line-height: 1.55;
    color: inherit;
}

.kshare-otp-gdpr-checkbox {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 0.12rem 0 0;
}

.kshare-otp-gdpr-consent__text a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.kshare-otp-gdpr-consent__text a:hover {
    opacity: 0.85;
}

.kshare-otp-gate--layout-tile .kshare-otp-gdpr-consent {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
}

.kshare-otp-gate--layout-tile .kshare-otp-gdpr-consent__text {
    opacity: 0.92;
}

.kshare-otp-code-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 360px;
    margin-bottom: 0.25rem;
}

.kshare-otp-input {
    width: 100%;
    max-width: 360px;
    margin: 0 0 1rem;
    box-sizing: border-box;
}

.kshare-otp-step--verify .kshare-otp-input.kshare-otp-code-input {
    text-align: center;
    letter-spacing: 0.35em;
    font-size: 1.15rem;
}

.kshare-otp-tiles {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    margin: 0 0 0.25rem;
}

.kshare-otp-tile {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    padding: 0;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0;
    border: 2px solid #c3c4c7;
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.kshare-otp-tile:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.18);
}

.kshare-otp-step__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.65rem 1rem;
    width: 100%;
    margin-top: 0.75rem;
}

.kshare-otp-step__actions--single {
    margin-top: 0;
}

.kshare-otp-step .button,
.kshare-otp-step .button-link {
    margin: 0;
    float: none;
}

.kshare-otp-btn,
.kshare-otp-success__download.kshare-otp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    float: none;
    padding: 0.65em 1.35em;
    font-size: 1em;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 4px;
    box-sizing: border-box;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.kshare-otp-success__actions {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.kshare-otp-back-btn {
    margin: 0;
    padding: 0.4rem 0.25rem;
    line-height: 1.4;
}

.kshare-otp-message {
    margin-top: 1.25rem;
    padding: 0.75em 1em;
    border-radius: 6px;
    background: #edfaef;
    color: #1e4620;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.kshare-otp-message--error {
    background: #fcf0f1;
    color: #8a1f1f;
}

.kshare-otp-step--verify[hidden],
.kshare-otp-step--email[hidden],
.kshare-otp-message[hidden] {
    display: none !important;
}

@media (max-width: 420px) {
    .kshare-otp-gate {
        padding: 1.25em 1em;
    }

    .kshare-otp-tiles {
        gap: 6px;
    }

    .kshare-otp-tile {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    .kshare-otp-steps__item {
        font-size: 0.72rem;
        padding: 0.4rem 0.25rem;
    }
}

.kshare-otp-success {
    margin-top: 1em;
    padding: 1em;
    border-radius: 6px;
    background: #edfaef;
    border: 1px solid #b8e6bf;
    text-align: center;
}

.kshare-otp-success__message {
    margin: 0 0 1em;
}

.kshare-otp-success__download {
    display: inline-flex;
}
