.delivery-payment {
    --delivery-payment-accent: #008fbe;
    --delivery-payment-text: #858f9a;
    --delivery-payment-clock: #95877b;
    margin: 48px 0 24px;
    font-family: Ubuntu, Arial, sans-serif;
}

.delivery-payment-page + .main-mobile-app__container {
    margin-top: 40px;
}

@media (min-width: 1881px) {
    .delivery-payment-page + .main-mobile-app__container {
        margin-top: 96px;
    }
}

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

.delivery-payment__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.delivery-payment__card {
    min-width: 0;
    min-height: 486px;
    padding: 30px 30px 34px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
}

.delivery-payment__card-header {
    min-height: 118px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.delivery-payment__service-icon {
    display: block;
    width: 49px;
    height: 47px;
    margin-bottom: 14px;
}

.delivery-payment__service-icon--courier {
    height: 38px;
    margin-top: 5px;
    margin-bottom: 18px;
}

.delivery-payment__service-icon--store {
    height: 32px;
    margin-top: 8px;
    margin-bottom: 15px;
}

.delivery-payment__card-title {
    margin: 0;
    color: #000;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
}

.delivery-payment__card-title small {
    display: block;
    margin-top: 2px;
    color: var(--delivery-payment-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
}

.delivery-payment__price {
    min-height: 84px;
    margin: 0 0 20px;
    padding: 16px 18px 14px;
    border-left: 7px solid var(--delivery-payment-accent);
    border-radius: 0 6px 6px 0;
    background: rgba(0, 143, 190, 0.08);
}

.delivery-payment__price strong,
.delivery-payment__price span {
    display: block;
}

.delivery-payment__price strong {
    color: var(--delivery-payment-accent);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.2;
}

.delivery-payment__price span {
    margin-top: 5px;
    color: var(--delivery-payment-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.delivery-payment__features {
    margin: 0;
    padding: 0;
    list-style: none;
}

.delivery-payment__feature {
    position: relative;
    display: flex;
    align-items: flex-start;
    min-height: 31px;
    margin: 0 0 11px;
    padding-left: 25px;
    color: var(--delivery-payment-text);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.28;
}

.delivery-payment__feature:last-child {
    margin-bottom: 0;
}

.delivery-payment__feature > span {
    min-width: 0;
}

.delivery-payment__feature b {
    font-weight: 700;
}

.delivery-payment__feature strong {
    color: var(--delivery-payment-accent);
    font-weight: 700;
}

.delivery-payment__feature::before {
    position: absolute;
    left: 0;
    top: 2px;
    width: 17px;
    height: 17px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    content: '';
}

.delivery-payment__feature--check::before {
    background-image: url('/customers/payment-shipping/assets/check.svg');
}

.delivery-payment__feature--clock::before {
    background-image: url('/customers/payment-shipping/assets/clock.svg');
}

.delivery-payment__tooltip-wrap {
    position: relative;
    display: inline-flex;
    vertical-align: -2px;
}

.delivery-payment__info {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    margin: -2px 0 -2px 2px;
    padding: 2px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.delivery-payment__info img {
    display: block;
    width: 14px;
    height: 14px;
}

.delivery-payment__info:hover,
.delivery-payment__info:focus-visible {
    outline: 2px solid rgba(0, 143, 190, 0.45);
    outline-offset: 1px;
}

.delivery-payment__tooltip {
    --delivery-tooltip-shift-x: 0px;
    position: absolute;
    z-index: 20;
    left: 50%;
    right: auto;
    bottom: calc(100% + 14px);
    width: 280px;
    padding: 20px 22px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
    color: #222;
    font-family: Ubuntu, Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    transform: translateX(calc(-50% + var(--delivery-tooltip-shift-x)));
}

.delivery-payment__tooltip[hidden] {
    display: none;
}

.delivery-payment__tooltip::after {
    position: absolute;
    left: calc(50% - var(--delivery-tooltip-shift-x));
    right: auto;
    bottom: -11px;
    width: 22px;
    height: 22px;
    background: #fff;
    box-shadow: 7px 7px 12px rgba(0, 0, 0, 0.05);
    content: '';
    transform: translateX(-50%) rotate(45deg);
}

.delivery-payment__tooltip p {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
}

.delivery-payment__tooltip p:last-child {
    margin-bottom: 0;
}

.delivery-payment__tooltip a {
    color: #222;
    text-decoration: underline;
}

.delivery-payment__tooltip-note::before {
    color: var(--delivery-payment-accent);
    font-weight: 700;
    content: '! ';
}

@media (max-width: 1199px) {
    .delivery-payment__grid {
        gap: 18px;
    }

    .delivery-payment__card {
        padding-right: 20px;
        padding-left: 20px;
    }

    .delivery-payment__price strong {
        font-size: 20px;
    }

    .delivery-payment__price span {
        font-size: 14px;
    }

    .delivery-payment__feature {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .delivery-payment {
        margin-top: 20px;
    }

    .delivery-payment__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .delivery-payment__card {
        min-height: 0;
        padding: 24px 20px 28px;
    }

    .delivery-payment__card-header {
        min-height: 106px;
    }

    .delivery-payment__service-icon {
        width: 42px;
        height: 40px;
        margin-bottom: 12px;
    }

    .delivery-payment__service-icon--courier {
        height: 33px;
        margin-bottom: 16px;
    }

    .delivery-payment__service-icon--store {
        height: 28px;
        margin-bottom: 14px;
    }

    .delivery-payment__card-title {
        font-size: 18px;
    }

    .delivery-payment__card-title small {
        font-size: 12px;
    }

    .delivery-payment__price {
        min-height: 70px;
        margin-bottom: 18px;
        padding: 12px 12px 11px;
        border-left-width: 5px;
    }

    .delivery-payment__price strong {
        font-size: 20px;
    }

    .delivery-payment__price span {
        margin-top: 3px;
        font-size: 13px;
    }

    .delivery-payment__feature {
        min-height: 27px;
        margin-bottom: 9px;
        padding-left: 22px;
        font-size: 13px;
        line-height: 1.3;
    }

    .delivery-payment__feature::before {
        width: 15px;
        height: 15px;
    }

    .delivery-payment__tooltip {
        left: 50%;
        right: auto;
        width: min(290px, calc(100vw - 44px));
        padding: 16px 18px;
        font-size: 12px;
    }

}
