/* com_widerruf — uses Gridbox CSS custom properties with fallbacks */

.widerruf-component {
    max-width: 720px;
    margin: 2.5rem auto;
    padding: 0 1rem;
    color: var(--text, #1b1b1d);
    font-size: 1rem;
    line-height: 1.6;
}

.widerruf-component h1 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--title, #1b1b1d);
    margin: 0 0 1.5rem;
    letter-spacing: -0.01em;
}

.widerruf-component h2 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--title, #1b1b1d);
    margin: 0 0 0.75rem;
}

.widerruf-component p {
    margin: 0 0 1rem;
}

.widerruf-component p:last-child {
    margin-bottom: 0;
}

.widerruf-component a {
    color: var(--secondary, #626263);
    text-decoration: underline;
}

.widerruf-component a:hover {
    color: var(--hover, #2f3439);
}

/* Info / intro block */
.widerruf-info {
    background-color: var(--bg-secondary, #f7f7f7);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    border-left: 3px solid var(--primary, #e6c17c);
}

/* Form fields */
.widerruf-component .mb-3 {
    margin-bottom: 1.5rem;
}

.widerruf-component .form-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--title, #1b1b1d);
    margin-bottom: 0.5rem;
}

.widerruf-component .form-control,
.widerruf-component textarea,
.widerruf-component input[type="text"],
.widerruf-component input[type="email"] {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    font-family: inherit;
    background-color: var(--bg-primary, #ffffff);
    color: var(--text, #1b1b1d);
    border: 1px solid var(--border, #eeeeee);
    border-radius: 0.375rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.widerruf-component .form-control:focus,
.widerruf-component textarea:focus,
.widerruf-component input[type="text"]:focus,
.widerruf-component input[type="email"]:focus {
    outline: none;
    border-color: var(--secondary, #626263);
    box-shadow: 0 0 0 3px rgba(98, 98, 99, 0.12);
}

.widerruf-component .form-text,
.widerruf-component small {
    display: block;
    font-size: 0.8125rem;
    color: var(--secondary, #626263);
    margin-top: 0.5rem;
}

.widerruf-component .text-danger {
    color: #c44d3f;
}

.widerruf-component .text-muted {
    color: var(--secondary, #626263);
}

/* Buttons — match .ba-login-btn styling */
.widerruf-component .btn {
    display: inline-block;
    padding: 0.9375rem 2.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.3s cubic-bezier(0.42, 0, 0.58, 1),
                background-color 0.3s cubic-bezier(0.42, 0, 0.58, 1),
                border-color 0.3s cubic-bezier(0.42, 0, 0.58, 1);
    margin-right: 0.5rem;
    margin-top: 0.25rem;
}

.widerruf-component .btn-primary {
    background-color: var(--secondary, #626263);
    color: var(--title-inverse, #ffffff);
}

.widerruf-component .btn-primary:hover {
    background-color: var(--hover, #2f3439);
    color: var(--title-inverse, #ffffff);
    text-decoration: none;
}

.widerruf-component .btn-danger {
    background-color: #c44d3f;
    color: #ffffff;
}

.widerruf-component .btn-danger:hover {
    background-color: #9f3a2f;
    color: #ffffff;
    text-decoration: none;
}

.widerruf-component .btn-secondary {
    background-color: transparent;
    color: var(--text, #1b1b1d);
    border-color: var(--border, #eeeeee);
}

.widerruf-component .btn-secondary:hover {
    background-color: var(--bg-secondary, #f7f7f7);
    color: var(--text, #1b1b1d);
    border-color: var(--secondary, #626263);
    text-decoration: none;
}

/* Alerts */
.widerruf-component .alert {
    padding: 1.125rem 1.5rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    border-left-width: 4px;
}

.widerruf-component .alert-info {
    background-color: var(--bg-secondary, #f7f7f7);
    border-left-color: var(--primary, #e6c17c);
    color: var(--text, #1b1b1d);
}

.widerruf-component .alert-success {
    background-color: rgba(52, 220, 162, 0.08);
    border-left-color: #34dca2;
    color: var(--text, #1b1b1d);
}

/* Card / order details */
.widerruf-component .card {
    background-color: var(--bg-primary, #ffffff);
    border: 1px solid var(--border, #eeeeee);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px var(--shadow, rgba(3, 3, 3, 0.04));
}

.widerruf-component .card-header {
    padding: 1rem 1.5rem;
    background-color: var(--bg-secondary, #f7f7f7);
    border-bottom: 1px solid var(--border, #eeeeee);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--title, #1b1b1d);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.widerruf-component .card-body {
    padding: 1.5rem;
}

/* Definition list as 2-column grid (own class to avoid theme .row styles) */
.widerruf-component dl.widerruf-details {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.625rem 1.5rem;
    margin: 0;
    direction: ltr;
}

.widerruf-component dl.widerruf-details dt,
.widerruf-component dl.widerruf-details dd {
    margin: 0;
    padding: 0;
    float: none;
    width: auto;
    text-align: left;
    order: initial;
}

.widerruf-component dl.widerruf-details dt {
    grid-column: 1;
    font-weight: 500;
    color: var(--secondary, #626263);
    font-size: 0.9375rem;
}

.widerruf-component dl.widerruf-details dd {
    grid-column: 2;
    color: var(--text, #1b1b1d);
}

/* Pflicht-Checkbox */
.widerruf-component .form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background-color: var(--bg-secondary, #f7f7f7);
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border, #eeeeee);
}

.widerruf-component .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--secondary, #626263);
}

.widerruf-component .form-check-label {
    color: var(--text, #1b1b1d);
    line-height: 1.5;
    cursor: pointer;
    font-size: 0.9375rem;
}

/* Success page */
.widerruf-success .alert {
    padding: 2.5rem 2rem;
    text-align: center;
}

.widerruf-success .alert h2 {
    margin: 0 0 1rem;
}

/* Responsive */
@media (max-width: 540px) {
    .widerruf-component {
        margin: 1.5rem auto;
    }
    .widerruf-component h1 {
        font-size: 1.5rem;
    }
    .widerruf-component dl.widerruf-details {
        grid-template-columns: 1fr;
        gap: 0.125rem;
    }
    .widerruf-component dl.widerruf-details dt {
        grid-column: 1;
        margin-top: 0.5rem;
    }
    .widerruf-component dl.widerruf-details dd {
        grid-column: 1;
    }
    .widerruf-component dl.widerruf-details dt:first-child {
        margin-top: 0;
    }
    .widerruf-component .btn {
        display: block;
        width: 100%;
        margin: 0 0 0.5rem;
    }
}
