.creditoffers-widget {
    width: 100%;
    margin: 14px 0;
    font-family: inherit;
    --creditoffers-accent: #20965f;
    --creditoffers-text-color: #fff;
    --creditoffers-modal-accent: #20965f;
    --creditoffers-modal-submit-text: #fff;
    --creditoffers-theme-min-height: 46px;
    --creditoffers-theme-padding: 10px 18px;
    --creditoffers-theme-radius: 10px;
    --creditoffers-theme-font-family: inherit;
    --creditoffers-theme-font-size: 16px;
    --creditoffers-theme-font-weight: 600;
    --creditoffers-theme-line-height: 1.2;
    --creditoffers-theme-letter-spacing: normal;
    --creditoffers-theme-text-transform: none;
    --creditoffers-theme-border-width: 0px;
    --creditoffers-theme-border-style: solid;
    --creditoffers-theme-border-color: transparent;
    --creditoffers-theme-background: #2450df;
    --creditoffers-theme-color: #fff;
    --creditoffers-theme-width: auto;
    --creditoffers-custom-height: 52px;
    --creditoffers-custom-radius: 12px;
    --creditoffers-custom-font-size: 16px;
    --creditoffers-custom-font-weight: 600;
}

.creditoffers-widget[hidden] { display: none !important; }

.creditoffers-button {
    box-sizing: border-box;
    appearance: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6em;
    max-width: 100%;
    min-height: var(--creditoffers-theme-min-height);
    padding: var(--creditoffers-theme-padding);
    border-width: var(--creditoffers-theme-border-width);
    border-style: var(--creditoffers-theme-border-style);
    border-radius: var(--creditoffers-theme-radius);
    font-family: var(--creditoffers-theme-font-family);
    font-size: var(--creditoffers-theme-font-size);
    font-weight: var(--creditoffers-theme-font-weight);
    line-height: var(--creditoffers-theme-line-height);
    letter-spacing: var(--creditoffers-theme-letter-spacing);
    text-transform: var(--creditoffers-theme-text-transform);
    text-align: center;
    text-decoration: none;
    transition: filter .15s ease, opacity .15s ease, background-color .15s ease, border-color .15s ease;
}

.creditoffers-widget[data-button-width="full"] .creditoffers-button { width: 100%; }
.creditoffers-widget[data-button-width="theme"] .creditoffers-button { width: min(100%, var(--creditoffers-theme-width)); }
.creditoffers-widget[data-button-width="auto"] .creditoffers-button { width: auto; }

.creditoffers-widget[data-button-style="theme"] .creditoffers-button {
    background: var(--creditoffers-theme-background);
    color: var(--creditoffers-theme-color);
    border-color: var(--creditoffers-theme-border-color);
}

.creditoffers-widget[data-button-style="green"] .creditoffers-button {
    background: var(--creditoffers-accent);
    color: var(--creditoffers-text-color);
    border-color: var(--creditoffers-accent);
}

.creditoffers-widget[data-button-style="outline"] .creditoffers-button {
    background: transparent;
    color: var(--creditoffers-accent);
    border-width: max(1px, var(--creditoffers-theme-border-width));
    border-style: solid;
    border-color: var(--creditoffers-accent);
}

.creditoffers-widget[data-button-style="custom"] .creditoffers-button {
    min-height: var(--creditoffers-custom-height);
    padding: 10px 18px;
    border: 0;
    border-radius: var(--creditoffers-custom-radius);
    background: var(--creditoffers-accent);
    color: var(--creditoffers-text-color);
    font-family: inherit;
    font-size: var(--creditoffers-custom-font-size);
    font-weight: var(--creditoffers-custom-font-weight);
    line-height: 1.2;
    letter-spacing: normal;
    text-transform: none;
}

.creditoffers-button:hover { filter: brightness(.96); }
.creditoffers-button:disabled { opacity: .5; cursor: not-allowed; }
.creditoffers-button__icon { width: 1.35em; height: 1.35em; flex: 0 0 1.35em; display: inline-flex; align-items: center; justify-content: center; }
.creditoffers-button__icon[hidden] { display: none !important; }
.creditoffers-button__icon svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.creditoffers-widget[data-icon-position="right"] .creditoffers-button__icon { order: 2; }
.creditoffers-widget[data-icon-position="right"] .creditoffers-button__text { order: 1; }

.creditoffers-modal[hidden] { display: none !important; }
.creditoffers-modal { position: fixed; inset: 0; z-index: 100000; }
.creditoffers-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.58); }
.creditoffers-modal__dialog { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(980px,calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; background: #fff; color: #171717; border-radius: 14px; box-shadow: 0 24px 80px rgba(0,0,0,.25); }
.creditoffers-modal__header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid #e7e7e7; background: #fff; font-size: 20px; }
.creditoffers-modal__close { border: 0; background: transparent; font-size: 32px; line-height: 1; color: #666; cursor: pointer; padding: 0 4px; }
.creditoffers-product { display: grid; grid-template-columns: 72px 1fr auto; gap: 18px; align-items: center; padding: 18px 22px; background: #f7f7f7; border-bottom: 1px solid #ededed; }
.creditoffers-product__image { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 8px; overflow: hidden; }
.creditoffers-product__image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.creditoffers-product__name { font-weight: 600; }
.creditoffers-product__sum { display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.creditoffers-product__sum span { color: var(--creditoffers-modal-accent); }
.creditoffers-product__sum strong { font-size: 22px; }
.creditoffers-modal__content { padding: 18px 22px; }
.creditoffers-modal__intro { margin-bottom: 14px; }
.creditoffers-programs { display: grid; gap: 10px; }
.creditoffers-program { display: grid; grid-template-columns: 24px 76px minmax(0,1fr) auto; gap: 14px; align-items: center; border: 1px solid #ddd; border-radius: 10px; padding: 14px 16px; cursor: pointer; }
.creditoffers-program:hover { border-color: #bdbdbd; }
.creditoffers-program > input { position: absolute; opacity: 0; pointer-events: none; }
.creditoffers-program__radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c6c6c6; box-sizing: border-box; position: relative; }
.creditoffers-program > input:checked + .creditoffers-program__radio { border-color: var(--creditoffers-modal-accent); }
.creditoffers-program > input:checked + .creditoffers-program__radio:after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--creditoffers-modal-accent); }
.creditoffers-program__logo { height: 38px; display: flex; align-items: center; }
.creditoffers-program__logo img { max-width: 72px; max-height: 36px; object-fit: contain; }
.creditoffers-program__info { min-width: 0; display: grid; gap: 4px; }
.creditoffers-program__info strong { font-size: 15px; }
.creditoffers-program__info small { color: #777; }
.creditoffers-program__payment { text-align: right; white-space: nowrap; }
.creditoffers-program__payment small { font-size: 15px; }
.creditoffers-error { margin-top: 14px; border-radius: 8px; background: #fff0f0; color: #a12626; padding: 10px 12px; }
.creditoffers-modal__footer { position: sticky; bottom: 0; background: #fff; border-top: 1px solid #ededed; padding: 16px 22px; }
.creditoffers-submit { width: 100%; min-height: var(--creditoffers-theme-min-height); padding: var(--creditoffers-theme-padding); border: 0; border-radius: var(--creditoffers-submit-radius, var(--creditoffers-theme-radius)); background: var(--creditoffers-modal-accent); color: var(--creditoffers-modal-submit-text); font-family: var(--creditoffers-theme-font-family); font-size: var(--creditoffers-theme-font-size); font-weight: 700; line-height: var(--creditoffers-theme-line-height); cursor: pointer; text-transform: uppercase; }
.creditoffers-submit:disabled { opacity: .55; cursor: not-allowed; }
.creditoffers-submit.is-loading:after { content: ""; display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; margin-left: 10px; vertical-align: -2px; animation: creditoffers-spin .7s linear infinite; }
.creditoffers-modal-open { overflow: hidden; }
@keyframes creditoffers-spin { to { transform: rotate(360deg); } }

@media (max-width: 680px) {
    .creditoffers-modal__dialog { width: 100vw; height: 100vh; max-height: none; border-radius: 0; }
    .creditoffers-product { grid-template-columns: 56px 1fr; }
    .creditoffers-product__image { width: 56px; height: 56px; }
    .creditoffers-product__sum { grid-column: 1/-1; justify-content: flex-end; }
    .creditoffers-program { grid-template-columns: 22px 54px 1fr; gap: 10px; }
    .creditoffers-program__logo img { max-width: 50px; }
    .creditoffers-program__payment { grid-column: 3; text-align: left; }
    .creditoffers-modal__header, .creditoffers-product, .creditoffers-modal__content, .creditoffers-modal__footer { padding-left: 16px; padding-right: 16px; }
}
