/* Product selector wizard */
.pw {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    height: var(--pw-viewport-height, 100vh);
    box-sizing: border-box;
    padding: 24px;
    overflow: hidden;
    font-family: "Roboto", Helvetica, Arial, sans-serif;
    color: #1d1d1b;
}
.pw[hidden] {
    display: none !important;
}
.pw.is-open {
    display: flex;
}
body.pw-open {
    overflow: hidden;
}
.pw__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .62);
    backdrop-filter: blur(2px);
}
.pw__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 860px;
    max-height: calc(100vh - 48px);
    max-height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .28);
    outline: none;
}
.pw__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #1d1d1b;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}
.pw__close:hover,
.pw__close:focus-visible {
    background: #f1f4ec;
}
.pw__head {
    flex: 0 0 auto;
    padding: 28px 64px 16px 28px;
    border-bottom: 1px solid #cbd5e1;
    background: #f8fafc;
}
.pw__eyebrow {
    margin: 0 0 6px;
    color: #5f7d12;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.pw__title {
    margin: 0 0 8px;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 500;
}
.pw__intro {
    margin: 0;
    color: #5c6258;
    font-size: 14px;
    line-height: 1.45;
}
.pw__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 22px 28px;
    overscroll-behavior: contain;
}
.pw__footer {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 28px;
    border-top: 1px solid #cbd5e1;
    background: #f8fafc;
}
.pw__footer-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pw__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-height: 0;
    padding: 0 18px;
    border: 1.5px solid #94a3b8;
    border-radius: 6px;
    background: #fff;
    color: #1e293b;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}
.pw__btn:hover,
.pw__btn:focus-visible {
    background: #f1f5f9;
    border-color: #475569;
    color: #0f172a;
}
.pw__btn--primary {
    height: 42px;
    padding: 0 22px;
    border-color: #5a6e1b;
    background: #5a6e1b;
    color: #fff;
}
.pw__btn--primary:hover,
.pw__btn--primary:focus-visible {
    background: #485914;
    border-color: #485914;
    color: #fff;
}
.pw__btn--primary[disabled] {
    background: #cbd5e1;
    border-color: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
    opacity: 1;
}
.pw__btn--restart {
    height: 40px;
    padding: 0 12px;
    border-color: transparent;
    background: transparent;
    color: #4b5d16;
}
.pw__btn--restart:hover,
.pw__btn--restart:focus-visible {
    border-color: transparent;
    background: #eef3de;
    color: #3a4810;
}
.pw__step-title {
    margin: 0 0 4px;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 500;
}
.pw__step-hint {
    margin: 0 0 16px;
    color: #6b7166;
    font-size: 13px;
    line-height: 1.4;
}
.pw__step-kicker {
    margin: 0 0 12px;
    color: #3f4f11;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.pw__group {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}
.pw__group-title {
    margin: 0 0 10px;
    color: #3f4f11;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.pw__tasks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pw__task {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    min-height: 44px;
    padding: 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
    cursor: pointer;
}
.pw__task:hover {
    border-color: #7c9626;
    background: #fafcf5;
    box-shadow: 0 3px 8px rgba(90, 110, 27, .10);
}
.pw__task.is-selected {
    border: 1.5px solid #5a6e1b;
    background: #f2f7e4;
}
.pw__task input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #5f7d12;
}
.pw__task-text {
    display: block;
    min-width: 0;
}
.pw__task-label {
    display: block;
    color: #111827;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
}
.pw__task-hint {
    display: block;
    margin-top: 4px;
    color: #374151;
    font-size: 13.5px;
    line-height: 1.45;
}
.pw__task.is-selected .pw__task-hint {
    color: #2d3748;
}
.pw__section {
    margin: 0 0 20px;
    padding: 16px;
    border: 1px solid #e0e5d8;
    border-radius: 8px;
    background: #fbfcf8;
}
.pw__section-title {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
}
.pw__options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pw__options--two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.pw__option {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px;
    background: #fff;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
}
.pw__option:hover {
    border-color: #7c9626;
    background: #fafcf5;
}
.pw__option:has(input:checked) {
    border: 1.5px solid #5a6e1b;
    background: #f2f7e4;
}
.pw__option input {
    width: 17px;
    height: 17px;
    accent-color: #5f7d12;
}
.pw__note {
    margin: 10px 0 0;
    color: #6b7166;
    font-size: 12px;
    line-height: 1.45;
}
.pw__stepper {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
}
.pw__stepper button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1.5px solid #94a3b8;
    border-radius: 5px;
    background: #f8fafc;
    color: #1e293b;
    font-weight: 700;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.pw__stepper button:hover,
.pw__stepper button:focus-visible {
    background: #eef3de;
    border-color: #5a6e1b;
}
.pw__stepper input {
    width: 64px;
    height: 44px;
    margin: 0 4px;
    border: 1.5px solid #94a3b8;
    border-radius: 5px;
    background: #fff;
    color: #111827;
    text-align: center;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    -moz-appearance: textfield;
}
.pw__stepper input::-webkit-outer-spin-button,
.pw__stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.pw__result-lead {
    margin: 0 0 16px;
    color: #3e4637;
    font-size: 14px;
    line-height: 1.5;
}
.pw__card {
    position: relative;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
    border: 1px solid #d9dfcf;
    border-radius: 8px;
    background: #fff;
}
.pw__card--primary {
    border-color: #5f7d12;
    box-shadow: 0 0 0 1px #5f7d12 inset;
}
.pw__card + .pw__card {
    margin-top: 10px;
}
.pw__card-image {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.pw__card-image img {
    display: block;
    width: 96px;
    max-height: 96px;
    object-fit: contain;
}
.pw__card-body {
    min-width: 0;
}
.pw__card-category {
    display: inline-block;
    margin: 0 0 6px;
    padding: 3px 7px;
    border-radius: 3px;
    background: #eef4e4;
    color: #4c650d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.pw__card-title {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 500;
}
.pw__card-desc {
    margin: 0 0 10px;
    color: #555d50;
    font-size: 13px;
    line-height: 1.45;
}
.pw__features {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}
.pw__features li {
    position: relative;
    padding-left: 13px;
    color: #454d40;
    font-size: 12px;
    line-height: 1.4;
}
.pw__features li::before {
    position: absolute;
    left: 0;
    color: #5f7d12;
    content: "+";
    font-weight: 700;
}
.pw__pack {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-left: 3px solid #5f7d12;
    background: #f7f9f2;
    font-size: 13px;
    line-height: 1.45;
}
.pw__pack strong {
    display: block;
    margin-bottom: 2px;
}
.pw__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.pw__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    height: 36px;
    min-height: 0;
    padding: 7px 18px;
    border: 1.5px solid #5a6e1b;
    border-radius: 6px;
    background: #5a6e1b;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}
.pw__link:hover,
.pw__link:focus-visible {
    background: #485914;
    border-color: #485914;
}
.pw__link--secondary {
    border-color: #6b8220;
    background: #eef4dc;
    color: #3a4810;
}
.pw__link--secondary:hover,
.pw__link--secondary:focus-visible {
    background: #5a6e1b;
    border-color: #5a6e1b;
    color: #fff;
}
.pw__stores {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.pw__stores a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
}
.pw__stores img {
    display: block;
    width: auto;
    height: 40px;
}
.pw__notice {
    margin: 14px 0 0;
    padding: 12px 16px;
    border: 1px solid #fcd34d;
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
    background: #fffbeb;
    color: #451a03;
    font-size: 13px;
    line-height: 1.4;
}
.pw__notice-title {
    display: block;
    margin-bottom: 6px;
    color: #78350f;
    font-size: 13.5px;
    font-weight: 700;
}
.pw__notice ul {
    margin: 0;
    padding-left: 18px;
    list-style: disc;
}
.pw__notice li {
    margin: 4px 0;
}
.pw__notice li::marker {
    color: #b45309;
}
.pw__addons-title {
    margin: 20px 0 8px;
    font-size: 15px;
    font-weight: 700;
}
.pw__empty {
    color: #6b7166;
    font-size: 14px;
}
.pwTrigger {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
    max-width: 100%;
    margin: 16px 0 24px;
    padding: 12px 18px;
    box-sizing: border-box;
    border: 1.5px solid #b5c985;
    border-left: 4px solid #5a6e1b;
    border-radius: 10px;
    background: #e6efd0;
    box-shadow: 0 2px 6px rgba(75, 93, 22, .08);
}
.pwTrigger__text {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    gap: 16px;
    min-width: 0;
}
.pwTrigger__icon {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #c2d496;
    border-radius: 50%;
    background: #fff;
    color: #4b5d16;
    font-size: 16px;
    font-weight: 700;
}
.pwTrigger__copy {
    display: block;
    min-width: 0;
}
.pwTrigger__title {
    display: block;
    margin: 0 0 2px;
    color: #1a2408;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.3;
}
.pwTrigger__subtitle {
    display: block;
    color: #364415;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.35;
}
.pwTrigger__button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    min-height: 0;
    margin-left: 24px;
    padding: 0 16px;
    border: 1.5px solid #5a6e1b;
    border-radius: 6px;
    background: #fff;
    color: #3f4f11;
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
    cursor: pointer;
}
.pwTrigger__button:hover,
.pwTrigger__button:focus-visible {
    background: #5a6e1b;
    border-color: #5a6e1b;
    color: #fff;
}
.pwTrigger__arrow {
    font-size: 15px;
    line-height: 1;
}
.pwTrigger--home {
    max-width: 100%;
    margin: 0 auto 28px auto;
}
.pwTrigger--shop,
.pwTrigger--products,
.pwTrigger--download {
    margin: 0 0 24px 0;
}
@media (max-width: 760px) {
    .pw {
        align-items: flex-end;
        padding: 0;
        padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
    }
    .pw__dialog {
        max-width: none;
        max-height: 100%;
        border-radius: 14px 14px 0 0;
    }
    .pw__head {
        padding: 22px 56px 12px 18px;
    }
    .pw__title {
        font-size: 21px;
    }
    .pw__body {
        padding: 16px 18px;
    }
    .pw__footer {
        padding: 10px 18px;
    }
    .pw__footer-group {
        flex: 1 1 auto;
    }
    .pw__footer .pw__btn--primary {
        flex: 1 1 100%;
    }
    .pw__footer--step2 {
        flex-wrap: nowrap;
        gap: 8px;
    }
    .pw__footer--step2 .pw__footer-group {
        flex: 0 0 auto;
    }
    .pw__footer--step2 .pw__btn--primary {
        flex: 1 1 auto;
        min-width: 0;
        padding: 0 12px;
    }
    .pw__tasks {
        grid-template-columns: 1fr;
    }
    .pw__options--two {
        grid-template-columns: 1fr;
    }
    .pw__card {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }
    .pw__card-image img {
        width: 56px;
        max-height: 56px;
    }
    .pw__card-title {
        font-size: 16px;
    }

}
@media (max-width: 640px) {
    .pwTrigger {
        flex-wrap: wrap;
        width: 100%;
        gap: 12px;
    }
    .pwTrigger__text {
        flex: 1 1 100%;
        align-items: flex-start;
    }
    .pwTrigger__button {
        width: 100%;
        margin-left: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .pw *,
    .pw *::before,
    .pw *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

