/* ===== PRICE ESTIMATOR WIDGET v20260301-clean ===== */
/* Timestamp: 2026-03-01T00:00:00Z */

/* --- Widget Input Bar --- */
.pe-widget {
    margin-top: 22px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.pe-widget-label {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pe-widget-bar {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
    transition: box-shadow 0.3s ease;
}

.pe-widget-bar:focus-within {
    box-shadow: 0 4px 18px rgba(0,0,0,0.18), 0 0 0 2px rgba(255,255,255,0.35);
}

.pe-widget-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2a2a2a;
    background: #fff;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 0;
}

.pe-widget-input::placeholder {
    color: #b8b8b8;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}

.pe-widget-btn {
    padding: 12px 22px;
    background: linear-gradient(135deg, var(--warm-primary) 0%, var(--warm-dark) 100%);
    color: #fff;
    border: none;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.pe-widget-btn:hover {
    opacity: 0.9;
}

.pe-widget-btn:active {
    opacity: 0.8;
}

.pe-widget-btn:disabled {
    opacity: 0.5;
    cursor: wait;
}

.pe-widget-hint {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.45);
    margin-top: 7px;
}

/* --- Overlay --- */
.pe-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.pe-overlay.active {
    display: flex;
}

/* --- Modal Card --- */
.pe-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 370px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.28);
    position: relative;
    animation: peEnter 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
    overflow: hidden;
}

@keyframes peEnter {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Close button */
.pe-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    border: none;
    font-size: 1.3rem;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    color: #999;
    transition: all 0.2s;
    z-index: 2;
}

.pe-modal-close:hover {
    background: var(--warm-primary);
    color: #fff;
}

/* --- Loading State --- */
.pe-loading {
    text-align: center;
    padding: 40px 24px;
    color: #999;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.pe-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #e8e8e8;
    border-top-color: var(--cool-primary);
    border-radius: 50%;
    animation: peSpin 0.7s linear infinite;
}

@keyframes peSpin {
    to { transform: rotate(360deg); }
}

/* --- Error State --- */
.pe-error-msg {
    text-align: center;
    padding: 28px 24px;
    color: var(--warm-primary);
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- Result Header --- */
.pe-result-header {
    background: linear-gradient(135deg, #f9fafb 0%, #f0f1f3 100%);
    padding: 26px 24px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.pe-result-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

/* Rarity badge colors (pill style) */
.pe-badge-common       { background: #6b7280; color: #fff; }
.pe-badge-uncommon     { background: #22c55e; color: #fff; }
.pe-badge-rare         { background: #3b82f6; color: #fff; }
.pe-badge-chase        { background: #f59e0b; color: #fff; }
.pe-badge-super-chase  { background: #dc2626; color: #fff; }

.pe-result-name {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2a2a2a;
    margin: 0 0 4px;
    line-height: 1.3;
}

.pe-result-sub {
    font-size: 0.8rem;
    color: #999;
    margin: 0;
}

/* --- Result Grid --- */
.pe-result-body {
    padding: 20px 24px 24px;
}

.pe-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.pe-result-cell {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 14px 10px;
    text-align: center;
}

.pe-cell-label {
    display: block;
    font-size: 0.63rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.pe-cell-value {
    display: block;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2a2a2a;
}

.pe-cell-value.pe-green { color: #16a34a; }
.pe-cell-value.pe-blue  { color: #3f6f8a; }
.pe-cell-value.pe-muted { font-size: 0.85rem; color: #999; }

/* Confidence note */
.pe-conf {
    text-align: center;
    font-size: 0.72rem;
    color: #aaa;
    margin-bottom: 16px;
}

/* Trend */
.pe-trend {
    text-align: center;
    font-size: 0.78rem;
    color: #6f6f6f;
    margin-bottom: 18px;
    font-weight: 600;
}

/* --- CTA Footer --- */
.pe-cta {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 18px;
}

.pe-cta p {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 10px;
}

.pe-cta-btn {
    display: inline-block;
    padding: 11px 28px;
    background: linear-gradient(135deg, var(--warm-primary) 0%, var(--warm-dark) 100%);
    color: #fff;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(178,65,49,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pe-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(178,65,49,0.4);
}

/* --- Mobile --- */
@media (max-width: 480px) {
    .pe-modal {
        max-width: 100%;
        margin: 0 10px;
    }

    .pe-widget {
        max-width: 100%;
    }

    .pe-result-name {
        font-size: 1.1rem;
    }

    .pe-cell-value {
        font-size: 1rem;
    }
}
/* ===== VARIANT PREVIEW — v20260302 ===== */
/* Timestamp: 2026-03-02T00:00:00Z */

.pe-variants {
    border-top: 1px solid #eee;
    padding-top: 16px;
    margin-bottom: 16px;
}

/* Timestamp: 2026-03-02T00:00:00Z */
.pe-variants-label {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #555;
    text-align: center;
    margin-bottom: 12px;
}

/* Timestamp: 2026-03-02T00:00:00Z */
.pe-variants-cards {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 12px;
}

/* Timestamp: 2026-03-02T00:00:00Z */
.pe-var-card {
    width: 90px;
    text-align: center;
    flex-shrink: 0;
}

/* Timestamp: 2026-03-02T00:00:00Z */
.pe-var-card-img {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    object-fit: cover;
    background: #f4f4f4;
    border: 2px solid #eee;
    transition: border-color 0.2s ease;
}

/* Timestamp: 2026-03-02T00:00:00Z */
.pe-var-card:hover .pe-var-card-img {
    border-color: var(--warm-primary);
}

/* Timestamp: 2026-03-02T00:00:00Z */
.pe-var-card-name {
    font-family: 'Nunito', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: #444;
    margin-top: 5px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Timestamp: 2026-03-02T00:00:00Z */
.pe-var-card-mattel {
    font-family: 'Nunito', sans-serif;
    font-size: 0.58rem;
    color: #999;
    margin-top: 2px;
}

/* Timestamp: 2026-03-02T00:00:00Z */
.pe-variants-cta {
    display: block;
    text-align: center;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--warm-primary);
    text-decoration: none;
    padding: 8px 0;
    transition: opacity 0.2s ease;
}

/* Timestamp: 2026-03-02T00:00:00Z */
.pe-variants-cta:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Timestamp: 2026-03-02T00:00:00Z */
@media (max-width: 480px) {
    .pe-var-card {
        width: 78px;
    }

    .pe-var-card-img {
        width: 78px;
        height: 78px;
    }

    .pe-var-card-name {
        font-size: 0.6rem;
    }
}