.mhf-wrapper,
.mhf-wrapper * {
    box-sizing: border-box;
}

.mhf-wrapper {
    width: 100%;
    color: #222;
    font-family: "Open Sans", sans-serif;
}

.mhf-intro {
    margin-bottom: 24px;
    line-height: 1.65;
}

.mhf-config-error,
.mhf-status {
    width: 100%;
    margin: 0 0 20px;
    padding: 13px 16px;
    border: 1px solid transparent;
    border-left-width: 5px;
    border-radius: 5px;
    font-size: 16px;
    line-height: 1.5;
}

.mhf-config-error,
.mhf-status-error {
    color: #751616;
    background: #fff2f2;
    border-color: #c92b2b;
}

.mhf-status-success {
    color: #174f2c;
    background: #effbf3;
    border-color: #2e8b57;
}

.mhf-status-info {
    color: #183b69;
    background: #f2f7ff;
    border-color: #1facd8;
}

.mhf-status:empty {
    display: none;
}

.mhf-form {
    position: relative;
    width: 100%;
}

.mhf-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 30px;
}

.mhf-span-2 {
    grid-column: 1 / -1;
}

.mhf-field,
.mhf-fieldset {
    min-width: 0;
    margin: 0;
}

.mhf-field label,
.mhf-fieldset legend {
    display: block;
    width: 100%;
    margin: 0 0 7px;
    padding: 0;
    color: #222;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.mhf-field input,
.mhf-field textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 11px 13px;
    border: 1px solid #b8bec8;
    border-radius: 4px;
    background: #fff;
    color: #222;
    font: inherit;
    line-height: 1.45;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.mhf-field textarea {
    min-height: 130px;
    resize: vertical;
}

.mhf-field input:focus,
.mhf-field textarea:focus {
    outline: none;
    border-color: #0000ff;
    box-shadow: 0 0 0 3px rgba(0, 0, 255, .13);
}

.mhf-fieldset {
    padding: 0;
    border: 0;
}

.mhf-options {
    display: grid;
    gap: 10px;
}

.mhf-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 11px 13px;
    border: 1px solid #d2d6dd;
    border-radius: 4px;
    background: #fff;
    color: #222;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
}

.mhf-option:hover {
    border-color: #1facd8;
    background: #f7fcfe;
}

.mhf-option input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #0000ff;
}

.mhf-product-option {
    padding-top: 14px;
    padding-bottom: 14px;
}

.mhf-order-costs {
    margin-top: 12px;
}

.mhf-shipping-option {
    background: #f7f8fa;
    cursor: default;
}

.mhf-shipping-option input:disabled {
    opacity: 1;
}

.mhf-shipping-option.mhf-option-active {
    border-color: #1facd8;
    background: #f2f7ff;
}

.mhf-order-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 14px;
    padding: 14px 16px;
    border: 2px solid #0000ff;
    border-radius: 5px;
    background: #f7f8ff;
    font-size: 17px;
    font-weight: 700;
}

.mhf-order-total strong {
    color: #0000ff;
    font-size: 20px;
    white-space: nowrap;
}

.mhf-field-error {
    display: block;
    min-height: 0;
    margin-top: 5px;
    color: #b21d1d;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.mhf-field-error:empty {
    display: none;
}

.mhf-has-error input,
.mhf-has-error textarea,
.mhf-has-error .mhf-option {
    border-color: #c92b2b;
}

.mhf-turnstile {
    min-height: 1px;
    margin-top: 22px;
}

.mhf-actions {
    margin-top: 24px;
}

.mhf-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    min-height: 52px;
    margin: 0;
    padding: 12px 24px;
    border: 0;
    border-radius: 4px;
    background: #0000ff;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    transition: opacity .18s ease, transform .18s ease;
}

.mhf-submit:hover:not(:disabled) {
    opacity: .88;
}

.mhf-submit:focus-visible {
    outline: 3px solid rgba(31, 172, 216, .45);
    outline-offset: 3px;
}

.mhf-submit:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.mhf-status {
    margin-top: 18px;
    margin-bottom: 0;
}

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

@media (max-width: 767px) {
    .mhf-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .mhf-span-2 {
        grid-column: auto;
    }

    .mhf-order-total {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

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