/* Existing CasaDeals paywall/form styles remain authoritative. */
.cd-access-status[hidden], .cd-access-retry[hidden] { display: none; }
[data-cd-first-deal-offer][hidden], [data-cd-premium-offer][hidden],
[data-cd-member-access-pending][hidden], [data-cd-access-signin][hidden],
.cd-welcome-panel[hidden],
[data-cd-entry-link][hidden], [data-cd-entry-signin][hidden] { display: none; }
.cd-welcome-existing[hidden] { display: none; }
.cd-post-paywall-box .cd-access-status { margin-top: 1.6rem; }
.cd-post-paywall-box [data-cd-member-access-pending] h2 { margin-bottom: 0; }
.cd-post-paywall-box .cd-access-message {
    margin: 0;
    color: var(--color-secondary-text);
    font-size: 1.4rem;
    line-height: 1.5;
}
.cd-access-retry {
    margin-top: .8rem;
    padding: .4rem 0;
    border: 0;
    background: transparent;
    color: var(--ghost-accent-color);
    font: inherit;
    font-size: 1.4rem;
    text-decoration: underline;
    cursor: pointer;
}
.cd-free-paywall-form .gh-form[aria-busy="true"] .gh-form-input { cursor: progress; }
.cd-free-paywall-form .gh-button:disabled { cursor: wait; }
.cd-free-paywall-form .gh-form-input:focus-visible,
.cd-free-paywall-form .gh-button:focus-visible,
.cd-access-retry:focus-visible { outline: 2px solid var(--ghost-accent-color); outline-offset: 3px; }
.cd-free-paywall-form [data-members-error] { overflow-wrap: anywhere; }
.cd-welcome-panel {
    grid-column: main;
    width: 100%;
    margin: 1.6rem 0 2.8rem;
    padding: 2.4rem;
    border: 1px solid var(--color-border, #e6e6e6);
    border-radius: 12px;
    background: var(--background-color, #fff);
}
.cd-welcome-panel h2 { margin: 0 0 1.2rem; font-size: 2.4rem; }
.cd-welcome-panel p { margin: 0 0 1.6rem; font-size: 1.6rem; line-height: 1.6; }
.cd-welcome-panel .gh-button { max-width: 100%; white-space: normal; text-align: center; }
.cd-welcome-panel .cd-access-retry { display: block; }
.cd-welcome-panel .cd-access-retry[hidden] { display: none; }
.cd-welcome-signin .gh-form { max-width: 54rem; margin: 1.6rem 0 0; }
.cd-bookmark-page .cd-gratis-deal-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    max-width: calc(100% - 24px);
    padding: 6px 10px;
    border-radius: 6px;
    background: #166534;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    pointer-events: none;
}
.cd-bookmark-page .cd-bookmark-image-placeholder { background: var(--color-lighter-gray, #f1f3f5); }
/* Keep other standard card badges clear of the personal label. */
.cd-bookmark-page [data-cd-welcome-saved-card] .cd-price-badge { left: auto; right: 12px; }
.cd-bookmark-page [data-cd-welcome-saved-card] .cd-sold-badge { top: auto; bottom: 12px; }
.cd-welcome-unavailable { display: block; margin-top: .8rem; font-size: 1.4rem; font-weight: 400; color: var(--color-secondary-text); }
.cd-welcome-unlocked {
    grid-column: main;
    padding: 1.4rem 1.8rem;
    margin: 1.8rem 0;
    border: 1px solid var(--color-border, #e6e6e6);
    border-radius: 8px;
    font-size: 1.5rem;
    line-height: 1.6;
}
.cd-welcome-unlocked p { margin: 0; }
.cd-welcome-unlocked a { color: var(--ghost-accent-color); text-decoration: underline; }
[data-cd-select-deal]:disabled { cursor: wait; opacity: .7; }
.cd-post-paywall-box [data-cd-first-deal-offer] [data-cd-select-deal] {
    max-width: 100%;
    margin: 2.4rem 0;
    white-space: normal;
}
.cd-post-paywall-box [data-cd-first-deal-offer] > .cd-free-paywall-newsletter-note { margin-top: 0 !important; }
[data-cd-select-deal]:focus-visible, .cd-welcome-panel a:focus-visible,
.cd-welcome-panel input:focus-visible { outline: 2px solid var(--ghost-accent-color); outline-offset: 3px; }
@media (max-width: 575px) {
    .cd-free-paywall-form .gh-form-input,
    .cd-free-paywall-form .gh-button { min-height: 48px; }
    .cd-welcome-panel { padding: 1.8rem; }
    .cd-welcome-panel h2 { font-size: 2.1rem; }
    [data-cd-select-deal] { min-height: 48px; white-space: normal; }
}
