/* Reusable [modulstroy_payment_methods] component. */

.ms-payment-methods {
    box-sizing: border-box;
    width: 100%;
    color: #414141;
}

.ms-payment-methods *,
.ms-payment-methods *::before,
.ms-payment-methods *::after {
    box-sizing: border-box;
}

.ms-payment-methods__title {
    margin: 0 0 32px;
    color: #414141;
    font-size: clamp(28px, 2.5vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.ms-payment-methods__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2.65fr);
    gap: 16px;
    align-items: stretch;
}

.ms-payment-methods__card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 210px;
    margin: 0;
    padding: 18px 16px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
}

.ms-payment-methods__icon {
    display: block;
    width: 28px;
    height: 28px;
    margin: 0 0 14px;
    object-fit: contain;
}

.ms-payment-methods__card-title {
    margin: 0 0 8px;
    color: #414141;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.ms-payment-methods__description {
    flex: 1 1 auto;
    margin: 0;
    color: #555;
    font-size: 13px;
    line-height: 1.45;
}

.ms-payment-methods__note {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid #ececec;
    color: #929292;
    font-size: 12px;
    line-height: 1.3;
}

.ms-payment-methods__banner {
    overflow: hidden;
    min-width: 0;
    min-height: 210px;
    margin: 0;
    border-radius: 12px;
    background: #414141;
}

.ms-payment-methods__banner picture,
.ms-payment-methods__banner img {
    display: block;
    width: 100%;
    height: 100%;
}

.ms-payment-methods__banner img {
    object-fit: cover;
}

@media (max-width: 1024px) {
    .ms-payment-methods__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ms-payment-methods__banner {
        grid-column: 1 / -1;
        min-height: 0;
        aspect-ratio: 1100 / 466;
    }
}

@media (max-width: 767px) {
    .ms-payment-methods__title {
        margin-bottom: 24px;
        font-size: 28px;
    }

    .ms-payment-methods__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ms-payment-methods__card {
        min-height: 0;
    }

    .ms-payment-methods__banner {
        grid-column: auto;
        aspect-ratio: 4 / 3;
    }
}
