/* Container & Fade */
.thepast-paywall-overlay {
    position: relative;
    margin-top: -50px;
}
.thepast-paywall-fade {
    position: absolute;
    top: -150px;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    z-index: 10;
}
.thepast-paywall-container {
    background: #ffffff;
    padding: 50px 20px;
    text-align: center;
    position: relative;
    z-index: 11;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border-top: 1px solid #eaeaea;
}

/* Typography */
.thepast-paywall-container h2 {
    font-size: 26px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
    line-height: 1.2;
}
.thepast-paywall-subtext {
    font-size: 15px;
    color: #333;
    margin-bottom: 25px;
}

/* Form Elements */
#thepast-reg-form {
    max-width: 360px;
    margin: 0 auto;
    text-align: left;
}
#thepast-reg-form label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: #000;
    margin-bottom: 6px;
}
#thepast-reg-form input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #767676;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

/* Buttons */
.thepast-btn-black {
    width: 100%;
    background: #000;
    color: #fff;
    font-weight: bold;
    padding: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s ease;
}
.thepast-btn-black:hover {
    background: #333;
}
.thepast-btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    background: #fff;
    color: #333;
    font-weight: bold;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s ease;
}
.thepast-btn-outline:hover {
    background: #f9f9f9;
}
.thepast-btn-outline img {
    width: 18px;
    margin-right: 10px;
}

/* Divider & Links */
.thepast-divider {
    max-width: 360px;
    margin: 25px auto;
    text-align: center;
    position: relative;
}
.thepast-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #ccc;
    z-index: 1;
}
.thepast-divider span {
    background: #fff;
    padding: 0 10px;
    color: #666;
    font-size: 12px;
    position: relative;
    z-index: 2;
}
.thepast-subscribe-link {
    margin-top: 35px;
    font-size: 14px;
    color: #333;
}
.thepast-subscribe-link a {
    color: #000;
    font-weight: bold;
    text-decoration: underline;
}
.cf-turnstile {
    margin-bottom: 15px;
}

/* ==========================================================
   Hide Blocksy Footer Elements When Paywall is Active
========================================================== */
body.paywall-is-active .entry-tags,
body.paywall-is-active .ct-share-box,
body.paywall-is-active .ct-related-posts-container,
body.paywall-is-active #comments,
body.paywall-is-active #footer {
    display: none !important;
}

body.paywall-is-active #main-container {
    padding-bottom: 50px !important;
    min-height: 100vh !important;
}
