/* FindLake: Seite "Add promotion" (page-add-promotion.php)
   Auswahl der Bezahlmethode, Hinweisboxen, Erfolgsseite.
   Siehe inc/add-promotion-functions.php */

/* Bezahlmethode im Formular */
.fl-pay {
    /* immer volle Breite UNTER den ACF-Feldern (nicht daneben) */
    clear: both;
    float: none;
    display: block;
    width: 100%;
    flex: 0 0 100%;
    grid-column: 1 / -1;
    box-sizing: border-box;
    margin: 36px 0 8px;
    padding: 24px 24px 18px;
    border: 2px solid var(--fl-gold);
    border-radius: var(--fl-radius-lg);
    background: #fffaf0;
    min-width: 0;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .06);
}
.fl-pay__legend {
    font-family: var(--h2-font-family, inherit);
    font-weight: 700;
    font-size: 20px;
    color: var(--color-content-heading);
    padding: 0 10px;
}
.fl-pay__req { color: var(--fl-gold); }
.fl-pay__price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 18px;
    padding: 12px 16px;
    border-radius: var(--fl-radius-lg);
    background: var(--fl-white);
    border: 1px solid var(--color-content-border);
    font-size: 15px;
    color: var(--color-content-text);
}
.fl-pay__price-value { font-size: 18px; color: var(--color-content-heading); }
.fl-pay__intro { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--color-content-heading); }
.fl-pay__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}
.fl-pay__opt + .fl-pay__opt::before {
    content: "or";
    position: absolute;
    top: -19px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    line-height: 16px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--color-content-faded);
}
.fl-pay__opt {
    position: relative;
    display: block;
    cursor: pointer;
    margin: 0;
}
.fl-pay__opt input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.fl-pay__box {
    display: flex;
    align-items: center;
    gap: 16px;
    box-sizing: border-box;
    padding: 20px 22px;
    border: 2px solid #cfcfc8;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .07);
    border-radius: var(--fl-radius-lg);
    background: var(--fl-white);
    position: relative;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.fl-pay__icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f1ee;
    color: var(--color-content-heading);
    transition: background .15s ease, color .15s ease;
}
.fl-pay__text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fl-pay__label {
    font-family: var(--h2-font-family, inherit);
    font-weight: 700;
    font-size: 17px;
    line-height: 1.3;
    color: var(--color-content-heading);
}
.fl-pay__chip {
    display: block;
    width: fit-content;
    margin: 5px 0 0;
    padding: 1px 8px;
    border-radius: 999px;
    background: #eef3e8;
    color: #3f5f2a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.fl-pay__desc {
    font-size: 14px;
    line-height: 1.45;
    color: var(--color-content-text);
}
/* Haken rechts (statt Radio-Kreis) */
.fl-pay__check {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--color-content-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    background: var(--fl-white);
    transition: all .15s ease;
}
.fl-pay__opt:hover .fl-pay__box { border-color: var(--fl-gold); }
.fl-pay__opt input:checked + .fl-pay__box {
    border-color: var(--fl-gold);
    background: rgba(240, 165, 0, .09);
    box-shadow: 0 0 0 3px rgba(240, 165, 0, .28);
}
.fl-pay__opt input:checked + .fl-pay__box .fl-pay__icon { background: var(--fl-gold); color: #fff; }
.fl-pay__opt input:checked + .fl-pay__box .fl-pay__check {
    background: var(--fl-gold);
    border-color: var(--fl-gold);
    color: #fff;
}
.fl-pay__opt input:focus-visible + .fl-pay__box {
    outline: 3px solid var(--color-content-primary);
    outline-offset: 2px;
}
.fl-pay__note {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 16px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, .08);
    font-size: 13px;
    color: var(--color-content-text);
}
.fl-pay__note svg { flex: 0 0 auto; }


/* Upgrade eines bestehenden Eintrags (Seite nach dem Mail-Link) */
.fl-existing { display: block; }
.fl-existing__error {
    margin: 0 0 16px; padding: 12px 16px; border-radius: var(--fl-radius-lg);
    background: #fdecea; color: #a12a1f; border: 1px solid #f3b9b3; font-size: 15px;
}
.fl-existing__entry {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 16px 18px; margin-bottom: 20px;
    border: 2px solid var(--fl-gold); border-radius: var(--fl-radius-lg); background: #fffaf0;
}
.fl-existing__thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.fl-existing__entry-text { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fl-existing__entry-text strong { font-size: 18px; }
.fl-existing__label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--color-content-faded); }
.fl-existing__submit { display: block; width: 100%; margin-top: 20px; padding: 16px; font-size: 16px; }

/* Listen in den Info-Boxen */
.fl-promo-list {
    margin: 8px 0 0;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.5;
}
.fl-promo-list li { margin-bottom: 4px; }

/* Erfolgsseite */
.fl-promo-next { margin: 16px 0 12px; }
.fl-btn--pay {
    padding: 15px 34px;
    font-size: 16px;
}

@media (max-width: 700px) {
    .fl-pay { padding: 18px 14px 14px; }
    .fl-pay__box { padding: 14px; gap: 12px; }
    .fl-pay__icon { flex-basis: 46px; width: 46px; height: 46px; }
    .fl-pay__icon svg { width: 24px; height: 24px; }
}
