.product-info-main .xgear-price-offer:has(.xgear-installment-teaser) {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 0 !important;
}
@media(max-width: 767px){
    .product-info-main .xgear-price-offer:has(.xgear-installment-teaser) {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0;
    }
}
.product-info-main .xgear-price-offer:has(.xgear-installment-teaser) > .price-box {
    order: 1;
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    margin: 0;
}

.xgear-installment-teaser {
    order: 2;
    display: flex;
    align-items: center;
    flex: 1 1 0;
    justify-content: flex-end;
    gap: 16px;
}

.xgear-installment-teaser__or {
    margin-right: auto;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}
@media(max-width: 767px){
    .xgear-installment-teaser__or {
        font-size: 12px;
    }
}

.xgear-installment-teaser__offer--static {
    cursor: default;
}

.xgear-installment-teaser__offer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent !important;
    color: #1E293B;
    font-family: inherit;
    cursor: pointer;
    text-align: right;
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.xgear-installment-teaser__label {
    color: #64748b;
    font-size: 13px;
    font-weight: 400;
    line-height: 18px;
}
@media(max-width: 767px){
    .xgear-installment-teaser__label {
        font-size: 10px;
    }
}

.xgear-installment-teaser__price {
    color: #1E293B;
    line-height: 1.1;
    white-space: nowrap;
}

.xgear-installment-teaser__price strong {
    font-size: 20px;
    font-weight: 700;
    text-underline-offset: 3px;
}
@media(max-width: 767px){
    .xgear-installment-teaser__price strong {
        font-size: 16px;
    }
}

.xgear-installment-teaser__unit {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 767px) {
    .xgear-price-offer:has(.xgear-installment-teaser) {
        flex-wrap: wrap;
    }

    .xgear-installment-teaser {
        width: 100%;
    }
}

.xgear-installment-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1px solid #FF3B1F;
    border-radius: 12px;
    background: #fff;
    color: #ff3b1f;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.3;
    text-align: center;
    height: 56px;
}

.xgear-installment-button:hover,
.xgear-installment-button:focus {
    background: #FF3B1F;
    color: white;
}

.xgear-installment-button__title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.xgear-installment-button__note {
    font-size: 11px;
    font-weight: 300;
}

body.xgear-installment-open {
    overflow: hidden;
}

.xgear-installment-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    overflow: auto;
    background: rgba(0, 0, 0, 0.55);
    padding: 24px 16px;
}

.xgear-installment-modal[hidden] {
    display: none;
}

.xgear-installment-modal__dialog {
    position: relative;
    max-width: 960px;
    margin: 24px auto;
    padding: 28px 28px 24px;
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
}

.xgear-installment-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #111;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    padding: 0;
}

.xgear-installment-modal__title {
    margin: 0 0 20px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.xgear-installment-product {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.xgear-installment-product__image {
    width: 96px;
    height: 96px;
    object-fit: contain;
    flex: 0 0 96px;
    background: #f8fafc;
}

.xgear-installment-product__name,
.xgear-installment-product__price {
    margin: 0 0 8px;
}

.xgear-installment-variant-label:has(select[hidden]) {
    display: none;
}

.xgear-installment-variant {
    display: block;
    width: auto;
    min-width: 180px;
    max-width: 100%;
    margin: 0 0 8px;
}

.xgear-installment-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.xgear-installment-modal select,
.xgear-installment-modal input {
    box-sizing: border-box;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: #fff;
    color: #1e293b;
    font-family: inherit;
    font-size: 15px;
    line-height: 44px;
}

.xgear-installment-choices select,
.xgear-installment-buyer input {
    width: 100%;
}

.xgear-installment-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.xgear-installment-panel {
    margin: 0;
    padding: 16px;
    border-radius: 8px;
}

.xgear-installment-buyer {
    background: #e7f1ff;
}

.xgear-installment-summary {
    background: #ffe8ea;
}

.xgear-installment-panel__title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.xgear-installment-buyer input {
    display: block;
    margin: 0 0 10px;
}

.xgear-installment-buyer .field-recaptcha {
    margin: 4px 0 8px;
}

.xgear-installment-submit {
    width: 100%;
    margin-top: 4px;
    padding: 12px 16px;
    border: 0;
    border-radius: 4px;
    background: #1f9d3a;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
}

.xgear-installment-submit:hover,
.xgear-installment-submit:focus {
    background: #188832;
    color: #fff;
}

.xgear-installment-submit:disabled,
.xgear-installment-submit.is-loading {
    opacity: 0.85;
    cursor: wait;
}

.xgear-installment-submit.is-loading::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    vertical-align: -2px;
    animation: xgear-installment-spin 0.7s linear infinite;
}

@keyframes xgear-installment-spin {
    to {
        transform: rotate(360deg);
    }
}

.xgear-installment-summary ul {
    margin: 0;
    padding-left: 18px;
}

.xgear-installment-summary li {
    margin: 6px 0;
}

.xgear-installment-message {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
}

.xgear-installment-message.is-error {
    color: #b42318;
}

.xgear-installment-message.is-success {
    color: #067647;
}

.xgear-installment-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 768px) {
    .xgear-installment-modal__dialog {
        padding: 48px 16px 16px;
    }

    .xgear-installment-choices,
    .xgear-installment-columns {
        grid-template-columns: 1fr;
    }

    .xgear-installment-summary {
        order: -1;
    }

    .xgear-installment-modal__title {
        font-size: 18px;
    }
}
