/* 2026-10-21 sjmedia GS1-T100 Runde 3: Versand- und Zahlungsarten als einheitliche Options-Karten
   Wird in layout/header.tpl nach sjm-checkout-r2.css geladen. Überschreibt alte Einrückungen aus zcustom.css
   (Überweisungs-Icon mit 102 px Abstand, Hinweistext mit 118 px Einzug) nur im Schritt Versand/Zahlung. */

/* Kopfzeilen kompakter */
.checkout-shipping-form #checkout-shipping-payment > .h2,
.checkout-shipping-form #fieldset-payment > .h2 { margin: 0 0 8px; font-size: 22px; }
.checkout-shipping-form .checkout-shipping-form-change { margin-bottom: 4px; font-size: 15px; }
.checkout-shipping-form .checkout-shipping-form-change > * { font-size: 15px; }
.checkout-shipping-form #checkout-shipping-payment > hr { margin: 8px 0 12px; }
.checkout-shipping-form #fieldset-payment { margin-top: 20px; }
.checkout-shipping-form #fieldset-payment > hr { margin: 8px 0 12px; }

/* gemeinsame Karte (Versand und Zahlung): ganze Karte ist das Label und damit klickbar */
.checkout-shipping-form-options .custom-control,
#fieldset-payment .checkout-payment-method > .custom-control {
    display: block;
    width: 100%;
    margin: 0 0 8px;
    padding: 0;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    transition: border-color .15s, background-color .15s;
}
.checkout-shipping-form-options .custom-control:hover,
#fieldset-payment .checkout-payment-method > .custom-control:hover { border-color: #b9bfc6; }
.checkout-shipping-form-options .custom-control:has(> input:checked),
#fieldset-payment .checkout-payment-method > .custom-control:has(> input:checked) {
    border-color: #bc3726;
    background: #fff8f6;
    box-shadow: inset 0 0 0 1px #bc3726;
}
.checkout-shipping-form-options .custom-control > .custom-control-label,
#fieldset-payment .checkout-payment-method > .custom-control > .custom-control-label {
    display: block;
    width: 100%;
    padding: 13px 16px 13px 46px;
    cursor: pointer;
}
.checkout-shipping-form-options .custom-control > .custom-control-label::before,
.checkout-shipping-form-options .custom-control > .custom-control-label::after,
#fieldset-payment .checkout-payment-method > .custom-control > .custom-control-label::before,
#fieldset-payment .checkout-payment-method > .custom-control > .custom-control-label::after {
    top: 15px;
    left: 16px;
}
.checkout-shipping-form-options > div > hr { display: none; }
.checkout-shipping-form-options.form-group { margin-bottom: 0; }

/* Versandart: Titel und Beschreibung links, Lieferzeit und Preis rechtsbündig */
.checkout-shipping-form-options .custom-control-label > .form-row.content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: 20px;
    align-items: start;
    margin: 0;
}
.checkout-shipping-form-options .custom-control-label > .form-row.content > [class*="col"] {
    width: auto;
    max-width: none;
    min-width: 0;
    flex: none;
    padding: 0;
}
.checkout-shipping-form-options .form-row.content > .title { color: #333; font-size: 15px; font-weight: 600; line-height: 1.35; }
.checkout-shipping-form-options .form-row.content > .title img { max-height: 28px; width: auto; margin-right: 8px; }
.checkout-shipping-form-options .form-row.content > .title small {
    display: -webkit-box;
    margin-top: 3px;
    overflow: hidden;
    color: #6c757d;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
/* gewählte oder aufgeklappte Option zeigt den vollständigen Hinweis (z. B. Bordsteinkante, Zustellversuch) */
.checkout-shipping-form-options .custom-control:has(> input:checked) .form-row.content > .title small,
.checkout-shipping-form-options .custom-control.sjm-opt-open .form-row.content > .title small {
    display: block;
    -webkit-line-clamp: unset;
}
.sjm-opt-more {
    display: inline-block;
    margin-top: 2px;
    padding: 0;
    border: 0;
    background: none;
    color: #bc3726;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: underline;
}
.checkout-shipping-form-options .custom-control:has(> input:checked) .sjm-opt-more { display: none; }
.checkout-shipping-form-options .form-row.content > .col-sm-3,
.checkout-shipping-form-options .form-row.content > .lieferzeit-info-versand-kosten-sj {
    text-align: right;
    white-space: nowrap;
}
.checkout-shipping-form-options .form-row.content > .col-sm-3 p { margin: 0; color: #525252; font-size: 14px; font-weight: 600; }
.checkout-shipping-form-options .form-row.content > .col-sm-3 p:empty { display: none; }
.checkout-shipping-form-options .form-row.content > .lieferzeit-info-versand-kosten-sj { justify-self: end; color: #333; font-size: 15px; }
.checkout-shipping-form-options .checkout-shipping-form-options-specific-cost:empty { display: none; }

/* Zahlungsart: Icon-Spalte 56 px, Titel daneben, Hinweis darunter bündig */
#fieldset-payment .checkout-payment-method { margin-bottom: 0; }
#fieldset-payment .checkout-payment-method > .custom-control > .custom-control-label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 10px;
    row-gap: 2px;
    min-height: 54px;
}
#fieldset-payment .checkout-payment-method .content { display: inline-flex; align-items: center; gap: 10px; }
#fieldset-payment .checkout-payment-method .content img,
#fieldset-payment .checkout-payment-method .ppc-option-img {
    width: 56px;
    max-width: 56px;
    height: auto;
    max-height: 30px;
    object-fit: contain;
}
#fieldset-payment .checkout-payment-method .ppc-option-img img { max-width: 56px; height: auto; }
#fieldset-payment .checkout-payment-method .title,
#fieldset-payment .checkout-payment-method .funding-name {
    margin: 0 !important;
    color: #333;
    font-size: 15px;
    font-weight: 600;
}
#za_ueberweisung_jtl > div > label > span.content > span::before {
    display: inline-block;
    width: 56px;
    padding-right: 0 !important;
    margin-right: 10px;
    color: #525252;
    font-size: 20px;
    text-align: center;
}
#fieldset-payment .checkout-payment-method .checkout-payment-method-note {
    flex: 0 0 100%;
    padding-left: 66px !important;
    color: #6c757d;
    font-size: 12.5px;
    line-height: 1.45;
}
#fieldset-payment .checkout-payment-method .checkout-payment-method-note small { font-size: inherit; }

/* Handy: Lieferzeit und Preis unter den Titel, nichts abgeschnitten */
@media (max-width: 575.98px) {
    .checkout-shipping-form-options .custom-control-label > .form-row.content {
        grid-template-columns: minmax(0, 1fr) auto;
        row-gap: 6px;
    }
    .checkout-shipping-form-options .form-row.content > .title { grid-column: 1 / -1; }
    .checkout-shipping-form-options .form-row.content > .col-sm-3 { grid-column: 1; justify-self: start; text-align: left; }
    .checkout-shipping-form-options .form-row.content > .lieferzeit-info-versand-kosten-sj { grid-column: 2; justify-self: end; text-align: right; }
    #fieldset-payment .checkout-payment-method .checkout-payment-method-note { padding-left: 0 !important; }
}
