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

.pra-loans {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
    margin: 0;
    padding: 0;
    --pra-logo-w: 80px;
    --pra-logo-h: 40px;
}

.pra-loan {
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 10px 25px rgba(15,23,42,.06);
    padding: 18px 18px 16px;
    font-size: 16px;
    line-height: 1.5;
}
.pra-loan--hidden { display: none; }

.pra-repr {
    margin-top: 12px;
    padding: 9px 13px;
    border-radius: 11px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    font-size: .82rem;
    color: #6b7280;
    line-height: 1.6;
}
.pra-repr strong { color: #374151; font-weight: 600; margin-right: 4px; }

.pra-details { margin-top: 12px; border-top: 1px dashed #e5e7eb; padding-top: 10px; }
.pra-details summary { cursor: pointer; list-style: none; font-weight: 600; font-size: .95rem; color: #1f2937; }
.pra-details summary::-webkit-details-marker { display: none; }
.pra-details summary .less { display: none; }
.pra-details[open] summary .more { display: none; }
.pra-details[open] summary .less { display: inline; }
.pra-details__content { margin-top: 10px; font-size: .95rem; color: #374151; }
.pra-details__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-bottom: 12px; }
.pra-info-block h4 { margin: 0 0 6px; font-size: 1rem; font-weight: 600; color: #111827; }
.pra-feature-list { list-style: none; padding: 0; margin: 0; }
.pra-feature { display: block !important; font-size: .9rem; margin-bottom: 8px !important; }
.pra-feature::before {
    content: "";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    font-size: .8rem;
    flex-shrink: 0;
    margin-right: 6px;
    vertical-align: middle;
}
.pra-feature--yes::before     { content: "✓"; background: #ecfdf5; color: #15803d; }
.pra-feature--no::before      { content: "✕"; background: #fee2e2; color: #b91c1c; }
.pra-feature--info::before    { content: "i"; background: #eff6ff; color: #1d4ed8; }
.pra-feature--unknown::before { content: "?"; background: #fef3c7; color: #92400e; }
.pra-feature__label { font-weight: 600; color: #111827; }
.pra-feature--unknown .pra-feature__label { font-weight: 400; }
.pra-feature__value { color: #4b5563; margin-left: 4px; }
.pra-feature--unknown .pra-feature__value { font-weight: 400; color: #9ca3af; }
.pra-example { border-radius: 12px; border: 1px dashed #e5e7eb; background: #f9fafb; padding: 10px 12px; font-size: .9rem; }
.pra-example h4 { margin: 0 0 6px; font-size: .95rem; font-weight: 600; }
.pra-example-actions { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

@media (max-width: 1024px) {
    .pra-details__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 768px) {
    .pra-loan { font-size: 15px; padding: 14px 14px 12px; }
    .pra-details__grid { grid-template-columns: 1fr; }
    .pra-details summary { text-align: center; }
    .pra-feature__label { font-size: .88rem; }

    
    .pra-btn--form  { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
}

.pra-loan .pra-head {
    grid-template-columns: 72px 1fr auto;
    align-items: start;
}

.pra-loan .pra-titlebox {
    grid-column: 2;
    align-self: start;
}
.pra-loan .pra-iou {
    grid-column: 3;
    align-self: start;
}
.pra-loan .pra-badges {
    grid-column: 2;
    justify-content: flex-start;
    margin-top: 8px;
}

.pra-iou-bubble {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 0.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: .8rem;
    color: #334155;
    line-height: 1.55;
    margin: 0 0 14px;
    max-width: 100%;
    box-sizing: border-box;
}
.pra-iou-bubble__icon {
    width: 18px;
    height: 18px;
    color: #475569;
    flex-shrink: 0;
    margin-top: 1px;
}
.pra-iou-bubble__body {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    max-width: 100%;
}
.pra-iou-bubble__title {
    display: block;
    margin: 0 0 3px;
    color: #1e293b;
    font-weight: 500;
}

.pra-iou-bubble__short,
.pra-iou-bubble__full { display: none; }
.pra-iou-bubble.is-collapsed .pra-iou-bubble__short { display: inline; }
.pra-iou-bubble:not(.is-collapsed) .pra-iou-bubble__full { display: inline; }

.pra-iou-bubble__toggle,
.pra-iou-bubble__collapse,
.pra-iou-bubble__link {
    color: #1d4ed8;
    font-weight: 500;
    text-decoration: none;
    margin-left: 4px;
    cursor: pointer;
}
.pra-iou-bubble__toggle:hover,
.pra-iou-bubble__collapse:hover,
.pra-iou-bubble__link:hover {
    text-decoration: underline;
}

.pra-iou-bubble__collapse-wrap {
    display: block;
    margin-top: 6px;
}
.pra-iou-bubble__collapse-wrap .pra-iou-bubble__collapse {
    margin-left: 0;
}

.pra-iou {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 9px;
    border-radius: 8px;
    font-size: .72rem;
    background: #f9fafb;
    border: 0.5px solid #e5e7eb;
    white-space: nowrap;
    cursor: help;
    position: relative;
    user-select: none;
    transition: border-color .15s, background .15s;
}
.pra-iou:hover,
.pra-iou:focus-visible {
    border-color: #d1d5db;
    background: #f3f4f6;
    outline: none;
}
.pra-iou:focus-visible {
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25);
}
.pra-iou__label {
    color: #4b5563;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: #9ca3af;
    text-underline-offset: 2px;
    font-weight: 500;
}
.pra-iou__sep {
    display: inline-block;
    width: 1px;
    height: 12px;
    background: #e5e7eb;
}

.pra-iou__info {
    display: none;
}
.pra-iou__stars {
    color: #f59e0b;
    letter-spacing: 1px;
    font-size: .82rem;
    line-height: 1;
}
.pra-iou__star--full   { color: #f59e0b; }
.pra-iou__star--empty  { color: #d1d5db; }
.pra-iou__pill {
    padding: 3px 9px;
    border-radius: 6px;
    font-weight: 500;
    font-size: .72rem;
    border: 0.5px solid transparent;
}

.pra-iou--empty {
    background: #f8fafc;
    border-color: #f1f5f9;
    padding: 6px 10px;
    gap: 5px;
}
.pra-iou--empty:hover,
.pra-iou--empty:focus-visible {
    background: #f1f5f9;
    border-color: #e2e8f0;
}
.pra-iou__empty-text {
    color: #94a3b8;
    font-size: .72rem;
    font-weight: 500;
    font-style: italic;
}

.pra-iou--empty .pra-iou__info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: transparent;
    color: #94a3b8;
    border: 0.5px solid #94a3b8;
    font-size: 9px;
    font-weight: 600;
    font-style: italic;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1;
    position: static;
    box-shadow: none;
    
}

.pra-iou__pill--s90 { background: #10b981; color: #ffffff; }  
.pra-iou__pill--s80 { background: #34d399; color: #064e3b; }  
.pra-iou__pill--s70 { background: #a7f3d0; color: #065f46; }  
.pra-iou__pill--s60 { background: #fde68a; color: #78350f; }  
.pra-iou__pill--s50 { background: #fcd34d; color: #78350f; }  
.pra-iou__pill--s40 { background: #fdba74; color: #7c2d12; }  
.pra-iou__pill--s30 { background: #fca5a5; color: #7f1d1d; }  
.pra-iou__pill--s20 { background: #ef4444; color: #ffffff; }  

.pra-iou-tip {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    border: 0.5px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: .78rem;
    line-height: 1.55;
    color: #111827;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    cursor: default;
    text-align: left;
    font-weight: 400;
}
.pra-iou-tip::before {
    content: "";
    position: absolute;
    top: -5px;
    right: 16px;
    width: 10px;
    height: 10px;
    background: #ffffff;
    border-top: 0.5px solid #d1d5db;
    border-left: 0.5px solid #d1d5db;
    transform: rotate(45deg);
}
.pra-iou-tip__link {
    display: inline-block;
    color: #0369a1;
    font-weight: 500;
    text-decoration: none;
    margin-top: 4px;
}
.pra-iou-tip__link:hover { text-decoration: underline; }

.pra-update-date__row {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.pra-update-date__row--main::before {
    
    content: "·";
    margin: 0 8px 0 4px;
    color: #d1d5db;
    font-weight: 700;
}
.pra-update-date__row svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.pra-update-date__label--desktop { display: inline; }
.pra-update-date__label--mobile  { display: none; }

@media (max-width: 600px) {
    
    .pra-results-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .pra-update-date {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        max-width: 100%;
    }
    .pra-update-date__row {
        text-align: right;
        white-space: normal;
        
        align-items: flex-start;
    }
    .pra-update-date__row svg {
        margin-top: 2px;
    }
    .pra-update-date__row--iou {
        padding-right: 0;
    }
    .pra-update-date__row--main {
        margin-top: 4px;
    }
    
    .pra-update-date__row--main::before {
        display: none;
    }

    
    .pra-loan .pra-head {
        grid-template-columns: 56px 1fr auto;
        column-gap: 10px;
        row-gap: 8px;
    }
    .pra-loan .pra-iou {
        grid-column: 3;
        grid-row: 1;
        align-self: start;
    }
    .pra-loan .pra-badges {
        grid-column: 1 / -1;
        margin-top: 0;
    }

    
    .pra-iou {
        flex-direction: column;
        gap: 3px;
        padding: 5px 7px;
        align-items: center;
    }
    
    .pra-iou__label,
    .pra-iou__sep {
        display: none;
    }
    .pra-iou__info {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: -5px;
        right: -5px;
        width: 15px;
        height: 15px;
        border-radius: 50%;
        background: #0369a1;
        color: #ffffff;
        font-size: 9px;
        font-weight: 600;
        font-style: italic;
        font-family: Georgia, "Times New Roman", serif;
        line-height: 1;
        box-shadow: 0 0 0 1.5px #ffffff;
    }
    .pra-iou__stars { font-size: .9rem; }
    .pra-iou__pill {
        font-size: .7rem;
        padding: 2px 7px;
    }

    
    .pra-iou--empty {
        flex-direction: row;
        padding: 4px 8px;
        gap: 5px;
        align-items: center;
    }
    .pra-iou--empty .pra-iou__empty-text {
        font-size: .66rem;
    }
    .pra-iou--empty .pra-iou__info {
        position: static;
        background: transparent;
        color: #94a3b8;
        border: 0.5px solid #94a3b8;
        box-shadow: none;
        width: 12px;
        height: 12px;
        font-size: 8px;
    }

    
    .pra-iou-tip {
        width: 240px;
        right: -5px;
        max-width: calc(100vw - 50px);
    }
    .pra-iou-tip::before {
        right: 11px;
    }

    
    .pra-iou-bubble {
        padding: 10px 12px;
        font-size: .75rem;
    }
}

@media (max-width: 359px) {
    .pra-update-date__label--desktop { display: none; }
    .pra-update-date__label--mobile  { display: inline; }
}
