.ozfa-shell {
    position: relative;
    z-index: 100001;
}

.ozfa-launcher {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 98px;
    height: 98px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    overflow: visible;
}

.ozfa-launcher:hover {
    transform: translateY(-2px);
}

.ozfa-launcher:focus {
    outline: 3px solid rgba(31, 111, 178, 0.35);
    outline-offset: 3px;
}

.ozfa-launcher img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ozfa-launcher span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ozfa-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100001;
    background: rgba(0, 0, 0, 0.48);
}

.ozfa-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100002;
    width: 430px;
    max-width: 95vw;
    height: 100vh;
    color: #1b1f24;
    background: #ffffff;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: translateX(105%);
    transition: transform 0.28s ease;
}

.ozfa-shell.is-open .ozfa-overlay {
    display: block;
}

.ozfa-shell.is-open .ozfa-drawer {
    transform: translateX(0);
}

.ozfa-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 74px;
    padding: 17px 18px;
    background: #111820;
    border-bottom: 4px solid #f5bd22;
}

.ozfa-drawer-head h2 {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 1.18rem !important;
    line-height: 1.15 !important;
    text-shadow: none !important;
}

.ozfa-drawer-head .ozfa-kicker {
    color: #f5bd22;
}

.ozfa-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    cursor: pointer;
}

.ozfa-drawer-close:hover,
.ozfa-drawer-close:focus {
    background: rgba(255, 255, 255, 0.2);
}

.ozfa-drawer-body {
    height: calc(100vh - 74px);
    padding: 16px;
    overflow-y: auto;
    background: #f4f6f8;
}

.oz-fitment-assistant {
    margin-top: 0;
    color: #1b1f24;
    font-family: inherit;
    line-height: 1.35;
    text-align: left;
}

.oz-fitment-assistant * {
    box-sizing: border-box;
}

.ozfa-panel {
    width: 100%;
    padding: 14px;
    background: #ffffff;
    border: 1px solid rgba(20, 20, 20, 0.12);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

.ozfa-drawer .ozfa-panel {
    border: 0;
    box-shadow: none;
}

.ozfa-photo-fallback {
    display: block;
    margin: 12px 0 0 0;
    padding: 10px 12px;
    color: #1f6fb2;
    background: #ffffff;
    border: 1px solid #d8dde3;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
}

.ozfa-photo-fallback:hover,
.ozfa-photo-fallback:focus {
    color: #144f83;
    border-color: #b8c5d2;
    background: #f8fafc;
}

.ozfa-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.ozfa-title {
    margin: 0 !important;
    color: #101418 !important;
    font-size: 1.08rem !important;
    line-height: 1.2 !important;
    text-shadow: none !important;
}

.ozfa-kicker {
    display: block;
    margin-bottom: 2px;
    color: #24743b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ozfa-confidence {
    min-width: 58px;
    padding: 6px 8px;
    color: #10243d;
    background: #eaf3ff;
    border: 1px solid #bfd9fb;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
}

.ozfa-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}

.ozfa-step-dot {
    height: 6px;
    background: #d8dde3;
    border-radius: 999px;
}

.ozfa-step-dot.is-active,
.ozfa-step-dot.is-complete {
    background: #24743b;
}

.ozfa-section {
    display: none;
}

.ozfa-section.is-active {
    display: block;
}

.ozfa-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.ozfa-field {
    display: block;
}

.ozfa-field.ozfa-wide {
    grid-column: 1 / -1;
}

.ozfa-label {
    display: block;
    margin-bottom: 4px;
    color: #343b44;
    font-size: 0.78rem;
    font-weight: 700;
}

.ozfa-select,
.ozfa-input {
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    color: #1b1f24 !important;
    background: #fff !important;
    border: 1px solid #c7cdd4 !important;
    border-radius: 8px;
    font-size: 0.92rem !important;
    line-height: 1.2;
}

.ozfa-select:disabled,
.ozfa-input:disabled {
    color: #69727d !important;
    background: #f2f4f6 !important;
    cursor: not-allowed;
}

.ozfa-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ozfa-choice {
    min-height: 42px;
    padding: 8px 10px;
    color: #16202a;
    background: #f8fafc;
    border: 1px solid #cad1da;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.ozfa-choice:hover,
.ozfa-choice.is-selected {
    color: #ffffff;
    background: #24743b;
    border-color: #24743b;
}

.ozfa-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
}

.ozfa-btn {
    min-height: 40px;
    padding: 0 13px;
    color: #ffffff;
    background: #1f6fb2;
    border: 1px solid #1f6fb2;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
}

.ozfa-btn:hover {
    background: #155e9d;
    border-color: #155e9d;
}

.ozfa-btn:disabled {
    color: #707981;
    background: #eceff2;
    border-color: #d6dbe0;
    cursor: not-allowed;
}

.ozfa-btn-secondary {
    color: #1c2733;
    background: #ffffff;
    border-color: #bfc8d1;
}

.ozfa-btn-secondary:hover {
    color: #1c2733;
    background: #eef2f6;
    border-color: #aeb8c2;
}

.ozfa-status {
    margin-top: 12px;
    padding: 10px;
    background: #f5f7f8;
    border-left: 4px solid #8a98a8;
    border-radius: 6px;
}

.ozfa-status h3 {
    margin: 0 0 5px 0 !important;
    color: #101418 !important;
    font-size: 0.98rem !important;
    line-height: 1.25 !important;
}

.ozfa-status p {
    margin: 0;
    color: #303942;
    font-size: 0.88rem;
}

.ozfa-state-compatible {
    border-left-color: #24743b;
    background: #eff8f1;
}

.ozfa-state-limited {
    border-left-color: #b7791f;
    background: #fff7e8;
}

.ozfa-state-not-suitable {
    border-left-color: #b42318;
    background: #fff1ef;
}

.ozfa-state-confirmation {
    border-left-color: #5b5fc7;
    background: #f2f2ff;
}

.ozfa-list {
    margin: 8px 0 0 0;
    padding-left: 18px;
    color: #2e363f;
    font-size: 0.84rem;
}

.ozfa-products {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
}

.ozfa-product {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 9px;
    min-height: 74px;
    padding: 8px;
    color: #1b1f24;
    background: #ffffff;
    border: 1px solid #d8dde3;
    border-radius: 8px;
    text-decoration: none;
}

.ozfa-product:hover {
    border-color: #1f6fb2;
}

.ozfa-product img {
    width: 62px;
    height: 58px;
    object-fit: cover;
    border-radius: 6px;
    background: #eef2f6;
}

.ozfa-product strong {
    display: block;
    color: #101418;
    font-size: 0.86rem;
    line-height: 1.2;
}

.ozfa-product span {
    display: block;
    margin-top: 3px;
    color: #4c5864;
    font-size: 0.76rem;
}

.ozfa-debug {
    margin-top: 10px;
    border: 1px solid #d8dde3;
    border-radius: 8px;
    overflow: hidden;
}

.ozfa-debug summary {
    padding: 9px 10px;
    color: #16202a;
    background: #eef2f6;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
}

.ozfa-debug pre {
    max-height: 260px;
    margin: 0;
    padding: 10px;
    overflow: auto;
    color: #111827;
    background: #ffffff;
    font-size: 0.75rem;
    line-height: 1.35;
    white-space: pre-wrap;
}

.ozfa-error {
    margin-top: 10px;
    color: #8a1f17;
    font-size: 0.84rem;
    font-weight: 700;
}

@media screen and (max-width: 768px) {
    .ozfa-launcher {
        right: 15px;
        bottom: 18px;
        width: 86px;
        height: 86px;
    }

    .ozfa-drawer {
        width: 100vw;
        max-width: 100vw;
    }

    .ozfa-drawer-body {
        padding: 12px;
    }

    .oz-fitment-assistant {
        margin-top: 0;
    }

    .ozfa-panel {
        padding: 12px;
    }

    .ozfa-head {
        gap: 8px;
    }

    .ozfa-grid,
    .ozfa-choice-grid {
        grid-template-columns: 1fr;
    }

    .ozfa-title {
        font-size: 1rem !important;
    }

    .ozfa-confidence {
        min-width: 52px;
        padding: 5px 7px;
    }
}
