/* PRA Offers Widget 2.7.3-VIP-F5.0.28 | MannyGN + Claude */

.pra-title a.pra-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
    border-bottom: 1px solid transparent;
}
.pra-title a.pra-title-link:hover,
.pra-title a.pra-title-link:focus {
    color: var(--pra-cta-bg, #4f46e5);
    text-decoration: none;
    border-bottom-color: currentColor;
    outline: none;
}
.pra-title a.pra-title-link:focus-visible {
    outline: 2px solid var(--pra-cta-bg, #4f46e5);
    outline-offset: 2px;
    border-radius: 2px;
}

.pra-offers-company-title {
    font-size: 1.6rem;
    line-height: 1.25;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #111827;
    letter-spacing: -0.01em;
}
@media (max-width: 600px) {
    .pra-offers-company-title {
        font-size: 1.35rem;
        margin-bottom: 12px;
    }
}

.pra-filter-bar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(15,23,42,.05);
}
.pra-filter-top {
    display: grid;
    
    grid-template-columns: 1fr 1.5fr auto auto;
    gap: 10px;
    align-items: end;
}
.pra-filter-bar--loans .pra-filter-top {
    
    grid-template-columns: 0.9fr 1.4fr 1.2fr auto auto;
}
.pra-fg { display: flex; flex-direction: column; gap: 4px; }
.pra-fg label {
    font-size: .72rem;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.pra-fg input[type="text"],
.pra-fg input[type="number"],
.pra-fg select {
    padding: 8px 11px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: .88rem;
    color: #374151;
    background: #fff;
    height: 38px;
    outline: none;
    width: 100%;
}
.pra-fg input:focus,
.pra-fg select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.08);
}
.pra-range-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pra-fbtn {
    padding: 0 14px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: .88rem;
    font-weight: 500;
    cursor: pointer;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    margin-top: auto;
    transition: all .15s;
}

.pra-fbtn:hover {
    background: #eef2ff;
    border-color: #a5b4fc;
    color: #4f46e5 !important;
}
.pra-fbtn.active { background: #eef2ff; border-color: #a5b4fc; color: #4f46e5 !important; }

.pra-fbtn.pra-filter-reset:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626 !important;
}

.pra-fbtn svg { width: 15px; height: 15px; flex-shrink: 0; }
.pra-adv-cnt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #6366f1;
    color: #fff;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
}

.pra-adv-panel {
    display: none;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #f0f0f0;
}
.pra-adv-panel.open { display: block; }
.pra-adv-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.pra-adv-sec h4 {
    font-size: .7rem;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 0 0 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #f3f4f6;
}
.pra-chk-list { display: flex; flex-direction: column; gap: 5px; }
.pra-chk-item {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-size: .84rem;
    color: #374151;
    user-select: none;
}
.pra-chk-item input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #6366f1;
    cursor: pointer;
    flex-shrink: 0;
}
.pra-adv-footer { display: flex; justify-content: flex-end; margin-top: 12px; }
.pra-adv-reset {
    padding: 5px 13px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    font-size: .8rem;
    cursor: pointer;
    color: #6b7280;
    transition: all .15s;
}
.pra-adv-reset:hover { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }

.pra-bonus-range {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}
.pra-bonus-range__label {
    font-size: .72rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.pra-bonus-range__inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.pra-bonus-range__field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.pra-bonus-range__sublabel {
    font-size: .72rem;
    font-weight: 600;
    color: #6b7280;
    padding-left: 2px;
    line-height: 1;
}
.pra-bonus-range__inputs input[type="number"] {
    width: 100%;
    padding: 6px 9px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: .82rem;
    color: #374151;
    background: #fff;
    height: 32px;
    outline: none;
    -moz-appearance: textfield;
    box-sizing: border-box;
}
.pra-bonus-range__inputs input[type="number"]::-webkit-outer-spin-button,
.pra-bonus-range__inputs input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none; margin: 0;
}
.pra-bonus-range__inputs input:focus { border-color: #6366f1; }

.pra-bonus-range__inputs--mobile input[type="number"] {
    height: 42px;
    font-size: .88rem;
    padding: 9px 12px;
    border-radius: 10px;
}
.pra-bonus-range__inputs--mobile .pra-bonus-range__sublabel {
    font-size: .75rem;
    margin-bottom: 2px;
}

.pra-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: .82rem;
    color: #4b5563;
    margin-bottom: 10px;
    padding: 0 2px;
    min-height: 1.2em;
}
.pra-results-bar strong { color: #374151; }
.pra-update-date {
    
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .78rem;
    color: #6b7280;
    white-space: nowrap;
}
.pra-update-date svg { width: 13px; height: 13px; color: #9ca3af; flex-shrink: 0; }

.pra-update-date__nowrap { white-space: nowrap; }

.pra-filter-info {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 11px 14px;
    margin-bottom: 12px;
    background: #f8fafc;
    border: 0.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: .82rem;
    line-height: 1.5;
    color: #475569;
}
.pra-filter-info__icon {
    flex-shrink: 0;
    color: #64748b;
    margin-top: 1px;
}
.pra-filter-info__icon svg {
    width: 16px;
    height: 16px;
    display: block;
}
.pra-filter-info__text { flex: 1; }
.pra-filter-info__lead--initial,
.pra-filter-info__lead--filtered {
    font-weight: 500;
    color: #334155;
}

.pra-filter-info__lead--filtered { display: none; }
.pra-filter-info.is-filtered .pra-filter-info__lead--initial { display: none; }
.pra-filter-info.is-filtered .pra-filter-info__lead--filtered { display: inline; }

@media (max-width: 600px) {
    .pra-filter-info {
        padding: 9px 11px;
        font-size: .75rem;
        line-height: 1.45;
        margin-bottom: 10px;
    }
    .pra-filter-info__icon svg {
        width: 14px;
        height: 14px;
    }
}

.pra-no-results {
    text-align: center;
    padding: 32px 20px;
    background: #fff;
    border-radius: 18px;
    border: 1px dashed #e5e7eb;
    color: #6b7280;
    font-size: .95rem;
}
.pra-no-results strong { display: block; color: #374151; margin-bottom: 6px; font-size: 1rem; }

.pra-head { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 14px; }
.pra-logo {
    width: var(--pra-logo-w, 80px) !important;
    height: auto !important;
    max-height: var(--pra-logo-h, 40px) !important;
    object-fit: contain;
    border-radius: 14px;
    background: #f9fafb;
    padding: 6px;
    border: 1px solid #e5e7eb;
}
.pra-logo-wrap { display: flex; align-items: center; }
.pra-titlebox { min-width: 0; }

h3.pra-title { margin: 0 0 4px; font-size: 18px; font-weight: 700; line-height: 1.3; color: #0f172a; }
.pra-company { font-size: .9rem; color: #6b7280; }

.pra-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.pra-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 500;
    border: 1px solid transparent;
    white-space: nowrap;
    max-width: 100%;
    text-transform: none !important;
}

.pra-badge--free     { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.pra-badge--nofee    { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.pra-badge--online   { background: #eef2ff; border-color: #c7d2fe; color: #4f46e5; }
.pra-badge--extend   { background: #fef3c7; border-color: #fde68a; color: #92400e; }
.pra-badge--registry { background: #fee2e2; border-color: #fecaca; color: #b91c1c; }
.pra-badge--exekuce  { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.pra-badge--noincome { background: #f5f3ff; border-color: #ddd6fe; color: #6d28d9; }
.pra-badge--cash     { background: #e0f2fe; border-color: #bae6fd; color: #0369a1; }
.pra-badge--fast     { background: #ecfeff; border-color: #a5f3fc; color: #0e7490; }
.pra-badge--weekend  { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
.pra-badge--insolv   { background: #eef2ff; border-color: #c7d2fe; color: #4338ca; }
.pra-badge--app      { background: #f0fdfa; border-color: #99f6e4; color: #115e59; }
.pra-badge--bankid   { background: #faf5ff; border-color: #e9d5ff; color: #7e22ce; }

.pra-body {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 12px;
    margin-top: 16px;
}

.pra-metric {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
}
.pra-metric b {
    display: block;
    font-size: .72rem;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 600;
    line-height: 1.25;
}
.pra-metric span {
    font-family: 'Segoe UI', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 17px;
    line-height: 20px;
    color: #111827;
}
@media (max-width:480px) {
    .pra-metric span { font-size: 15px; line-height: 18px; }
}

.pra-metric i {
    display: block;
    font-style: normal;
    font-size: .72rem;
    color: #9ca3af;
    margin-top: 3px;
    font-weight: 400;
    line-height: 1.3;
}

.pra-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.pra-btn {
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}
.pra-btn--go {
    background: var(--pra-cta-bg, #22c55e);
    color: #ffffff !important;
    box-shadow: 0 8px 24px -4px rgba(34,197,94,0.6);
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none !important;
}
.pra-btn--go:hover {
    filter: brightness(1.05);
    box-shadow: 0 12px 28px -4px rgba(34,197,94,0.75);
    transform: translateY(-2px);
    text-decoration: none !important;
}
.pra-btn--form { background: var(--pra-form-bg, #fff7ed); color: #9a3412; border: 1px solid #fed7aa; }
.pra-btn--form:hover { background: #ffedd5; }
.pra-btn--ghost { background: var(--pra-detail-bg, transparent); color: #111827; }
.pra-btn--ghost:hover { filter: brightness(0.98); }

.pra-more-toggle {
    margin-top: 10px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid #cbd5f5;
    background: #eef2ff;
    font-size: .95rem;
    font-weight: 500;
    cursor: pointer;
    display: block;
    margin-left: auto;
    margin-right: auto;
    color: #1e293b;
}
.pra-more-toggle:hover { background: #e0e7ff; color: #111827; }

@media (max-width: 1024px) {
    
    .pra-filter-top { grid-template-columns: 1fr auto auto; }
    
    .pra-filter-bar--loans .pra-filter-top { grid-template-columns: 1fr 1fr auto auto; }
    .pra-fg:first-child { grid-column: 1 / -1; }
    .pra-adv-grid { grid-template-columns: repeat(2,1fr); }
}

.pra-filter-strip { display: none; }
.pra-overlay-backdrop,
.pra-overlay { display: none; }

@media (max-width: 768px) {
    
    .pra-filter-bar { display: none !important; }

    
    .pra-filter-strip {
        display: flex;
        gap: 8px;
        align-items: center;
        margin-bottom: 10px;
    }
    .pra-search-input {
        flex: 1;
        padding: 10px 13px;
        border-radius: 12px;
        border: 1px solid #e5e7eb;
        font-size: .88rem;
        color: #374151 !important;
        background: #fff;
        outline: none;
        box-shadow: 0 2px 6px rgba(0,0,0,.04);
        -webkit-appearance: none;
    }
    .pra-search-input:focus { border-color: #6366f1; }
    .pra-filter-trigger {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 10px 14px;
        border-radius: 12px;
        border: 1px solid #e5e7eb;
        background: #fff;
        font-size: .88rem;
        font-weight: 600;
        color: #374151 !important;
        cursor: pointer;
        white-space: nowrap;
        box-shadow: 0 2px 6px rgba(0,0,0,.04);
        -webkit-appearance: none;
    }
    .pra-filter-trigger:hover,
    .pra-filter-trigger:active,
    .pra-filter-trigger:focus { background: #f9fafb; color: #374151 !important; outline: none; }
    .pra-filter-trigger.has-active { background: #eef2ff; border-color: #a5b4fc; color: #4f46e5 !important; }
    .pra-filter-trigger svg { width: 15px; height: 15px; flex-shrink: 0; }
    .pra-mob-cnt {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #6366f1;
        color: #fff !important;
        border-radius: 999px;
        font-size: .68rem;
        font-weight: 700;
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
    }

    
    .pra-mob-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        margin-bottom: 8px;
    }
    .pra-mob-tag {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 3px 9px;
        border-radius: 999px;
        background: #eef2ff;
        border: 1px solid #c7d2fe;
        font-size: .72rem;
        color: #4338ca !important;
        font-weight: 500;
    }

    
    .pra-overlay-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15,23,42,.5);
        z-index: 9998;
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s;
    }
    .pra-overlay-backdrop.pra-open { opacity: 1; pointer-events: all; }

    
    .pra-overlay {
        display: flex;
        flex-direction: column;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 85vh;
        background: #fff;
        border-radius: 24px 24px 0 0;
        z-index: 9999;
        transform: translateY(100%);
        transition: transform .3s cubic-bezier(.32,.72,0,1);
        overflow: hidden;
    }
    .pra-overlay.pra-open { transform: translateY(0); }
    .pra-overlay-handle {
        width: 40px;
        height: 4px;
        background: #e5e7eb;
        border-radius: 999px;
        margin: 12px auto 0;
        flex-shrink: 0;
    }
    .pra-overlay-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 18px 10px;
        flex-shrink: 0;
    }
    .pra-overlay-head h3 { font-size: 1rem; font-weight: 700; color: #111827; }
    .pra-overlay-close {
        width: 32px;
        height: 32px;
        border-radius: 999px;
        border: 1px solid #e5e7eb;
        background: #f9fafb;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 1.2rem;
        color: #6b7280 !important;
        line-height: 1;
        -webkit-appearance: none;
    }
    .pra-overlay-close:hover,
    .pra-overlay-close:active { background: #fee2e2; color: #b91c1c !important; }
    .pra-overlay-body {
        overflow-y: auto;
        padding: 0 18px 10px;
        flex: 1;
    }
    .pra-ov-section { margin-bottom: 16px; }
    .pra-ov-label {
        display: block;
        font-size: .72rem;
        font-weight: 700;
        color: #9ca3af;
        text-transform: uppercase;
        letter-spacing: .04em;
        margin-bottom: 6px;
    }
    .pra-ov-section select,
    .pra-ov-section input[type="number"] {
        width: 100%;
        padding: 9px 12px;
        border-radius: 10px;
        border: 1px solid #e5e7eb;
        font-size: .88rem;
        color: #374151 !important;
        background: #fff;
        outline: none;
        height: 42px;
        -webkit-appearance: none;
    }
    .pra-ov-section select:focus,
    .pra-ov-section input[type="number"]:focus { border-color: #6366f1; }
    .pra-ov-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .pra-ov-range-sep { display: flex; align-items: center; justify-content: center; color: #9ca3af; }
    .pra-ov-divider { height: 1px; background: #f3f4f6; margin: 4px 0 16px; }
    .pra-ov-chk-list { display: flex; flex-direction: column; gap: 7px; }
    .pra-ov-chk-item {
        display: flex;
        align-items: center;
        gap: 9px;
        cursor: pointer;
        font-size: .88rem;
        color: #374151 !important;
        padding: 2px 0;
        user-select: none;
    }
    .pra-ov-chk-item input[type="checkbox"] {
        width: 16px;
        height: 16px;
        accent-color: #6366f1;
        cursor: pointer;
        flex-shrink: 0;
    }
    .pra-overlay-footer {
        padding: 14px 18px;
        border-top: 1px solid #f3f4f6;
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 10px;
        flex-shrink: 0;
    }
    .pra-ov-btn {
        padding: 12px;
        border-radius: 12px;
        font-size: .9rem;
        font-weight: 600;
        cursor: pointer;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-appearance: none;
    }
    .pra-ov-btn--reset { background: #f3f4f6; color: #374151 !important; }
    .pra-ov-btn--reset:hover,
    .pra-ov-btn--reset:active { background: #e5e7eb; color: #374151 !important; }
    .pra-ov-btn--apply { background: #22c55e; color: #fff !important; box-shadow: 0 4px 14px -2px rgba(34,197,94,.5); }
    .pra-ov-btn--apply:hover,
    .pra-ov-btn--apply:active { filter: brightness(1.05); color: #fff !important; }

    
    .pra-head { grid-template-columns: 56px 1fr; }
    .pra-logo { width: 56px !important; }
    .pra-badges { grid-column: 1 / -1; justify-content: flex-start; margin-top: 6px; }
    .pra-body { grid-template-columns: repeat(2,minmax(0,1fr)); }

    
    .pra-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .pra-btn          {
        width: 100% !important;
        text-align: center !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .pra-btn--go      { grid-column: 1; grid-row: 1; }
    .pra-btn--ghost   { grid-column: 2; grid-row: 1; }
}

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

.pra-hp-offers-wrap { margin: 12px 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.pra-hp-offers-note { font-size: 13px; color: #64748b; margin-bottom: 12px; text-align: center; }
.pra-hp-offers-note strong { color: #0f172a; font-weight: 700; }
.pra-hp-offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pra-hp-card { background: #fff; border-radius: 12px; padding: 14px; border: 1px solid #e5e7eb; }
.pra-hp-card-header { display: grid; grid-template-columns: 50px 1fr; gap: 10px; align-items: center; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid #f3f4f6; }
.pra-hp-card-logo { display: flex; align-items: center; justify-content: center; height: 42px; border-radius: 6px; overflow: hidden; background: #f8fafc; }
.pra-hp-card-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pra-hp-card-title { min-width: 0; }
.pra-hp-card-name { font-size: 14px; font-weight: 700; color: #0f172a; line-height: 1.25; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; }
.pra-hp-card-firma { font-size: 11px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; }
.pra-hp-card-rows { font-size: 12px; }
.pra-hp-card-rows > div { display: flex; justify-content: space-between; margin-bottom: 5px; align-items: center; }
.pra-hp-card-rows span:first-child { color: #6b7280; }
.pra-hp-card-rows span:last-child { font-weight: 600; color: #0f172a; }
.pra-hp-stars { display: inline-flex; gap: 2px; align-items: center; }
.pra-hp-stars svg { width: 12px; height: 12px; }
.pra-hp-score { display: inline-flex; align-items: center; gap: 6px; }
.pra-hp-score-num { font-weight: 800; color: #0f172a; font-size: 13px; }
.pra-hp-score-num em { font-style: normal; color: #64748b; font-weight: 500; }
.pra-hp-card-btn { display: block; text-align: center; font-size: 12px; padding: 8px; margin-top: 12px; border-radius: 8px; background: #f3f4f6; color: #374151 !important; text-decoration: none; font-weight: 500; transition: background 150ms ease, color 150ms ease; }
.pra-hp-card-btn:hover { background: #e5e7eb; color: #111827 !important; }
.pra-hp-sort-note { font-size: 11px; color: #94a3b8; margin-top: 10px; text-align: center; }

@media (max-width: 768px) {
    .pra-hp-offers { grid-template-columns: 1fr; gap: 10px; }
    .pra-hp-card-header { grid-template-columns: 44px 1fr; }
    .pra-hp-card-logo { height: 38px; }
}
