/* ── Plan summary card ──────────────────────────────────────────────────── */

.gfield.wpdd-plan-summary {
    background: #faf9f7 !important;
    border-radius: 16px !important;
    padding: 24px 28px !important;
    margin-bottom: 24px !important;
    border: 1px solid #e8e7e4 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.gfield.wpdd-plan-summary h3 {
    font-size: 0.9em;
    font-weight: 600;
    color: #6a6966;
    margin: 0 0 12px;
    letter-spacing: 0.3px;
}

.gfield.wpdd-plan-summary p {
    margin: 4px 0 0;
    color: #555;
    font-size: 0.95em;
}

.gfield.wpdd-plan-summary p strong {
    display: block;
    font-size: 2.8em;
    font-weight: 700;
    color: #1c1b18;
    margin-bottom: 6px;
    line-height: 1;
}

/* ── Injected upfront fee row ───────────────────────────────────────────── */

.gfield.wpdd-plan-summary .wpdd-upfront-fee-display {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e8e7e4;
}

.wpdd-upfront-fee-label {
    font-size: 1em;
    font-weight: 700;
    color: #1d2327;
    margin-bottom: 6px;
}

.wpdd-upfront-fee-amount {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wpdd-upfront-fee-price {
    font-size: 2em;
    font-weight: 700;
    color: #1d2327;
    line-height: 1.1;
}

.wpdd-upfront-fee-pence {
    font-size: 0.55em;
    font-weight: 400;
    vertical-align: super;
}

.wpdd-upfront-fee-badge {
    display: inline-block;
    background: #fef1e8;
    color: #b8441a;
    font-size: 0.75em;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #e8d4c5;
}

/* ── Visually hidden fields (still processed by GF, e.g. calculation products) */

.gfield.wpdd-hidden-field {
    display: none !important;
}

/* ── Payment scheme info panel ──────────────────────────────────────────── */

.wpdd-scheme-info {
    border: 1px solid #e8dfd0;
    background: #f9f7f4;
    border-radius: 16px;
    padding: 24px 28px;
    font-size: 0.9em;
    line-height: 1.7;
    color: #5a5854;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.wpdd-scheme-info p {
    margin: 0 0 8px;
}

.wpdd-scheme-info p:last-child {
    margin-bottom: 0;
}

.wpdd-scheme-info ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.wpdd-scheme-info li {
    margin-bottom: 6px;
}

.wpdd-dd-guarantee-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8dfd0;
}

.wpdd-dd-guarantee-header strong {
    font-size: 0.95em;
    font-weight: 700;
    color: #003087;
}

.wpdd-dd-mark {
    flex-shrink: 0;
}

/* ── Gift Aid block ──────────────────────────────────────────────────────── */

.wpdd-gift-aid-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.wpdd-gift-aid-intro-text {
    flex: 1;
    min-width: 0;
}

.wpdd-gift-aid-heading {
    margin: 0 0 8px;
    font-size: 1.4em;
    font-weight: 700;
    line-height: 1.2;
}

.wpdd-gift-aid-intro-text p {
    margin: 0;
    line-height: 1.5;
}

.wpdd-gift-aid-mark {
    flex-shrink: 0;
    display: block;
    margin-top: 28px;
}

.wpdd-gift-aid-declaration {
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 16px 20px;
}

.wpdd-gift-aid-label {
    margin: 0 0 12px;
    font-weight: 700;
    font-size: 0.9em;
}

.wpdd-gift-aid-declaration p + p {
    margin-top: 12px;
}

.wpdd-gift-aid-declaration p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.5;
}

/* ── Amount field — hide GF's "Price:" sub-label inside singleproduct ─── */

.wpdd-amount-field .ginput_product_price_label {
    display: none;
}
