/*
 * WIC Printer Finder - Search Focus Fix 1.2
 */

/* Przewijanie i wyróżnienie wyszukiwarki */
.wic-pf .wic-pf-finder-section {
    scroll-margin-top: 110px;
}

.wic-pf .wic-pf-search-card {
    position: relative;
    overflow: hidden;
    border: 2px solid #f2a45a !important;
    background: linear-gradient(135deg, rgba(255, 247, 238, .98), rgba(255, 255, 255, .98)) !important;
    box-shadow:
        0 18px 48px rgba(16, 36, 62, .10),
        0 0 0 5px rgba(244, 119, 33, .06) !important;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.wic-pf .wic-pf-search-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #f47721, #f3a04d, #146fa8);
}

.wic-pf .wic-pf-search-card .wic-pf-section-label {
    color: #c8580d !important;
}

.wic-pf .wic-pf-search-card .wic-pf-section-label::before {
    background: #f47721 !important;
}

.wic-pf .wic-pf-search-card .wic-pf-total-pill {
    border: 1px solid rgba(244, 119, 33, .22);
    background: #fff1e5 !important;
}

.wic-pf .wic-pf-search-card .wic-pf-total-pill strong {
    color: #c8580d !important;
}

.wic-pf .wic-pf-search {
    min-height: 66px !important;
    border: 3px solid #f2a45a !important;
    background: #fff !important;
    box-shadow: 0 0 0 5px rgba(244, 119, 33, .08) !important;
}

.wic-pf .wic-pf-search:hover {
    border-color: #f47721 !important;
}

.wic-pf .wic-pf-search:focus {
    border-color: #e86710 !important;
    background: #fff !important;
    box-shadow:
        0 0 0 6px rgba(244, 119, 33, .17),
        0 10px 26px rgba(16, 36, 62, .08) !important;
}

.wic-pf .wic-pf-search-wrap svg {
    color: #d85e0c !important;
}

.wic-pf .wic-pf-search-card.wic-pf-scroll-highlight {
    border-color: #f47721 !important;
    animation: wicPfSearchPulse 1.7s ease;
}

@keyframes wicPfSearchPulse {
    0% {
        transform: translateY(0);
        box-shadow:
            0 18px 48px rgba(16, 36, 62, .10),
            0 0 0 0 rgba(244, 119, 33, .38);
    }
    35% {
        transform: translateY(-2px);
        box-shadow:
            0 24px 55px rgba(16, 36, 62, .14),
            0 0 0 14px rgba(244, 119, 33, .12);
    }
    100% {
        transform: translateY(0);
        box-shadow:
            0 18px 48px rgba(16, 36, 62, .10),
            0 0 0 5px rgba(244, 119, 33, .06);
    }
}

/* Komunikat po znalezieniu modelu i przycisk zakupu */
.wic-pf .wic-pf-purchase-notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 18px;
    margin: 18px 0 4px;
    padding: 14px 16px;
    border: 1px solid #f3c797;
    border-radius: 14px;
    background: #fff8f1;
    color: #17324d;
    font-size: 15px;
    line-height: 1.5;
}

.wic-pf .wic-pf-purchase-notice strong {
    color: #c8580d;
}

.wic-pf .wic-pf-buy-key-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 17px;
    border: 1px solid #e86710;
    border-radius: 999px;
    background: #f47721;
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 7px 18px rgba(244, 119, 33, .18);
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.wic-pf .wic-pf-buy-key-link:hover,
.wic-pf .wic-pf-buy-key-link:focus {
    background: #d85e0c;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(244, 119, 33, .25);
}

/* Modele prowadzą do zakupu */
.wic-pf .wic-pf-model.wic-pf-buyable-model {
    cursor: pointer !important;
}

.wic-pf .wic-pf-model.wic-pf-buyable-model:hover,
.wic-pf .wic-pf-model.wic-pf-buyable-model:focus {
    border-color: #f47721 !important;
    background: #fff4e9 !important;
    color: #9e4004 !important;
    box-shadow: 0 7px 18px rgba(244, 119, 33, .16) !important;
    transform: translateY(-2px);
    outline: none;
}

/* Instrukcja występuje tylko w nagłówku sekcji Canon */
.wic-pf .wic-pf-canon-manual-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    margin-left: 8px;
    padding: 7px 13px;
    border: 1px solid #176fa5;
    border-radius: 999px;
    background: #fff;
    color: #0e5e91 !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.wic-pf .wic-pf-canon-manual-link:hover,
.wic-pf .wic-pf-canon-manual-link:focus {
    background: #0e5e91;
    color: #fff !important;
    transform: translateY(-1px);
}

@media (max-width: 700px) {
    .wic-pf .wic-pf-finder-section {
        scroll-margin-top: 76px;
    }

    .wic-pf .wic-pf-search-card {
        border-radius: 18px !important;
        box-shadow:
            0 13px 32px rgba(16, 36, 62, .09),
            0 0 0 4px rgba(244, 119, 33, .05) !important;
    }

    .wic-pf .wic-pf-search {
        min-height: 60px !important;
        border-width: 2px !important;
    }

    .wic-pf .wic-pf-purchase-notice {
        align-items: flex-start;
        padding: 14px;
    }

    .wic-pf .wic-pf-buy-key-link {
        width: 100%;
    }

    .wic-pf .wic-pf-brand-heading {
        flex-wrap: wrap;
    }

    .wic-pf .wic-pf-canon-manual-link {
        width: 100%;
        margin: 5px 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wic-pf .wic-pf-search-card,
    .wic-pf .wic-pf-search,
    .wic-pf .wic-pf-model,
    .wic-pf .wic-pf-buy-key-link,
    .wic-pf .wic-pf-canon-manual-link {
        transition: none !important;
    }

    .wic-pf .wic-pf-search-card.wic-pf-scroll-highlight {
        animation: none !important;
    }
}
