/*
 * gated-downloads.css
 * Styles for the [gated_downloads] shortcode output.
 * Uses CSS custom properties so the design integrates with GeneratePress/GP child themes.
 * Override any variable in your child theme's stylesheet.
 */


/* ── Notices ───────────────────────────────────────────────────────────── */

.gpd-lock-notice,
.gpd-access-notice {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.gpd-lock-notice p,
.gpd-access-notice p {
    margin: 0;
    font-size: 0.95rem;
    flex: 1;
}

.gpd-lock-icon,
.gpd-check-icon {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}

/* ── Trigger button ────────────────────────────────────────────────────── */

.gpd-trigger-btn {
align-items: center;
    background-color: var(--accent);
    color: #ffffff;
    display: inline-flex;
    text-decoration: none;
    border-radius: 4px;
    padding: 0.8rem 2rem;
}
.gpd-download-link{
	align-items: center;
    background-color: var(--accent-3);
    color: #ffffff;
    display: inline-flex;
    text-decoration: none;
    border-radius: 4px;
    padding: 0.8rem 2rem;
}
.gpd-trigger-btn:hover,
.gpd-trigger-btn:focus-visible {
    background-color: var(--accent-2);
    color: #ffffff;
}
.gpd-download-link:hover,
.gpd-download-link:focus-visible {
    color: #ffffff;
}

.gpd-trigger-btn:active {
    transform: translateY(1px);
}

/* ── File list ─────────────────────────────────────────────────────────── */

.gpd-file-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.gpd-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg);
    border-radius: 4px;
    padding: 8px 8px 8px 16px;
    transition: border-color 0.2s;
}
li.gpd-file-item.gpd-file-item--unlocked{
	background:rgba(220, 252, 231, 1);
}
.gpd-file-item--unlocked:hover {
    border-color: var(--gpd-success);
}

.gpd-file-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.gpd-file-name {
    flex: 1;
    font-weight: 600;
    margin-bottom: 0px;
}




/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .gpd-lock-notice,
    .gpd-access-notice {
        flex-direction: column;
        align-items: flex-start;
    }

    .gpd-trigger-btn {
        width: 100%;
        justify-content: center;
    }

    .gpd-file-item {
        flex-wrap: wrap;
    }
}
