/* ==========================================================
   Albis Leasing Widget – Produktseiten
   ========================================================== */

.albis-leasing-widget {
    border-radius: 8px;
    margin: 0 0 16px 0;
    font-family: inherit;
    overflow: hidden;
}

/* Kopfzeile: Titel links, Button rechts, immer sichtbar */
.albis-widget-header {
    background: #3E5980;
    color: #fff;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
}

/* Einzelner "Leasingraten anzeigen"-Button: weiß mit blauer Schrift */
.albis-show-rates-btn {
    border: 1px solid #fff;
    background: #fff;
    color: #3E5980;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.15s;
    line-height: 1.4;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.albis-show-rates-btn:hover {
    opacity: 0.85;
}

.albis-show-rates-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

/* Aufklappbarer Bereich mit den Raten – eigener Rahmen, da die Kopfzeile
   keinen Kasten mehr umschließt */
.albis-widget-body {
    background: #fff;
    border: 1px solid #e4e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 14px 16px;
    margin-top: -1px;
}

/* Ratentabelle */
.albis-rates-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.albis-rate-row {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    background: #f3f5f8;
    border-radius: 4px;
    gap: 8px;
}

.albis-rate-duration {
    font-size: 13px;
    color: #444;
    min-width: 70px;
}

.albis-rate-amount {
    display: flex;
    align-items: baseline;
    gap: 3px;
    flex: 1;
}

.albis-rate-amount strong {
    font-size: 16px;
    color: #3E5980;
}

.albis-rate-period {
    font-size: 11px;
    color: #888;
}

/* Loading / Error */
.albis-loading,
.albis-error {
    font-size: 13px;
    color: #888;
    text-align: center;
    padding: 10px 0;
}

.albis-error {
    color: #c00;
}

/* Footer */
.albis-widget-footer {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #e4e8f0;
}

.albis-widget-footer span {
    color: #888;
    line-height: 1.5;
}

.albis-footer-headline {
    display: block;
    color: #333;
    font-weight: 700;
    margin-bottom: 4px;
}

.albis-widget-footer a {
    color: #3E5980;
    text-decoration: none;
}

.albis-widget-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .albis-widget-header {
        flex-wrap: wrap;
    }
}
