/**
 * Ultra Media - moderner Checkout Schritt Zahlung
 * Version 4.1.129
 */

.um-checkout-payment,
.um-checkout-payment * {
    box-sizing: border-box;
}

.um-checkout-payment {
    margin: 0 0 36px;
}

/* Zentrierter Seitenkopf wie im Versandschritt. */
.um-checkout-payment__heading {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
    margin: 0 0 24px;
    text-align: center;
}

.um-checkout-payment__heading > div {
    width: 100%;
    text-align: center;
}

.um-checkout-payment__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #8a7864;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.um-checkout-payment__heading h1 {
    margin: 0;
    color: #333;
    font-size: 31px;
    line-height: 1.2;
}

.um-checkout-payment__heading p {
    max-width: 720px;
    margin: 7px auto 0;
    color: #6f6f6f;
    font-size: 14px;
    line-height: 1.55;
}

/* Zahlungsarten links, Gutschein kompakt rechts. */
.um-checkout-payment__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.7fr);
    align-items: start;
    gap: 24px;
}

.um-checkout-payment--without-coupon .um-checkout-payment__grid {
    grid-template-columns: 1fr;
}

.um-checkout-payment__form,
.um-checkout-payment__sidebar {
    min-width: 0;
    margin: 0;
}

.um-checkout-payment__sidebar {
    position: sticky;
    top: 20px;
    display: flex;
    align-self: start;
    flex-direction: column;
    gap: 24px;
}

/* Zahlungsarten */
.um-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.um-payment-method {
    position: relative;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #ddd7d0;
    border-radius: 9px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.um-payment-method:hover {
    border-color: #bfae9c;
}

.um-payment-method.is-selected,
.um-payment-method:has(.um-payment-method__input:checked) {
    border-color: #c5ac8f;
    background: #f8f4ef;
    box-shadow: 0 0 0 2px rgba(197, 172, 143, 0.18);
}

.um-payment-method__input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
}

.um-payment-method__label {
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
    width: 100%;
    margin: 0 !important;
    padding: 18px 20px;
    color: #333;
    cursor: pointer;
}

.um-payment-method__radio {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 1px solid #aaa39b;
    border-radius: 50%;
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.um-payment-method__input:checked + .um-payment-method__label .um-payment-method__radio {
    border-color: #9b7f61;
    box-shadow: inset 0 0 0 5px #c5ac8f;
}

.um-payment-method__input:focus-visible + .um-payment-method__label {
    outline: 2px solid #333;
    outline-offset: -2px;
}

.um-payment-method__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.um-payment-method__title {
    display: block;
    margin: 0;
    color: #2f2f2f;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.um-payment-method__description {
    display: block;
    margin: -7px 0 0;
    padding: 0 20px 18px 56px;
    color: #646464;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.55;
}

.um-payment-method__description p {
    margin: 0 0 5px;
}

.um-payment-method__description p:last-child {
    margin-bottom: 0;
}

.um-payment-method__price {
    align-self: start;
    min-width: 78px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: right;
    white-space: nowrap;
}

.um-payment-method__price:empty {
    display: none;
}

.um-payment-method__supplement:empty {
    display: none;
}

.um-payment-method__supplement {
    padding: 0 20px 18px 56px;
}

.um-payment-method__description:empty,
.um-payment-method__description:has(> br:only-child) {
    display: none;
}

/* Alte Tricoma-Spalten innerhalb der Zahlungsbeschreibung neutralisieren. */
.um-payment-method .columns,
.um-payment-method .columns.one,
.um-payment-method .columns.two,
.um-payment-method .columns.three,
.um-payment-method .columns.four,
.um-payment-method .columns.five,
.um-payment-method .columns.six,
.um-payment-method .columns.seven,
.um-payment-method .columns.eight,
.um-payment-method .columns.nine,
.um-payment-method .columns.ten,
.um-payment-method .columns.eleven,
.um-payment-method .columns.twelve {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

/* Eingabefelder, z. B. SEPA-Daten, erhalten denselben Stil wie Schritt 2. */
.um-payment-method__description label,
.um-payment-method__supplement label {
    float: none !important;
    display: block;
    width: auto !important;
    margin: 10px 0 6px !important;
    color: #555;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.um-payment-method__description input[type="text"],
.um-payment-method__description input[type="email"],
.um-payment-method__description input[type="number"],
.um-payment-method__description select,
.um-payment-method__supplement input[type="text"],
.um-payment-method__supplement input[type="email"],
.um-payment-method__supplement input[type="number"],
.um-payment-method__supplement select {
    display: block;
    width: 100% !important;
    height: 44px;
    margin: 5px 0 9px !important;
    padding: 9px 12px;
    border: 1px solid #d3cec8;
    border-radius: 7px;
    background: #fff;
    color: #333;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.2;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.um-payment-method__description input:focus,
.um-payment-method__description select:focus,
.um-payment-method__supplement input:focus,
.um-payment-method__supplement select:focus {
    border-color: #9f866c;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(197, 172, 143, 0.22);
}

/* Bei nur einer Zahlungsart ist keine sichtbare Auswahl notwendig. */
.um-payment-methods.is-single-method .um-payment-method__label {
    grid-template-columns: minmax(0, 1fr) auto;
}

.um-payment-methods.is-single-method .um-payment-method__radio {
    display: none;
}

.um-payment-methods.is-single-method .um-payment-method__description,
.um-payment-methods.is-single-method .um-payment-method__supplement {
    padding-left: 20px;
}

.um-payment-methods.is-single-method .um-payment-method,
.um-payment-methods > .um-payment-method:only-child {
    cursor: default;
}

/* Gutschein */
.um-checkout-coupon {
    margin: 0;
}

.um-checkout-coupon > label {
    display: block;
    margin: 0 0 7px;
    color: #555;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.um-checkout-coupon__controls {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.um-checkout-coupon input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 46px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #d3cec8;
    border-radius: 7px;
    background: #fff;
    color: #333;
    font-family: inherit;
    font-size: 14px;
}

.um-checkout-coupon input[type="text"]:focus {
    border-color: #9f866c;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(197, 172, 143, 0.22);
}

.um-checkout-coupon__submit {
    flex: 0 0 auto;
    min-height: 46px;
    margin: 0 !important;
    padding: 0 16px !important;
    border: 1px solid #c5ac8f !important;
    border-radius: 7px !important;
    background: #c5ac8f !important;
    color: #222 !important;
    font-weight: 600;
    cursor: pointer;
}

.um-checkout-coupon__submit:hover {
    background: #b89d7e !important;
}

/* Navigation unten ueber die volle Checkout-Breite wie in Schritt 2. */
.um-checkout-payment__actions {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid #ded8d1;
    border-radius: 10px;
    background: #f8f7f5;
}

.um-checkout-payment__actions .um-checkout-actions__next-wrap {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 7px;
}

.um-checkout-payment__actions .um-checkout-actions__hint {
    color: #777;
    font-size: 11px;
    line-height: 1.4;
}

.um-checkout-payment__actions input[type="submit"] {
    min-height: 46px;
    height: 46px;
    margin: 0;
    padding: 0 20px;
    border-radius: 7px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 44px;
    cursor: pointer;
}

.um-checkout-payment__actions .um-checkout-actions__back {
    border: 1px solid #d0cbc5;
    background: #fff;
    color: #555;
}

.um-checkout-payment__actions .um-checkout-actions__back:hover {
    border-color: #aaa097;
    background: #f7f6f4;
}

.um-checkout-payment__actions .um-checkout-actions__next {
    min-width: 220px;
    border: 1px solid #c5ac8f;
    background: #c5ac8f;
    color: #222;
}

.um-checkout-payment__actions .um-checkout-actions__next:hover {
    border-color: #b89d7e;
    background: #b89d7e;
}

.um-checkout-payment__actions .um-checkout-actions__next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media screen and (max-width: 980px) {
    .um-checkout-payment__grid {
        grid-template-columns: 1fr;
    }

    .um-checkout-payment__sidebar {
        position: static;
        top: auto;
    }
}

@media screen and (max-width: 767px) {
    .um-checkout-payment__heading h1 {
        font-size: 27px;
    }

    .um-payment-method__label {
        grid-template-columns: 20px minmax(0, 1fr);
        padding: 16px;
    }

    .um-payment-method__price {
        grid-column: 2;
        margin-top: 5px;
        text-align: left;
    }

    .um-payment-method__description,
    .um-payment-method__supplement {
        padding: 0 16px 16px 50px;
    }

    .um-payment-methods.is-single-method .um-payment-method__label {
        grid-template-columns: minmax(0, 1fr);
    }

    .um-payment-methods.is-single-method .um-payment-method__price {
        grid-column: 1;
    }

    .um-payment-methods.is-single-method .um-payment-method__description,
    .um-payment-methods.is-single-method .um-payment-method__supplement {
        padding-left: 16px;
    }

    .um-checkout-coupon__controls {
        flex-direction: column;
    }

    .um-checkout-coupon__submit {
        width: 100%;
    }

    .um-checkout-payment__actions {
        align-items: stretch;
        flex-direction: column-reverse;
        padding: 16px;
    }

    .um-checkout-payment__actions .um-checkout-actions__next-wrap {
        align-items: stretch;
        width: 100%;
    }

    .um-checkout-payment__actions .um-checkout-actions__hint {
        text-align: center;
    }

    .um-checkout-payment__actions input[type="submit"],
    .um-checkout-payment__actions .um-checkout-actions__next {
        width: 100%;
        min-width: 0;
    }
}
