.fpbp-trigger-wrap {
    clear: both;
    margin: 14px 0 20px;
}

.fpbp-trigger {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit;
    font: inherit;
    font-weight: 650;
    line-height: 1.35;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.fpbp-trigger:hover {
    opacity: 0.72;
}

.fpbp-trigger:focus-visible {
    outline: 3px solid rgba(31, 80, 62, 0.28);
    outline-offset: 5px;
}

.fpbp-trigger-icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    font-size: 13px;
    line-height: 1;
}

.fpbp-modal[hidden] {
    display: none !important;
}

.fpbp-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 160ms ease;
}

.fpbp-modal.is-open {
    opacity: 1;
}

.fpbp-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 16, 14, 0.76);
    backdrop-filter: blur(3px);
}

.fpbp-dialog {
    position: relative;
    width: min(880px, 100%);
    max-height: min(780px, calc(100vh - 48px));
    overflow: auto;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
    color: #171b19;
    transform: translateY(8px);
    transition: transform 160ms ease;
}

.fpbp-modal.is-open .fpbp-dialog {
    transform: translateY(0);
}

.fpbp-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(23, 27, 25, 0.18);
    border-radius: 50%;
    background: #fff !important;
    color: #171b19;
    font:
        400 27px/1 Arial,
        sans-serif;
    cursor: pointer;
}

.fpbp-close:hover {
    background: #f3f5f4 !important;
}

.fpbp-close:focus-visible {
    outline: 3px solid rgba(31, 80, 62, 0.3);
    outline-offset: 2px;
}

.fpbp-layout {
    display: grid;
    grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
}

.fpbp-product {
    padding: 28px;
    background: var(--fpbp-accent, #15683f);
    color: #fff;
}

.fpbp-product-media {
    overflow: hidden;
    margin-bottom: 22px;
    border-radius: 10px;
    background: #fff;
}

.fpbp-product-image,
.fpbp-product-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: contain;
}

.fpbp-product-eyebrow,
.fpbp-kicker {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.13em;
    line-height: 1.3;
    text-transform: uppercase;
}

.fpbp-product-eyebrow {
    color: #b9c7c0;
}

.fpbp-product h3 {
    margin: 0 0 22px;
    color: #fff;
    font-size: 20px;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.fpbp-current-price {
    display: grid;
    gap: 4px;
    margin: 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-weight: 700;
}

.fpbp-current-price>span {
    color: #b9c7c0;
    font-size: 12px;
    font-weight: 500;
}

.fpbp-current-price .price,
.fpbp-current-price ins,
.fpbp-current-price bdi {
    color: #fff;
}

.fpbp-current-price del {
    opacity: 0.65;
}

.fpbp-form-panel {
    padding: 42px 44px 36px;
}

.fpbp-form-heading {
    padding-right: 36px;
}

.fpbp-kicker {
    color: var(--fpbp-accent, #15683f);
}

.fpbp-form-heading h2 {
    margin: 0 0 10px;
    color: #171b19;
    font-size: clamp(25px, 3vw, 34px);
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.fpbp-form-heading>p:last-child {
    max-width: 58ch;
    margin: 0 0 25px;
    color: #56615c;
    font-size: 15px;
    line-height: 1.55;
}

.fpbp-field {
    margin-bottom: 17px;
}

.fpbp-field label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    color: #202622;
    font-size: 14px;
    font-weight: 700;
}

.fpbp-optional {
    color: #77817c;
    font-size: 12px;
    font-weight: 500;
}

.fpbp-form input[type="email"],
.fpbp-form input[type="text"],
.fpbp-form input[type="url"],
.fpbp-form textarea {
    width: 100%;
    min-height: 47px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #c8d0cc;
    border-radius: 7px;
    background: #fff;
    color: #171b19;
    box-shadow: none;
    font: inherit;
}

.fpbp-form textarea {
    min-height: 82px;
    resize: vertical;
}

.fpbp-form input:focus,
.fpbp-form textarea:focus {
    border-color: #315e4c;
    outline: 3px solid rgba(49, 94, 76, 0.15);
    outline-offset: 0;
}

.fpbp-form [aria-invalid="true"] {
    border-color: #a52d2d !important;
    outline-color: rgba(165, 45, 45, 0.15) !important;
}

.fpbp-hint,
.fpbp-error {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.4;
}

.fpbp-hint {
    color: #6c7671;
}

.fpbp-error {
    color: #a52d2d;
    font-weight: 650;
}

.fpbp-price-input {
    position: relative;
}

.fpbp-price-input>span {
    position: absolute;
    top: 50%;
    left: 13px;
    transform: translateY(-50%);
    color: #4f5954;
    font-weight: 700;
}

.fpbp-price-input input {
    padding-left: 32px !important;
}

.fpbp-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 2px 0 16px;
    color: #4f5954;
    font-size: 13px;
    line-height: 1.45;
}

.fpbp-consent input {
    flex: 0 0 auto;
    margin-top: 3px;
}

.fpbp-alert {
    margin-bottom: 17px;
    padding: 11px 13px;
    border: 1px solid #e6bcbc;
    border-radius: 7px;
    background: #fff1f1;
    color: #7f2020;
    font-size: 13px;
    font-weight: 650;
}

.fpbp-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
}

.fpbp-submit {
    min-height: 47px;
    padding: 11px 19px;
    border: 0;
    border-radius: 7px;
    background: var(--fpbp-action, #4caf50) !important;
    color: var(--fpbp-action-text, #fff) !important;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.fpbp-submit:hover {
    filter: brightness(.9);
}

.fpbp-submit:focus-visible {
    outline: 3px solid rgba(23, 32, 28, 0.28);
    outline-offset: 3px;
}

.fpbp-submit[disabled] {
    cursor: wait;
    opacity: 0.65;
}

.fpbp-actions p {
    margin: 0;
    color: #69736e;
    font-size: 12px;
    line-height: 1.4;
}

.fpbp-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.fpbp-success {
    display: grid;
    justify-items: start;
    min-height: 310px;
    align-content: center;
}

.fpbp-success>span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #e8f3ed;
    color: #236044;
    font-size: 24px;
    font-weight: 800;
}

.fpbp-success h3 {
    margin: 0 0 9px;
    font-size: 28px;
    line-height: 1.2;
}

.fpbp-success p {
    max-width: 52ch;
    margin: 0 0 23px;
    color: #56615c;
    line-height: 1.6;
}

.fpbp-live {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.fpbp-modal-open {
    overflow: hidden !important;
}

@media (max-width: 720px) {
    .fpbp-modal {
        padding: 12px;
    }

    .fpbp-dialog {
        max-height: calc(100vh - 24px);
        border-radius: 12px;
    }

    .fpbp-layout {
        grid-template-columns: 1fr;
    }

    .fpbp-product {
        display: grid;
        grid-template-columns: 82px 1fr;
        gap: 0 15px;
        padding: 20px 58px 20px 20px;
    }

    .fpbp-product-media {
        grid-row: 1/4;
        width: 82px;
        margin: 0;
    }

    .fpbp-product-eyebrow {
        align-self: end;
        margin-bottom: 3px;
    }

    .fpbp-product h3 {
        align-self: start;
        margin: 0;
        font-size: 16px;
    }

    .fpbp-current-price {
        display: none;
    }

    .fpbp-form-panel {
        padding: 28px 20px 24px;
    }

    .fpbp-form-heading {
        padding-right: 28px;
    }

    .fpbp-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .fpbp-actions p {
        order: -1;
    }

    .fpbp-submit {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .fpbp-product {
        grid-template-columns: 62px 1fr;
    }

    .fpbp-product-media {
        width: 62px;
    }

    .fpbp-form-heading h2 {
        font-size: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .fpbp-modal,
    .fpbp-dialog {
        transition: none;
    }

    .fpbp-backdrop {
        backdrop-filter: none;
    }
}
