/* ── Part Finder ─────────────────────────────────────────────────────────── */

.fiveood-part-finder {
    width: 849px;
    max-width: 100%;
    border: 1px solid #B6BCC2;
    border-radius: 8px;
    padding: 24px;
    box-sizing: border-box;
    font-family: inherit;
    background: #fff;
}

/* ── Tabs ── */
.fiveood-pf-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
    gap: 48px;
}

.fiveood-pf-tab {
    background: none !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-bottom: -1px;
    padding: 0 0 4px !important;
    font-size: 18px !important;
    line-height: 26px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    color: #2B2F33 !important;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    text-decoration: none !important;
    text-transform: none !important;
}

.fiveood-pf-tab:hover {
    color: #4C5139 !important;
    background: none !important;
    text-decoration: none !important;
}

.fiveood-pf-tab.is-active {
    color: #4C5139 !important;
    border-bottom: 2px solid #4C5139 !important;
}

/* ── Panels ── */
.fiveood-pf-panel {
    display: none;
}

.fiveood-pf-panel.is-active {
    display: block;
}

/* ── Search Row ── */
.fiveood-pf-search-wrap {
    max-width: 849px;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fiveood-pf-input-row {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.fiveood-pf-input {
    width: 100%;
    height: 48px;
    padding: 0 48px 0 16px;
    font-size: 14px;
    color: #2D2D2D;
    border: 1px solid #D1D1D1;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    background: #F4F5F6;
}

.fiveood-pf-input:focus {
    border-color: #4C5139;
}

.fiveood-pf-input.has-error {
    border-color: #9E2F24;
}

.fiveood-pf-input-error {
    margin: 8px 0 0;
    font-size: 13px;
    color: #9E2F24;
    width: 100%;
    text-align: center;
}

.fiveood-pf-search-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 48px;
    width: 48px;
    background: none !important;
    border: none !important;
    border-radius: 0 4px 4px 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    color: #2B2F33;
    transition: color 0.2s;
}

.fiveood-pf-search-btn:hover {
    color: #4C5139;
    background: none !important;
}

.fiveood-pf-search-btn svg {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}

/* ── Hint ── */
.fiveood-pf-hint {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 22px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fiveood-pf-hint-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none !important;
    text-decoration: none;
    flex-shrink: 0;
    cursor: pointer;
}

.fiveood-pf-hint-icon span {
    font-size: 21px;
    color: #B26749;
}

.fiveood-pf-hint-icon:hover {
    border-color: #4C5139;
    color: #4C5139;
}

/* ── Results Header ── */
.fiveood-pf-results-header {
    margin-bottom: 20px;
}

.fiveood-pf-results-title {
    font-size: 20px;
    font-weight: 700;
    color: #0B0D1D;
    margin: 0 0 4px;
}

.fiveood-pf-results-sub {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* ── Results Grid ── */
.fiveood-pf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .fiveood-pf-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fiveood-pf-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
        padding-bottom: 4px;
    }

    .fiveood-pf-tabs::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 480px) {
    .fiveood-pf-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Product Card ── */
.fiveood-pf-card {
    border: 2px solid #000;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: block;
    background: #E1E3D6;
}

.fiveood-pf-card:hover {
    border-color: #4C5139;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.fiveood-pf-card-img-wrap {
    aspect-ratio: 1;
    overflow: hidden;
    background: #F3F3F3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px;
}

.fiveood-pf-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fiveood-pf-card-img-placeholder {
    width: 60px;
    height: 60px;
    opacity: 0.2;
}

.fiveood-pf-card-body {
    padding: 14px;
}

.fiveood-pf-card-name {
    font-size: 18px;
    font-weight: 600;
    color: #0B0D1D;
    margin: 0 0 6px;
    line-height: 1.4;
}

.fiveood-pf-card-meta {
    margin: 0;
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.fiveood-pf-card-cat {
    font-size: 12px;
    color: #121212;
    background: #C0F381;
    display: inline;
    padding: 2px 4px;
}

.fiveood-pf-card-sku {
    font-size: 12px;
    color: #4C5139;
    font-weight: 600;
}

/* ── States ── */
.fiveood-pf-loading,
.fiveood-pf-empty,
.fiveood-pf-coming-soon {
    padding: 40px 0;
    font-size: 14px;
    color: #888;
    text-align: center;
}

.fiveood-pf-no-results {
    padding: 40px 0;
    font-size: 14px;
    color: #888;
    text-align: center;
}

/* ── Guided Wizard ──────────────────────────────────────────────────────── */

/* Step indicators */
.fiveood-pf-wiz-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 28px;
}

.fiveood-pf-wiz-step {
    text-align: center;
    position: relative;
    min-width: 56px;
}

.fiveood-pf-wiz-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: calc(100% + 4px);
    width: 18px;
    height: 1px;
    background: #ddd;
}

.fiveood-pf-wiz-step-num {
    width: 40px;
    height: 40px;
    margin: 0 auto 6px;
    border-radius: 4px;
    background: #F4F5F6;
    color: #B6BCC2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    line-height: 26px;
}

.fiveood-pf-wiz-step-label {
    font-size: 14px;
    color: #B6BCC2;
    line-height: 1.2;
}

.fiveood-pf-wiz-step.is-active .fiveood-pf-wiz-step-num {
    background: #E1E3D6;
    color: #121212;
}

.fiveood-pf-wiz-step.is-active .fiveood-pf-wiz-step-label {
    color: #121212;
}

/* Wizard panels */
.fiveood-pf-wiz-panel {
    display: none;
}

.fiveood-pf-wiz-panel.is-active {
    display: block;
}

/* Step 1: Select */
.fiveood-pf-wiz-field {
    margin-bottom: 16px;
}

.fiveood-pf-wiz-select-wrap {
    position: relative;
}

.fiveood-pf-wiz-select-wrap::after {
    content: '⌄';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-60%);
    font-size: 14px;
    color: #666;
    pointer-events: none;
}

.fiveood-pf-wiz-select {
    width: 100%;
    height: 40px;
    padding: 0 38px 0 14px;
    border: 1px solid #E2E2DE;
    border-radius: 4px;
    background: #fff;
    color: #222;
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    box-sizing: border-box;
}

.fiveood-pf-wiz-select:focus {
    outline: none;
    border-color: #4C5139;
}

/* Category list */
.fiveood-pf-wiz-cat-list {
    border: 1px solid #E2E2DE;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.fiveood-pf-wiz-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 14px;
    color: #222;
    cursor: pointer;
    border-bottom: 1px solid #EFEFEC;
    transition: background 0.15s;
}

.fiveood-pf-wiz-cat-item:last-child {
    border-bottom: none;
}

.fiveood-pf-wiz-cat-item:hover {
    background: #F8F8F7;
}

.fiveood-pf-wiz-cat-item.is-active {
    background: #ECECE8;
}

.fiveood-pf-wiz-cat-check {
    color: #4C5139;
    font-size: 14px;
    opacity: 0;
}

.fiveood-pf-wiz-cat-item.is-active .fiveood-pf-wiz-cat-check {
    opacity: 1;
}

/* Wizard buttons */
.fiveood-pf-wiz-btn-next {
    width: 100%;
    height: 48px;
    padding: 0 24px !important;
    border: none !important;
    border-radius: 3px !important;
    background: #4C5139 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    text-transform: uppercase !important;
    cursor: pointer;
    box-shadow: none !important;
    transition: background 0.2s;
}

.fiveood-pf-wiz-btn-next:hover:not(:disabled) {
    background: #3a3f2a !important;
}

.fiveood-pf-wiz-btn-next:disabled {
    background: #B6BCC2 !important;
    cursor: not-allowed;
}

.fiveood-pf-wiz-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 20px;
}

.fiveood-pf-wiz-btn-back {
    height: 48px;
    padding: 0 24px !important;
    border: 1px solid #5C5C53 !important;
    border-radius: 3px !important;
    background: #fff !important;
    color: #222 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    text-transform: uppercase !important;
    cursor: pointer;
    box-shadow: none !important;
}

.fiveood-pf-wiz-btn-back:hover {
    background: #F8F8F7 !important;
}

/* Step 2: Product grid */
.fiveood-pf-wiz-heading {
    margin-bottom: 18px;
}

.fiveood-pf-wiz-heading-title {
    font-size: 18px;
    font-weight: 700;
    color: #0B0D1D;
    margin: 0 0 4px;
}

.fiveood-pf-wiz-heading-sub {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.fiveood-pf-wiz-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 8px;
}

.fiveood-pf-wiz-product-card {
    background: #D9D8CF;
    border: 1px solid transparent;
    border-radius: 2px;
    padding: 14px 10px 10px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.fiveood-pf-wiz-product-card.is-active {
    border-color: #4C5139;
}

/* ── Product grid pagination ── */
.fiveood-pf-pagination {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 0 4px;
}

.fiveood-pf-pagination .fiveood-pf-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    background: none;
    border: 1px solid #4C5139;
    color: #4C5139;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border-radius: 0;
    text-transform: none;
    white-space: nowrap;
}

.fiveood-pf-pagination .fiveood-pf-page-btn:hover:not(:disabled) {
    background: #4C5139;
    color: #fff;
}

.fiveood-pf-pagination .fiveood-pf-page-btn:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.fiveood-pf-page-info {
    font-size: 0.85rem;
    color: #555;
    min-width: 56px;
    text-align: center;
}

.fiveood-pf-wiz-product-card:hover {
    border-color: #4C5139;
}

.fiveood-pf-wiz-product-img {
    display: block;
    width: 100%;
    max-width: 100px;
    height: 130px;
    object-fit: contain;
    margin: 0 auto 10px;
}

.fiveood-pf-wiz-product-img-placeholder {
    width: 100px;
    height: 130px;
    margin: 0 auto 10px;
    background: #ECECE8;
}

.fiveood-pf-wiz-product-title {
    margin: 0 0 6px !important;
    font-size: 18px !important;
    line-height: 26px !important;
    color: #121212 !important;
    font-weight: 500 !important;
}

.fiveood-pf-wiz-product-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.fiveood-pf-wiz-product-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    background: #C0F381;
    color: #2D3B0F;
    font-size: 11px;
}

.fiveood-pf-wiz-product-sku {
    font-size: 11px;
    color: #666;
}

/* Step 3: Parts table */
.fiveood-pf-wiz-parts-table-wrap {
    border: 1px solid #D0D0CB;
    background: #fff;
    margin-bottom: 4px;
    overflow-x: auto;
}

.fiveood-pf-wiz-parts-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 420px;
}

.fiveood-pf-wiz-parts-table thead th {
    background: #E7E7E4;
    color: #222;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    padding: 10px 8px;
    border-right: 1px solid #D0D0CB;
    border-bottom: 1px solid #D0D0CB;
}

.fiveood-pf-wiz-parts-table thead th:last-child {
    border-right: none;
}

.fiveood-pf-wiz-parts-table .col-image  { width: 80px; }
.fiveood-pf-wiz-parts-table .col-name   { width: auto; text-align: left; }
.fiveood-pf-wiz-parts-table .col-price  { width: 100px; }
.fiveood-pf-wiz-parts-table .col-qty    { width: 70px; }
.fiveood-pf-wiz-parts-table .col-action { width: 100px; }

.fiveood-pf-wiz-parts-table tbody td {
    border-right: 1px solid #D0D0CB;
    border-bottom: 1px solid #D0D0CB;
    padding: 10px 10px;
    vertical-align: middle;
    background: #F7F7F5;
    text-align: center;
}

.fiveood-pf-wiz-parts-table tbody tr:last-child td {
    border-bottom: none;
}

.fiveood-pf-wiz-parts-table tbody td:last-child {
    border-right: none;
}

.fiveood-pf-wiz-parts-table tbody td.col-name {
    text-align: left;
}

.fiveood-pf-wiz-parts-table tbody td img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.fiveood-pf-wiz-part-img-placeholder {
    width: 52px;
    height: 52px;
    margin: 0 auto;
    background: #ECECE8;
    border: 1px solid #E0E0DA;
}

.fiveood-pf-wiz-part-name {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}

.fiveood-pf-wiz-part-sku {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

.fiveood-pf-wiz-part-price {
    font-size: 14px;
    color: #333;
}

.fiveood-pf-wiz-qty-input {
    width: 54px !important;
    height: 32px !important;
    padding: 0 6px !important;
    border: 1px solid #D0D0CB !important;
    border-radius: 3px !important;
    background: #fff !important;
    font-size: 13px !important;
    text-align: center !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}

.fiveood-pf-wiz-qty-input:focus {
    outline: none !important;
    border-color: #4C5139 !important;
}

.fiveood-pf-wiz-add-btn {
    width: 30px;
    height: 30px;
    border: none !important;
    border-radius: 3px !important;
    background: #4C5139 !important;
    color: #fff !important;
    font-size: 20px !important;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    transition: background 0.2s;
    padding: 0 !important;
}

.fiveood-pf-wiz-add-btn:hover {
    background: #3a3f2a !important;
}

.fiveood-pf-wiz-view-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    padding: 0 24px !important;
    border: none !important;
    border-radius: 3px !important;
    background: #4C5139 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    text-transform: uppercase !important;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: none !important;
    transition: background 0.2s;
}

.fiveood-pf-wiz-view-cart-btn:hover {
    background: #3a3f2a !important;
    color: #fff !important;
}

/* Success screen */
.fiveood-pf-wiz-success-card {
    background: #F7F7F5;
    border: 1px solid #D2D2CC;
    border-radius: 6px;
    padding: 32px 24px 28px;
    text-align: center;
}

.fiveood-pf-wiz-success-icon {
    width: 92px;
    height: 92px;
    display: block;
    margin: 0 auto 24px;
}

.fiveood-pf-wiz-success-title {
    margin: 0 0 24px !important;
    font-size: 20px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    color: #222 !important;
}

.fiveood-pf-wiz-start-over-btn {
    width: 100%;
    height: 48px;
    padding: 0 24px !important;
    border: none !important;
    border-radius: 3px !important;
    background: #4C5139 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    text-transform: uppercase !important;
    cursor: pointer;
    box-shadow: none !important;
    transition: background 0.2s;
}

.fiveood-pf-wiz-start-over-btn:hover {
    background: #3a3f2a !important;
}

.fiveood-pf-wiz-footer-note {
    margin-top: 12px;
    font-size: 12px;
    color: #444;
    padding-left: 4px;
    align-text: center;
}

.fiveood-pf-wiz-footer-note a {
    color: #444;
    text-decoration: underline;
}

/* Empty / loading states */
.fiveood-pf-wiz-empty {
    padding: 24px 0;
    font-size: 14px;
    color: #888;
    text-align: center;
}

@media (max-width: 600px) {
    .fiveood-pf-wiz-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fiveood-pf-wiz-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .fiveood-pf-wiz-product-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Login Notice ────────────────────────────────────────────────────────── */

.gfwe-login-notice {
    padding: 12px;
    text-align: center;
    font-size: 14px;
}

.gfwe-login-notice__link {
    text-decoration: underline;
}
