.ipg-payment-methods,
.payment_method_insta_payment_gateway .ipg-payment-methods,
.payment_method_insta_payment_gateway .ipg-conditional-fields {
    border: 0;
    margin: 12px 0 0;
    padding: 0;
}

.ipg-payment-methods,
.payment_method_insta_payment_gateway .ipg-payment-methods {
    align-items: stretch !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
}

.payment_method_insta_payment_gateway .ipg-conditional-fields {
    display: none;
}

.payment_method_insta_payment_gateway .ipg-conditional-fields input {
    box-sizing: border-box;
    width: 100%;
}

.ipg-card-brand-error {
    color: #a3232a;
    font-size: 13px;
    margin: 6px 0 0;
}

.ipg-card-brand-error[hidden] {
    display: none;
}

.ipg-payment-methods legend,
.payment_method_insta_payment_gateway .ipg-payment-methods legend {
    display: block !important;
    float: none !important;
    font-weight: 600;
    margin-bottom: 8px;
    width: 100% !important;
}

.ipg-payment-method,
.payment_method_insta_payment_gateway .ipg-payment-method {
    align-items: center;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    box-sizing: border-box !important;
    cursor: pointer;
    display: flex !important;
    float: none !important;
    gap: 8px;
    margin: 0 0 8px !important;
    max-width: 100% !important;
    padding: 10px 12px;
    width: 100% !important;
}

.payment_method_insta_payment_gateway .ipg-payment-method input {
    flex: 0 0 auto;
    margin: 0;
}

.payment_method_insta_payment_gateway .ipg-payment-method--disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.payment_method_insta_payment_gateway .ipg-payment-method--disabled input {
    cursor: not-allowed;
}

.payment_method_insta_payment_gateway .ipg-payment-method__icon {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    display: block !important;
    flex: 0 0 auto !important;
    float: none !important;
    height: 24px !important;
    margin: 0 !important;
    max-height: 24px !important;
    max-width: 48px !important;
    object-fit: contain !important;
    padding: 0 !important;
    width: auto !important;
}

.ipg-sandbox-notice,
.ipg-warning-box,
.payment_method_insta_payment_gateway .ipg-sandbox-notice,
.payment_method_insta_payment_gateway .ipg-warning-box {
    background-image: none !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    clear: both !important;
    display: block !important;
    float: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    margin: 12px 0 !important;
    max-width: none !important;
    padding: 12px 14px !important;
    position: static !important;
    text-align: left !important;
    width: auto !important;
}

.ipg-sandbox-notice::before,
.ipg-sandbox-notice::after,
.ipg-warning-box::before,
.ipg-warning-box::after,
.payment_method_insta_payment_gateway .ipg-sandbox-notice::before,
.payment_method_insta_payment_gateway .ipg-sandbox-notice::after,
.payment_method_insta_payment_gateway .ipg-warning-box::before,
.payment_method_insta_payment_gateway .ipg-warning-box::after {
    background: none !important;
    content: none !important;
    display: none !important;
}

.ipg-sandbox-notice,
.payment_method_insta_payment_gateway .ipg-sandbox-notice {
    background-color: #e7f5ee !important;
    border: 1px solid #8fd0aa !important;
    color: #0f5132 !important;
}

.ipg-warning-box,
.payment_method_insta_payment_gateway .ipg-warning-box {
    background-color: #fff8e5 !important;
    border: 1px solid #f0d48a !important;
    color: #6b4e00 !important;
}

.ipg-warning-box p,
.ipg-warning-box a,
.ipg-sandbox-notice p,
.ipg-sandbox-notice a,
.payment_method_insta_payment_gateway .ipg-warning-box p,
.payment_method_insta_payment_gateway .ipg-warning-box a,
.payment_method_insta_payment_gateway .ipg-sandbox-notice p,
.payment_method_insta_payment_gateway .ipg-sandbox-notice a {
    background: transparent !important;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    margin: 0 !important;
}

.payment_method_insta_payment_gateway .ipg-settings-error {
    margin: 12px 0;
}

.ipg-confirmation {
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 16px;
    position: fixed;
    z-index: 9999;
}

.ipg-confirmation[hidden] {
    display: none;
}

.ipg-confirmation__dialog {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    color: #1d2327;
    max-height: 90vh;
    max-width: 420px;
    overflow-y: auto;
    padding: 20px;
    width: 100%;
}

.ipg-confirmation__title {
    font-size: 18px;
    margin: 0 0 8px;
}

.ipg-confirmation__actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 16px;
}

.ipg-login-required-notice {
    background: #f8d7da;
    border: 2px solid #f5c6cb;
    border-radius: 6px;
    color: #721c24;
    font-weight: 600;
    margin: 12px 0 0;
    padding: 15px;
    text-align: center;
}

.ipg-login-required-notice a,
.ipg-login-required-notice__link {
    color: inherit;
    text-decoration: underline;
}

#place_order[disabled],
button#place_order:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.ipg-block-checkout .ipg-block-description,
.ipg-block-checkout .ipg-birthdate-fields,
.ipg-block-checkout .ipg-card-fields {
    margin: 12px 0 0;
}

.ipg-block-checkout .form-row {
    margin: 0 0 12px;
}

.ipg-block-checkout .form-row label {
    display: block;
    margin: 0 0 4px;
}

.ipg-block-checkout .form-row input {
    box-sizing: border-box;
    width: 100%;
}

.ipg-block-checkout .ipg-block-fields__row {
    display: flex;
    gap: 12px;
}

.ipg-block-checkout .ipg-block-fields__row .form-row {
    flex: 1 1 0;
    min-width: 0;
}
