/* ILE delivery protection card and mobile modal. */
.ile-delivery-protection {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 4px 14px;
    align-items: center;
    margin: 25px 0 !important;
    padding: 12px 14px;
    border: 1px solid #c9aa73;
    border-radius: 12px;
    background: #fbfaf6;
    color: #111;
    font-family: var(--wp--preset--font-family--montserrat);
}

.ile-delivery-protection__icon {
    display: grid;
    grid-row: 1 / span 2;
    width: 40px;
    height: 40px;
    place-items: center;
}

.ile-delivery-protection__icon img {
    width: 26px;
    height: 26px;
}

body.woocommerce.single-product .summary .pay-parts-oswald {
    margin-bottom: 14px !important;
}

.ile-delivery-protection__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.ile-delivery-protection__title,
.ile-delivery-protection__subtitle {
    display: block;
}

.ile-delivery-protection__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.ile-delivery-protection__subtitle {
    color: #6a6a6a;
    font-size: 12px;
    line-height: 1.4;
}

.ile-delivery-protection__details {
    color: inherit;
    font: inherit;
    font-size: 12px;
    line-height: 1.3;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.ile-delivery-protection__details--desktop::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 1px 1px 9px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg);
}

.ile-delivery-protection__details--mobile,
.ile-delivery-protection-modal {
    display: none;
}

button.ile-delivery-protection__details--mobile {
    appearance: none;
    -webkit-appearance: none;
}

@media (max-width: 820px) {
    .ile-delivery-protection {
        grid-template-columns: 32px minmax(0, 1fr) auto;
        gap: 2px 8px;
        margin: 20px 0 !important;
        padding: 10px;
        border-color: rgba(0, 0, 0, .06);
        background: rgba(251, 250, 246, .88);
    }

    body.woocommerce.single-product .summary .pay-parts-oswald {
        margin-bottom: 12px !important;
    }

    .ile-delivery-protection__icon {
        width: 32px;
        height: 32px;
    }

    .ile-delivery-protection__icon img {
        width: 22px;
        height: 22px;
    }

    .ile-delivery-protection__title {
        font-size: 12px;
    }

    .ile-delivery-protection__subtitle {
        font-size: 11px;
    }

    .ile-delivery-protection__details--desktop {
        display: none;
    }

    .ile-delivery-protection__details--mobile {
        display: block;
        padding: 6px 0 6px 6px;
        border: 0;
        border-radius: 0;
        background: transparent;
        cursor: pointer;
    }

    body.ile-delivery-protection-modal-open {
        position: fixed;
        right: 0;
        left: 0;
        width: 100%;
        overflow: hidden;
    }

    body.ile-delivery-protection-modal-open .cky-btn-revisit-wrapper {
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .ile-delivery-protection-modal {
        position: fixed;
        inset: 0;
        z-index: 10020;
        display: block;
    }

    .ile-delivery-protection-modal[hidden] {
        display: none;
    }

    .ile-delivery-protection-modal__backdrop {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: rgba(0, 0, 0, .42);
        opacity: 0;
        transition: opacity .32s ease;
    }

    .ile-delivery-protection-modal__sheet {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        max-height: min(84svh, 720px);
        padding-bottom: env(safe-area-inset-bottom, 0);
        background: #fbfaf6;
        border-radius: 0;
        box-shadow: 0 -24px 48px rgba(0, 0, 0, .18);
        flex-direction: column;
        overflow: hidden;
        transform: translateY(100%);
        transition: transform .42s cubic-bezier(.22, 1, .36, 1);
        font-family: var(--wp--preset--font-family--montserrat);
    }

    .ile-delivery-protection-modal.is-open .ile-delivery-protection-modal__backdrop {
        opacity: 1;
    }

    .ile-delivery-protection-modal__sheet::before,
    .ile-delivery-protection-modal__sheet::after {
        display: none !important;
        content: none !important;
    }

    .ile-delivery-protection-modal.is-open .ile-delivery-protection-modal__sheet {
        transform: translateY(0);
    }

    .ile-delivery-protection-modal__header {
        display: flex;
        min-height: 60px;
        padding: 0 12px 0 16px;
        border-bottom: 1px solid rgba(0, 0, 0, .08);
        align-items: center;
        justify-content: space-between;
    }

    .ile-delivery-protection-modal__title {
        max-width: calc(100% - 48px);
        margin: 0;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.25;
    }

    .ile-delivery-protection-modal__close {
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #000;
        font-size: 32px;
        font-weight: 300;
        line-height: 1;
        cursor: pointer;
    }

    .ile-delivery-protection-modal__content {
        padding: 18px 16px 20px;
        overflow: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .ile-delivery-protection-modal__benefits {
        display: grid;
        gap: 16px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .ile-delivery-protection-modal__benefits li {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 12px;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .ile-delivery-protection-modal__benefits li:not(:last-child) {
        margin-bottom: 5px;
    }

    .ile-delivery-protection-modal__benefit-icon {
        display: grid;
        width: 44px;
        height: 44px;
        border: 1px solid rgba(0, 0, 0, .09);
        border-radius: 50%;
        place-items: center;
    }

    .ile-delivery-protection-modal__benefit-icon img {
        width: 22px;
        height: 22px;
    }

    .ile-delivery-protection-modal__benefits strong {
        font-size: 14px;
        font-weight: 600;
        line-height: 1.45;
    }

    .ile-delivery-protection-modal__link {
        display: block;
        width: 100%;
        margin-top: 25px;
        color: #111;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.4;
        text-decoration: underline;
        text-underline-offset: 4px;
        text-align: center;
    }

    .ile-delivery-protection__details--mobile:focus-visible,
    .ile-delivery-protection-modal__close:focus-visible,
    .ile-delivery-protection-modal__link:focus-visible {
        outline: 2px solid #111;
        outline-offset: 3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ile-delivery-protection-modal__backdrop,
    .ile-delivery-protection-modal__sheet {
        transition: none !important;
    }
}
