#akb-custom-selector {
    --akb-blue: #08a9e8;
    --akb-blue-dark: #008fd0;
    --akb-blue-soft: #e8f7ff;
    --akb-text: #101828;
    --akb-muted: #667085;
    --akb-line: #e4eaf2;
    --akb-card: #f8fbff;
    --akb-danger: #d92d20;
    --akb-warning: #b54708;
    position: relative;
    width: 100%;
    margin: 34px 0;
    color: var(--akb-text);
    font-family: inherit;
    letter-spacing: 0;
}

#akb-custom-selector,
#akb-custom-selector * {
    box-sizing: border-box;
}

#akb-custom-selector .akb-custom-selector__shell {
    width: min(100%, 1340px);
    margin: 0 auto;
    padding: 0 16px;
}

#akb-custom-selector .akb-custom-selector__hero {
    position: relative;
    overflow: visible;
    padding: 34px 72px 24px;
    border: 1px solid var(--akb-line);
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fdff 100%);
    box-shadow: 0 24px 60px rgba(16, 24, 40, 0.08);
}

#akb-custom-selector .akb-custom-selector__head {
    max-width: 690px;
    margin: 0 auto 28px;
    text-align: center;
}

#akb-custom-selector .akb-custom-selector__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    margin: 0 0 14px;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--akb-blue-soft);
    color: var(--akb-blue-dark);
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
}

#akb-custom-selector .akb-custom-selector__title {
    margin: 0 0 12px;
    color: var(--akb-text);
    font-size: 34px;
    line-height: 1.16;
    font-weight: 900;
    letter-spacing: 0;
}

#akb-custom-selector .akb-custom-selector__text {
    max-width: 560px;
    margin: 0 auto;
    color: var(--akb-muted);
    font-size: 16px;
    line-height: 1.5;
}

#akb-custom-selector .akb-custom-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    max-width: 850px;
    margin: 0 auto 24px;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

#akb-custom-selector .akb-custom-steps__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--akb-muted);
}

#akb-custom-selector .akb-custom-steps__item::before {
    content: "";
    position: absolute;
    top: 14px;
    left: calc(-50% + 24px);
    width: calc(100% - 48px);
    height: 1px;
    background: #d7dee8;
}

#akb-custom-selector .akb-custom-steps__item:first-child::before {
    content: none;
}

#akb-custom-selector .akb-custom-steps__num {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e9eef5;
    color: #667085;
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
}

#akb-custom-selector .akb-custom-steps__label {
    overflow-wrap: anywhere;
    color: inherit;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 600;
    text-align: center;
}

#akb-custom-selector .akb-custom-steps__item.is-active,
#akb-custom-selector .akb-custom-steps__item.is-complete {
    color: var(--akb-blue-dark);
}

#akb-custom-selector .akb-custom-steps__item.is-active .akb-custom-steps__num,
#akb-custom-selector .akb-custom-steps__item.is-complete .akb-custom-steps__num {
    background: linear-gradient(180deg, var(--akb-blue) 0%, var(--akb-blue-dark) 100%);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(8, 169, 232, 0.28);
}

#akb-custom-selector .akb-custom-form {
    position: relative;
    margin: 0;
}

#akb-custom-selector .akb-custom-form__grid {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 20px;
}

#akb-custom-selector .akb-custom-dropdown {
    position: relative;
    min-width: 0;
}

#akb-custom-selector .akb-custom-dropdown__button {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 76px;
    padding: 14px 18px;
    border: 1px solid var(--akb-line);
    border-radius: 14px;
    background: #ffffff;
    color: var(--akb-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(16, 24, 40, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

#akb-custom-selector .akb-custom-dropdown__button:hover,
#akb-custom-selector .akb-custom-dropdown.is-open .akb-custom-dropdown__button {
    border-color: rgba(8, 169, 232, 0.42);
    box-shadow: 0 12px 26px rgba(16, 24, 40, 0.08);
}

#akb-custom-selector .akb-custom-dropdown__button:focus-visible {
    outline: none;
    border-color: var(--akb-blue);
    box-shadow: 0 0 0 4px rgba(8, 169, 232, 0.16);
}

#akb-custom-selector .akb-custom-dropdown__button:disabled {
    cursor: not-allowed;
    opacity: 0.64;
    background: #f5f8fb;
    box-shadow: none;
}

#akb-custom-selector .akb-custom-dropdown__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #344054;
}

#akb-custom-selector .akb-custom-dropdown__icon svg,
#akb-custom-selector .akb-custom-form__help-icon svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#akb-custom-selector .akb-custom-dropdown__icon svg *,
#akb-custom-selector .akb-custom-form__help-icon svg *,
#akb-custom-selector .akb-custom-teasers__icon svg * {
    fill: none !important;
    stroke: currentColor !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    vector-effect: non-scaling-stroke;
}

#akb-custom-selector .akb-custom-dropdown__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

#akb-custom-selector .akb-custom-dropdown__label {
    color: #344054;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
}

#akb-custom-selector .akb-custom-dropdown__value {
    display: block;
    overflow: hidden;
    color: var(--akb-muted);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#akb-custom-selector .akb-custom-dropdown.has-value .akb-custom-dropdown__value {
    color: var(--akb-text);
    font-weight: 700;
}

#akb-custom-selector .akb-custom-dropdown__chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid #667085;
    border-bottom: 2px solid #667085;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.18s ease;
}

#akb-custom-selector .akb-custom-dropdown.is-open .akb-custom-dropdown__chevron {
    transform: rotate(225deg) translate(-2px, -1px);
}

#akb-custom-selector .akb-custom-dropdown__menu {
    position: absolute;
    z-index: 99999;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    max-height: 300px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--akb-line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 22px 44px rgba(16, 24, 40, 0.16);
}

#akb-custom-selector .akb-custom-dropdown.is-open .akb-custom-dropdown__menu {
    display: block;
}

#akb-custom-selector .akb-custom-dropdown__item,
#akb-custom-selector .akb-custom-dropdown__empty {
    display: block;
    width: 100%;
    min-height: 38px;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--akb-text);
    font: inherit;
    font-size: 14px;
    line-height: 1.25;
    text-align: left;
}

#akb-custom-selector .akb-custom-dropdown__item {
    cursor: pointer;
}

#akb-custom-selector .akb-custom-dropdown__item:hover,
#akb-custom-selector .akb-custom-dropdown__item:focus-visible,
#akb-custom-selector .akb-custom-dropdown__item.is-selected {
    outline: none;
    background: var(--akb-blue-soft);
    color: var(--akb-blue-dark);
}

#akb-custom-selector .akb-custom-dropdown__empty {
    color: var(--akb-muted);
}

#akb-custom-selector .akb-custom-form__submit {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    padding: 14px 28px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--akb-blue) 0%, var(--akb-blue-dark) 100%);
    color: #ffffff;
    font: inherit;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 900;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 18px 34px rgba(8, 169, 232, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}

#akb-custom-selector .akb-custom-form__submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow: 0 20px 38px rgba(8, 169, 232, 0.34);
}

#akb-custom-selector .akb-custom-form__submit:active {
    transform: translateY(0);
}

#akb-custom-selector .akb-custom-form__submit:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

#akb-custom-selector .akb-custom-form__help {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    min-height: 40px;
    margin: 20px auto 0;
    padding: 8px 20px;
    border: 1px solid #bee7fb;
    border-radius: 999px;
    background: #f7fcff;
    color: var(--akb-blue-dark);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
    text-decoration: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

#akb-custom-selector .akb-custom-form__help:hover {
    border-color: var(--akb-blue);
    background: var(--akb-blue-soft);
    transform: translateY(-1px);
    text-decoration: none;
}

#akb-custom-selector .akb-custom-form__help-icon {
    display: inline-flex;
    color: var(--akb-blue);
}

#akb-custom-selector .akb-custom-form__help-icon svg {
    width: 20px;
    height: 20px;
}

#akb-custom-selector .akb-custom-message {
    min-height: 22px;
    margin: 12px 0 0;
    color: var(--akb-muted);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    text-align: center;
}

#akb-custom-selector .akb-custom-message.is-error {
    color: var(--akb-danger);
}

#akb-custom-selector .akb-custom-loader {
    position: absolute;
    z-index: 50;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(6px);
}

#akb-custom-selector .akb-custom-loader.is-active {
    display: flex;
}

#akb-custom-selector .akb-custom-loader__panel {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border: 1px solid var(--akb-line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(16, 24, 40, 0.12);
}

#akb-custom-selector .akb-custom-loader__spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(8, 169, 232, 0.18);
    border-top-color: var(--akb-blue);
    border-radius: 50%;
    animation: akbCustomSpin 0.9s linear infinite;
}

#akb-custom-selector .akb-custom-loader__text {
    color: var(--akb-text);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
}

#akb-custom-selector .akb-custom-results {
    margin: 30px 0 0;
}

#akb-custom-selector .akb-custom-teasers {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    align-items: center;
    margin: 26px 0 0;
    padding: 28px 38px;
    border: 1px solid var(--akb-line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(16, 24, 40, 0.06);
}

#akb-custom-selector .akb-custom-teasers__item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-width: 0;
}

#akb-custom-selector .akb-custom-teasers__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    color: #0b82ff;
}

#akb-custom-selector .akb-custom-teasers__icon svg {
    display: block;
    width: 54px;
    height: 54px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#akb-custom-selector .akb-custom-teasers__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
}

#akb-custom-selector .akb-custom-teasers__title {
    color: var(--akb-text);
    font-size: 17px;
    line-height: 1.2;
    font-weight: 900;
    overflow-wrap: anywhere;
}

#akb-custom-selector .akb-custom-teasers__text {
    color: var(--akb-muted);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    overflow-wrap: anywhere;
}

#akb-custom-selector .battery-car-info {
    margin: 0 0 20px;
    padding: 22px;
    border: 1px solid var(--akb-line);
    border-radius: 18px;
    background: var(--akb-card);
}

#akb-custom-selector .battery-car-info__title {
    margin: 0 0 14px;
    color: var(--akb-text);
    font-size: 20px;
    line-height: 1.2;
    font-weight: 900;
}

#akb-custom-selector .battery-car-info__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#akb-custom-selector .battery-car-info__list li {
    min-width: 0;
    color: var(--akb-text);
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

#akb-custom-selector .battery-car-info__k {
    display: block;
    margin: 0 0 3px;
    color: var(--akb-muted);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
}

#akb-custom-selector .battery-selector-note {
    margin: 0 0 22px;
    padding: 16px 18px;
    border: 1px solid #fedf89;
    border-radius: 14px;
    background: #fffaeb;
    color: #7a2e0e;
    font-size: 14px;
    line-height: 1.55;
}

#akb-custom-selector .battery-selector-note strong {
    color: var(--akb-warning);
}

#akb-custom-selector .battery-selector-note a {
    color: var(--akb-blue-dark);
    font-weight: 900;
    text-decoration: none;
}

#akb-custom-selector .battery-selector-note a:hover {
    text-decoration: underline;
}

#akb-custom-selector .battery-result-title {
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--akb-blue);
}

#akb-custom-selector .battery-result-title h2 {
    margin: 0 0 6px;
    color: var(--akb-text);
    font-size: 28px;
    line-height: 1.15;
    font-weight: 900;
}

#akb-custom-selector .battery-result-subtitle {
    margin: 0;
    color: var(--akb-muted);
    font-size: 14px;
    line-height: 1.5;
}

#akb-custom-selector .akb-custom-empty {
    margin: 0;
    padding: 16px 18px;
    border: 1px solid #fdba74;
    border-radius: 14px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 14px;
    line-height: 1.5;
}

@keyframes akbCustomSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1180px) {
    #akb-custom-selector .akb-custom-selector__hero {
        padding: 32px 36px 24px;
    }

    #akb-custom-selector .akb-custom-form__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #akb-custom-selector .battery-car-info__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #akb-custom-selector .akb-custom-teasers {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
        padding: 26px;
    }
}

@media (max-width: 767px) {
    #akb-custom-selector {
        margin: 24px 0;
    }

    #akb-custom-selector .akb-custom-selector__shell {
        padding: 0 12px;
    }

    #akb-custom-selector .akb-custom-selector__hero {
        padding: 24px 16px 18px;
        border-radius: 20px;
    }

    #akb-custom-selector .akb-custom-selector__head {
        margin-bottom: 22px;
    }

    #akb-custom-selector .akb-custom-selector__badge {
        min-height: 34px;
        font-size: 13px;
    }

    #akb-custom-selector .akb-custom-selector__title {
        font-size: 28px;
    }

    #akb-custom-selector .akb-custom-selector__text {
        font-size: 15px;
    }

    #akb-custom-selector .akb-custom-steps {
        gap: 8px;
        margin-bottom: 20px;
    }

    #akb-custom-selector .akb-custom-steps__item::before {
        left: calc(-50% + 18px);
        width: calc(100% - 36px);
    }

    #akb-custom-selector .akb-custom-steps__num {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    #akb-custom-selector .akb-custom-steps__label {
        font-size: 12px;
    }

    #akb-custom-selector .akb-custom-form__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    #akb-custom-selector .akb-custom-dropdown__button {
        min-height: 70px;
        padding: 13px 14px;
        border-radius: 13px;
    }

    #akb-custom-selector .akb-custom-dropdown__menu {
        position: static;
        margin-top: 8px;
        max-height: 260px;
    }

    #akb-custom-selector .akb-custom-form__submit {
        min-height: 54px;
        width: 100%;
    }

    #akb-custom-selector .akb-custom-form__help {
        width: 100%;
        max-width: 320px;
    }

    #akb-custom-selector .akb-custom-results {
        margin-top: 22px;
    }

    #akb-custom-selector .akb-custom-teasers {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 18px;
        padding: 20px 18px;
        border-radius: 18px;
    }

    #akb-custom-selector .akb-custom-teasers__item {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 14px;
    }

    #akb-custom-selector .akb-custom-teasers__icon {
        width: 54px;
        height: 54px;
    }

    #akb-custom-selector .akb-custom-teasers__icon svg {
        width: 44px;
        height: 44px;
    }

    #akb-custom-selector .akb-custom-teasers__title {
        font-size: 16px;
    }

    #akb-custom-selector .akb-custom-teasers__text {
        font-size: 13px;
    }

    #akb-custom-selector .battery-car-info {
        padding: 18px;
    }

    #akb-custom-selector .battery-car-info__list {
        grid-template-columns: 1fr;
    }

    #akb-custom-selector .battery-result-title h2 {
        font-size: 24px;
    }
}
