.iofr-offer-button-wrap {
    margin-top: 1rem;
}

.iofr-offer-button {
    background: #dfff2f;
    border: 2px solid #b8e600;
    box-shadow: 0 8px 20px rgba(184, 230, 0, 0.32);
    color: #111;
    font-weight: 800;
    min-height: 3.15rem;
    text-transform: none;
    width: 100%;
    white-space: normal;
}

.iofr-offer-button:hover,
.iofr-offer-button:focus {
    background: #f0ff66;
    border-color: #9dc600;
    box-shadow: 0 10px 24px rgba(184, 230, 0, 0.45);
    color: #111;
}

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

.iofr-modal {
    align-items: center;
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    padding: 1rem;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1080;
}

.iofr-modal__backdrop {
    background: rgba(0, 0, 0, 0.56);
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.iofr-modal__dialog {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 18px 56px rgba(0, 0, 0, 0.28);
    max-height: calc(100vh - 2rem);
    max-width: 860px;
    overflow: auto;
    padding: 1.5rem;
    position: relative;
    width: min(100%, 860px);
}

.iofr-modal__close {
    align-items: center;
    background: transparent;
    border: 0;
    color: #333;
    cursor: pointer;
    display: flex;
    font-size: 2rem;
    height: 2.5rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 0.75rem;
    top: 0.75rem;
    width: 2.5rem;
}

.iofr-modal__title {
    font-size: 1.45rem;
    line-height: 1.25;
    margin: 0 2.75rem 1rem 0;
}

.iofr-alert {
    margin-bottom: 1rem;
}

.iofr-error-list {
    margin: 0;
    padding-left: 1.25rem;
}

.iofr-product-summary {
    background: #f7f7f7;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    margin-bottom: 1.25rem;
    padding: 1rem;
}

.iofr-product-summary dl {
    display: grid;
    gap: 0.4rem 1rem;
    grid-template-columns: minmax(130px, 190px) 1fr;
    margin: 0;
}

.iofr-product-summary dt {
    color: #555;
    font-weight: 700;
}

.iofr-product-summary dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.iofr-form-intro {
    background: #f3ffd0;
    border: 1px solid #d4ef62;
    border-radius: 6px;
    color: #222;
    line-height: 1.5;
    margin: 0 0 1.1rem;
    padding: 0.9rem 1rem;
}

.iofr-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.iofr-field,
.iofr-checkbox {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.iofr-field label,
.iofr-checkbox label {
    font-weight: 600;
}

.iofr-field input,
.iofr-field textarea {
    border: 1px solid #b9b9b9;
    border-radius: 4px;
    min-height: 2.75rem;
    padding: 0.55rem 0.7rem;
    width: 100%;
}

.iofr-field textarea {
    min-height: 6rem;
    resize: vertical;
}

.iofr-field input:focus,
.iofr-field textarea:focus,
.iofr-checkbox input:focus,
.iofr-option input:focus,
.iofr-modal__close:focus {
    outline: 3px solid rgba(0, 123, 255, 0.35);
    outline-offset: 2px;
}

.iofr-field--error input {
    border-color: #b00020;
}

.iofr-field--wide {
    grid-column: 1 / -1;
}

.iofr-section {
    background: #fbfbfb;
    border: 1px solid #dedede;
    border-radius: 6px;
    margin: 1.25rem 0 0;
    padding: 1.1rem;
}

.iofr-section .iofr-grid {
    grid-template-columns: 1fr;
}

.iofr-section__title {
    color: #222;
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
    padding: 0 0.35rem;
}

.iofr-option-group {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0.85rem;
}

.iofr-option-group legend {
    color: #333;
    font-size: 0.96rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    padding: 0 0.25rem;
}

.iofr-options {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: 1fr;
}

.iofr-option {
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    gap: 0.65rem;
    line-height: 1.35;
    margin: 0;
    padding: 0.7rem 0.8rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    width: 100%;
}

.iofr-option:hover {
    background: #f7fbe9;
    border-color: #c4dd58;
}

.iofr-option:has(input:checked) {
    background: #f3ffd0;
    border-color: #b8e600;
    box-shadow: inset 0 0 0 1px #b8e600;
}

.iofr-option input {
    flex: 0 0 auto;
    margin-top: 0.18rem;
}

.iofr-accessory-other {
    margin-top: 1rem;
}

.iofr-accessory-other[hidden] {
    display: none !important;
}

.iofr-checkbox {
    align-items: flex-start;
    flex-direction: row;
    margin-top: 1rem;
}

.iofr-checkbox input {
    flex: 0 0 auto;
    margin-top: 0.25rem;
}

.iofr-captcha {
    margin-top: 1rem;
}

.iofr-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.iofr-hp {
    height: 1px;
    left: -10000px;
    overflow: hidden;
    position: absolute;
    top: auto;
    width: 1px;
}

body.iofr-modal-open {
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .iofr-modal {
        align-items: flex-end;
        padding: 0.5rem;
    }

    .iofr-modal__dialog {
        max-height: calc(100vh - 1rem);
        padding: 1rem;
    }

    .iofr-product-summary dl,
    .iofr-grid,
    .iofr-options {
        grid-template-columns: 1fr;
    }

    .iofr-actions .btn {
        width: 100%;
    }
}
