/* Shared number-search widget styles (checkout/number-search.js). Lifted verbatim from the
   canonical /tollfree-number-search/ page. Inherits --brand-* / --text-* custom properties from the
   host page; do not define them here. */
/* ===== V2: SINGLE SEARCH BOX + CHIPS ===== */
.v2-search-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.v2-search-field {
    position: relative;
    flex: 1;
}
.v2-search-box i.fa-search {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.v2-search-box input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s ease;
}
.v2-search-box input:focus { border-color: var(--brand-primary); }
.v2-search-btn {
    background: var(--brand-primary);
    color: white;
    font-family: var(--font-heading);
    font-weight: 600;
    border: none;
    border-radius: 50px;
    padding: 14px 28px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}
.v2-search-btn:hover { background: var(--brand-primary-hover); }

.v2-chip-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 14px 0 8px;
}
.pattern-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.pattern-pill {
    padding: 7px 14px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.82rem;
    color: var(--text-secondary);
    background: var(--bg-white);
    transition: all 0.2s ease;
}
.pattern-pill:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.pattern-pill.selected {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: white;
}

.v2-reveal-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; }
.v2-reveal-link {
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-primary);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.v2-reveal-link:hover { color: var(--brand-primary-hover); }
.v2-reveal-panel { display: none; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border-color); }
.v2-reveal-panel.open { display: block; }

/* Result cards: price + in-stock badge alongside the existing number-card layout */
.number-card { flex-wrap: wrap; }
.number-card-main { display: flex; flex-direction: column; gap: 4px; }
.number-card-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-primary);
}
.number-card-price .price-period { font-weight: 400; color: var(--text-secondary); }
.in-stock-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 50px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    vertical-align: middle;
}

.show-more-wrap { grid-column: 1 / -1; text-align: center; margin-top: 8px; }
.show-more-btn { display: none; }
.show-more-btn.visible { display: inline-flex; }

.reverse-lookup-banner {
    display: none;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
    padding: 12px 16px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    color: var(--text-primary);
}
.reverse-lookup-banner.visible { display: flex; }
.reverse-lookup-banner a {
    color: var(--brand-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

/* ===== STEP 2: 800-NUMBER PLAN LOCK ===== */
.plan-card.plan-locked-active { border-color: var(--brand-primary); }
.plan-card.plan-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.4);
}
.plan-lock-note {
    grid-column: 1 / -1;
    margin: -6px 0 4px;
    padding: 10px 16px;
    background: var(--bg-light);
    border-left: 3px solid var(--brand-primary);
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: none;
}
.plan-lock-note.visible { display: block; }
.plan-lock-note strong { color: var(--brand-dark); }

@media (max-width: 640px) {
    .v2-reveal-links { flex-direction: column; gap: 10px; }
    .v2-search-box { flex-direction: column; align-items: stretch; }
    .v2-search-btn { width: 100%; }
}

.number-card .vanity-letters { color: var(--brand-primary); font-weight: 700; }
.number-card .number-dials-as {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0;
    margin-top: 2px;
}

.number-type-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}
/* Shared-Use (800) info marker — subtle, non-disruptive */
.number-type-label .su-info {
    position: relative; display: inline-flex; align-items: center;
    margin-left: 5px; color: var(--brand-primary); font-size: 0.8rem;
    line-height: 1; cursor: help; vertical-align: middle; text-decoration: none;
}
.number-type-label .su-info:hover { color: var(--brand-primary-hover); }
.su-tip {
    display: none; position: absolute; bottom: calc(100% + 8px); left: -10px;
    width: 250px; max-width: 72vw; background: #1a1a2e; color: #fff;
    font-size: 0.72rem; font-weight: 400; line-height: 1.45; text-align: left;
    padding: 10px 12px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.28);
    z-index: 60; pointer-events: none;
}
.su-tip strong { color: #fff; }
.su-tip::after {
    content: ''; position: absolute; top: 100%; left: 14px;
    border: 6px solid transparent; border-top-color: #1a1a2e;
}
.su-info:hover .su-tip, .su-info:focus .su-tip, .su-info:focus-within .su-tip { display: block; }
