/* ==========================================================================
   Bike Product Formatter — Sales Text Styles
   ========================================================================== */

.bpf-sales-text {
    line-height: 1.75;
    font-size: 1.05em;
    color: #2c2c3a;
}

.bpf-sales-text p {
    margin: 0 0 1.15em 0;
}

.bpf-sales-text p:last-child {
    margin-bottom: 0;
}

.bpf-sales-text p:first-child {
    font-size: 18px;
}

.bpf-sales-text strong {
    font-weight: 650;
    color: #1a1a2e;
}

/* ---------- Loading state ---------- */

.bpf-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    gap: 16px;
    padding: 40px 0;
    font-size: 0.88em;
    color: #555;
    letter-spacing: 0.02em;
}

.bpf-loading-label {
    display: block;
    width: 100%;
    text-align: center;
}

.bpf-loading-dots {
    display: flex;
    gap: 7px;
}

.bpf-loading-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
    animation: bpf-pulse 1.4s ease-in-out infinite;
}

.bpf-loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.bpf-loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bpf-pulse {

    0%,
    80%,
    100% {
        opacity: 0.15;
        transform: scale(0.85);
    }

    40% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ---------- Fade in ---------- */

.bpf-sales-text.bpf-reveal {
    animation: bpf-fade-in 0.6s ease-out forwards;
}

@keyframes bpf-fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- AI Badge ---------- */

.bpf-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.4em;
    font-size: 0.78em;
    color: #888;
    letter-spacing: 0.01em;
}

.bpf-ai-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #555;
    background: linear-gradient(135deg, #f0f0f4, #e4e4ec);
    border: 1px solid #d0d0da;
    border-radius: 5px;
    padding: 2px 7px;
    line-height: 1.5;
}

/* ==========================================================================
   Technical Specs — [bike_teknikk]
   ========================================================================== */

.bpf-specs {
    color: #2c2c3a;
    font-size: 0.95em;
    line-height: 1.6;
}

.bpf-specs-section {
    margin-bottom: 0;
}

.bpf-specs-heading {
    font-size: 0.82em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1a1a2e;
    margin: 0;
    padding: 14px 0 10px 0;
    border-bottom: 1px solid #d5d7de;
}

.bpf-specs-section:first-child .bpf-specs-heading {
    padding-top: 0;
}

.bpf-specs-row {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #eeeff2;
    font-size: 0.9em;
}

.bpf-specs-row:last-child {
    border-bottom: none;
}

.bpf-specs-key {
    color: #71748a;
}

.bpf-specs-value {
    font-weight: 600;
    color: #2c2c3a;
}

/* ---------- Specs responsive ---------- */

@media (max-width: 600px) {
    .bpf-specs-row {
        grid-template-columns: 1fr;
        gap: 1px;
        padding: 7px 0;
    }

    .bpf-specs-key {
        font-size: 0.82em;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }
}

@media (max-width: 520px) {
    .bpf-sales-text p:first-child {
        font-size: 15px !important;
    }

    .bpf-sales-text p {
        font-size: 15px !important;
    }
}

/* ==========================================================================
   Bike Product Formatter — Segmented Controller Tabs Interface
   ========================================================================== */

.bpf-tabs-wrapper {
    margin: 25px 0 35px 0;
    font-family: inherit;
}

.bpf-tabs-header-container {
    position: relative;
    z-index: 40;
    background: #fbfbfb;
    padding: 4px 0;
    border-radius: 50px;
    margin-bottom: 20px;
    transition: all 0.25s ease;
}

.bpf-tabs-header {
    display: inline-flex;
    background: #f1f2f4;
    padding: 5px;
    margin-left: 4px;
    border-radius: 50px;
    gap: 6px;
    max-width: 100%;
}

.bpf-tab-btn {
    background: transparent;
    border: none;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: none !important;
    outline: none;
    font-family: inherit;
    white-space: nowrap;
}

.bpf-tab-btn:hover {
    color: #111;
}

.bpf-tab-btn.bpf-active {
    background: #fff;
    color: #111;
    border-radius: 66px;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

.bpf-tab-content {
    display: none;
    animation: bpf-tab-fade 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bpf-tab-content.bpf-active {
    display: block;
}

@keyframes bpf-tab-fade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Sticky header on mobile ---------- */

@media (max-width: 767px) {
    .bpf-tabs-header-container.bpf-is-stuck {
        position: fixed !important;
        top: 65px;
        left: 0;
        right: 0;
        z-index: 99999;
        margin: 0;
        padding: 10px 16px;
        background: rgba(241, 242, 244, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .bpf-tabs-header-container.bpf-is-stuck .bpf-tabs-header {
        display: flex;
        width: 100%;
    }

    .bpf-tabs-header {
        display: flex;
        width: 100%;
    }

    .bpf-tab-btn {
        flex: 1;
        text-align: center;
        padding: 11px 4px;
        font-size: 14px;
    }
}