/* OCD "Konto löschen" — companion styles for ocd-account-delete.js.
   Sits directly under the legal links row (.ocd-legal-links) in the logged-in
   popup view and reuses the plugin's .ig-form field styling; here we style the
   toggle link, the accordion collapse, the warning box and the messages.
   NOTE: the collapse uses .ocd-open + max-height (not the hidden attribute,
   which the plugin's .ig-form display rule overrides) — same as
   ocd-password-change.css. The open max-height is deliberately far larger
   than the form: at 320-360px viewports the text wraps to roughly 600px of
   height, and a tight value would clip the submit button. The modal itself
   scrolls (.ocd-login has max-height 90vh / overflow-y auto). */

.ocd-acct-delete {
    margin: 12px 0 4px;
    text-align: center;
}

.ocd-acct-toggle {
    display: inline-block;
    padding: 8px 6px;
    font-size: 13px;
    font-weight: 600;
    color: #c62828;
    text-decoration: underline;
    cursor: pointer;
}
.ocd-acct-toggle:hover,
.ocd-acct-toggle:focus {
    color: #e53935;
}
.ocd-acct-caret {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.25s ease;
}
.ocd-acct-toggle.ocd-open .ocd-acct-caret {
    transform: rotate(180deg);
}

/* Accordion collapse */
.ocd-acct-delete .ocd-acct-form {
    display: block;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    text-align: left;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.35s ease;
}
.ocd-acct-delete .ocd-acct-form.ocd-open {
    max-height: 1400px;
    opacity: 1;
    margin-top: 10px;
}

/* What you lose */
.ocd-acct-warning {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid rgba(229, 57, 53, 0.35);
    border-radius: 8px;
    background: rgba(229, 57, 53, 0.07);
    font-size: 12px;
    line-height: 1.5;
    color: #343434;
}
.ocd-acct-warning strong {
    display: block;
    margin-bottom: 4px;
    color: #c62828;
    font-size: 12px;
}
.ocd-acct-warning ul {
    margin: 4px 0 0;
    padding-left: 18px;
    list-style: disc;
}

/* Confirm checkbox */
.ocd-acct-confirm label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.45;
    color: #343434;
    cursor: pointer;
}
.ocd-acct-confirm input[type="checkbox"] {
    margin-top: 2px;
    flex: 0 0 auto;
    accent-color: #c62828;
}

/* Danger button — centred in the actions row and shaped like the popup's own
   primary button (the plugin's bare .ig-btn would give 6px corners and 10px
   padding, which reads as a foreign button inside this modal). */
.ocd-acct-form .ig-form__actions {
    display: flex;
    justify-content: center;
    text-align: center;
}
.ocd-acct-form .ig-btn.ocd-acct-submit {
    min-width: 220px;
    max-width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #e53935 0%, #e53935 60%, #c62828 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}
.ocd-acct-form .ig-btn.ocd-acct-submit:hover {
    opacity: 0.9;
}
.ocd-acct-form .ig-btn.ocd-acct-submit:focus-visible {
    outline: 2px solid #fdb724;
    outline-offset: 2px;
}
.ocd-acct-form .ig-btn.ocd-acct-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ocd-acct-msg {
    margin: 8px 0;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}
.ocd-acct-msg--ok {
    background: rgba(76, 175, 80, 0.12);
    color: #4caf50;
}
.ocd-acct-msg--error {
    background: rgba(229, 57, 53, 0.12);
    color: #e53935;
}

/* Narrow phones: the modal already drops to 16px side padding, so buy back a
   little room and let the button fill the row. */
@media (max-width: 480px) {
    .ocd-acct-warning {
        padding: 10px;
        font-size: 12px;
    }
    .ocd-acct-warning ul {
        padding-left: 16px;
    }
    .ocd-acct-form .ig-btn.ocd-acct-submit {
        min-width: 0;
        width: 100%;
    }
}
