.lwld-guarantee-nav {
    display: inline-flex;
    align-items: center;
}

.lwld-guarantee-trigger {
    font: inherit;
    cursor: pointer;
}

.lwld-guarantee-trigger--nav {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lwld-guarantee-checkout {
    margin: 1rem 0;
    padding: 0.875rem 1rem;
    border: 1px solid #d8d8d8;
    background: #fff;
}

.lwld-guarantee-trigger--checkout {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lwld-guarantee-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lwld-guarantee-modal.is-open {
    display: flex;
}

.lwld-guarantee-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.lwld-guarantee-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: 94vh;
    overflow: auto;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.lwld-guarantee-modal__header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1rem;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.lwld-guarantee-modal__header h2 {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.35;
}

.lwld-guarantee-modal__close {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    padding: 0.15rem 0.4rem;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.lwld-guarantee-modal__body {
    padding: 1rem;
}

.lwld-guarantee-notice-link {
    display: block;
}

.lwld-guarantee-notice {
    display: block;
    width: 100%;
    height: auto;
}

.lwld-guarantee-more {
    margin: 1rem 0 0;
    text-align: center;
}

body.lwld-guarantee-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .lwld-guarantee-modal {
        padding: 0.5rem;
    }

    .lwld-guarantee-modal__dialog {
        max-height: 97vh;
    }

    .lwld-guarantee-modal__header,
    .lwld-guarantee-modal__body {
        padding: 0.75rem;
    }
}
