/* Zero Price Downloads – Frontend Styles */

/* --- File list ----------------------------------------------------------- */

.zpd-download-wrapper {
    margin: 1.2em 0;
}

.zpd-file-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.zpd-file-list li {
    margin-bottom: 0.5em;
}

.zpd-select-label {
    font-weight: 600;
    margin-bottom: 0.4em;
}

.zpd-download-btn {
    cursor: pointer;
}

.zpd-error {
    color: #c00;
    margin-top: 0.5em;
    font-size: 0.9em;
}

.zpd-limit-reached {
    display: inline-block;
    padding: 0.5em 1em;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    font-size: 0.9em;
}

/* --- Modal overlay ------------------------------------------------------- */

body.zpd-modal-open {
    overflow: hidden;
}

.zpd-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zpd-modal-inner {
    background: #fff;
    border-radius: 6px;
    padding: 2em 2.5em;
    max-width: 540px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.zpd-modal-inner h3 {
    margin-top: 0;
    font-size: 1.25em;
}

/* --- Ad content ---------------------------------------------------------- */

.zpd-ad-content {
    margin: 1em 0;
    min-height: 90px;
    background: #f5f5f5;
    border: 1px dashed #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.zpd-ad-content iframe {
    display: block;
    max-width: 100%;
}

/* --- Countdown ----------------------------------------------------------- */

.zpd-countdown-wrap {
    margin-top: 1em;
}

.zpd-countdown-msg {
    font-size: 1em;
    margin-bottom: 0.75em;
}

.zpd-counter {
    font-weight: 700;
    font-size: 1.4em;
    color: #c00;
    display: inline-block;
    min-width: 2ch;
}

.zpd-counter-label {
    font-size: 1em;
    color: #c00;
}

.zpd-confirm-btn {
    margin-right: 0.5em;
    animation: zpd-fadein 0.3s ease;
}

@keyframes zpd-fadein {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Password step ------------------------------------------------------- */

.zpd-password-wrap {
    margin: 1em 0;
}

.zpd-password-input {
    display: block;
    width: 100%;
    padding: 0.6em 0.8em;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    text-align: center;
    letter-spacing: 0.1em;
}

.zpd-password-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

.zpd-password-error {
    margin: 0.5em 0 0;
    color: #c00;
    font-size: 0.9em;
}

.zpd-step-actions {
    margin-top: 1em;
    display: flex;
    justify-content: center;
    gap: 0.5em;
}

.zpd-password-btn {
    min-width: 110px;
}

/* --- Loader -------------------------------------------------------------- */

.zpd-loader {
    margin-top: 0.75em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95em;
    color: #555;
}

.zpd-loader .spinner {
    float: none;
}
