/* =====================================================
   Instant Pricing Engine (homepage)  -  all classes: pe-*
   Font: inherits the site font (Arya)
   ===================================================== */
.pe-section {
    --pe-accent: #16d248;
    --pe-accent-soft: #eafff0;
    --pe-ink: #111;
    --pe-muted: #6b7280;
    --pe-line: #e6e8ee;
    --pe-bg: #f7f8fb;
    padding: 70px 0;
    background: var(--pe-bg);
    font-family: inherit;
    color: var(--pe-ink);
}

.pe-head {
    margin-bottom: 34px;
}
.pe-kicker {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    color: #0c9a33;
    background: var(--pe-accent-soft);
    border-radius: 50px;
    padding: 5px 14px;
    margin-bottom: 12px;
}
.pe-head h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}
.pe-head p {
    color: var(--pe-muted);
    margin: 8px 0 0;
}

.pe-card {
    background: #fff;
    border: 1px solid var(--pe-line);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 34px rgba(20, 30, 60, 0.06);
}
.pe-board {
    position: sticky;
    top: 90px;
    min-height: 380px;
}

/* ---------- steps ---------- */
.pe-eyebrow {
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--pe-muted);
    text-transform: uppercase;
    margin-bottom: 18px;
}
.pe-step {
    margin-bottom: 24px;
}
.pe-step[hidden] {
    display: none;
}
.pe-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}
.pe-num {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 50%;
    background: var(--pe-ink);
    color: #fff;
    font-size: 12px;
    line-height: 24px;
    text-align: center;
}
.pe-sub {
    font-size: 14px;
    font-weight: 700;
    margin: 16px 0 8px;
}
.pe-sub small {
    font-weight: 400;
    color: var(--pe-muted);
}

/* pills (category / brand) */
.pe-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.pe-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--pe-line);
    background: #fff;
    border-radius: 50px;
    padding: 9px 20px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    color: var(--pe-ink);
    cursor: pointer;
    transition: 0.2s;
}
.pe-pill img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.pe-pill:hover {
    border-color: #111;
}
.pe-pill.is-on {
    background: var(--pe-ink);
    border-color: var(--pe-ink);
    color: #fff;
}

/* select */
.pe-select {
    width: 100%;
    height: 48px;
    border: 1.5px solid var(--pe-line);
    border-radius: 12px;
    padding: 0 14px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: var(--pe-ink);
}
.pe-select:focus {
    outline: none;
    border-color: #111;
}

/* single-select option cards */
.pe-opts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.pe-opt {
    text-align: left;
    border: 1.5px solid var(--pe-line);
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    font-family: inherit;
    cursor: pointer;
    transition: 0.2s;
}
.pe-opt b {
    display: block;
    font-size: 15px;
}
.pe-opt span {
    display: block;
    font-size: 12.5px;
    color: var(--pe-muted);
    margin-top: 3px;
    line-height: 1.35;
}
.pe-opt:hover {
    border-color: #111;
}
.pe-opt.is-on {
    border-color: #0c9a33;
    background: var(--pe-accent-soft);
    box-shadow: 0 0 0 3px rgba(22, 210, 72, 0.18);
}

/* yes / no rows */
.pe-yn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--pe-line);
}
.pe-yn:last-child {
    border-bottom: 0;
}
.pe-yn > span {
    font-size: 14.5px;
}
.pe-seg {
    display: inline-flex;
    flex: 0 0 auto;
    border: 1.5px solid var(--pe-line);
    border-radius: 50px;
    overflow: hidden;
}
.pe-seg button {
    border: 0;
    background: #fff;
    padding: 7px 18px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    color: var(--pe-muted);
}
.pe-seg button.is-on {
    background: var(--pe-ink);
    color: #fff;
}

/* chips (accessories / issues / lens) */
.pe-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.pe-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--pe-line);
    background: #fff;
    border-radius: 12px;
    padding: 8px 14px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: 0.2s;
    text-align: left;
}
.pe-chip img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}
.pe-chip:hover {
    border-color: #111;
}
.pe-chip.is-on {
    border-color: #0c9a33;
    background: var(--pe-accent-soft);
}
.pe-chip.is-on::before {
    content: "\2713";
    font-weight: 700;
    color: #0c9a33;
}
.pe-chip.is-bad.is-on {
    border-color: #e03131;
    background: #fff0f0;
}
.pe-chip.is-bad.is-on::before {
    color: #e03131;
    content: "\2715";
}

.pe-lens {
    margin-top: 14px;
    border: 1.5px solid var(--pe-line);
    border-radius: 12px;
    padding: 4px 14px;
}
.pe-lens summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 14.5px;
    padding: 10px 0;
    list-style-position: inside;
}
.pe-lens .pe-chips {
    max-height: 220px;
    overflow-y: auto;
    padding: 4px 0 12px;
}

/* CTA */
.pe-cta {
    width: 100%;
    height: 54px;
    margin-top: 8px;
    background: #111;
    color: #fff;
    border: 2px solid #111;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-family: inherit;
    cursor: pointer;
    transition: 0.25s;
}
.pe-cta:hover:not(:disabled) {
    background: var(--pe-accent);
    border-color: var(--pe-accent);
    color: #111;
}
.pe-cta:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pe-cta-link {
    display: block;
    line-height: 50px;
    text-align: center;
    text-decoration: none;
    color: #fff;
}
.pe-cta-link:hover {
    background: var(--pe-accent);
    border-color: var(--pe-accent);
    color: #111;
}

/* ---------- board ---------- */
.pe-standby {
    text-align: center;
    padding: 40px 10px;
}
.pe-standby .pe-ico {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 18px;
    background: var(--pe-accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.pe-standby h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
.pe-standby p {
    color: var(--pe-muted);
    font-size: 14.5px;
    margin: 0;
}
.pe-preview img {
    width: 100%;
    max-height: 190px;
    object-fit: contain;
    margin: 4px 0 14px;
}
.pe-preview .pe-upto {
    display: inline-block;
    margin-top: 12px;
    background: var(--pe-accent-soft);
    color: #0c7a29;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
}

.pe-r-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.pe-r-top img {
    width: 84px;
    height: 84px;
    object-fit: contain;
    background: #f7f8fb;
    border-radius: 14px;
    padding: 6px;
}
.pe-r-top small {
    color: var(--pe-muted);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.pe-r-top h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 2px 0 0;
    line-height: 1.25;
}
.pe-r-price {
    background: #111;
    color: #fff;
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 16px;
}
.pe-r-price small {
    display: block;
    font-size: 12px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    opacity: 0.7;
}
.pe-amount {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--pe-accent);
}
.pe-lines {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}
.pe-lines li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--pe-line);
    font-size: 14px;
}
.pe-lines li b.is-plus {
    color: #0c9a33;
}
.pe-lines li b.is-minus {
    color: #e03131;
}
.pe-note {
    text-align: center;
    font-size: 13px;
    color: var(--pe-muted);
    margin: 12px 0 0;
}
.pe-link-btn {
    background: none;
    border: 0;
    color: var(--pe-muted);
    text-decoration: underline;
    font-size: 13.5px;
    font-family: inherit;
    cursor: pointer;
    display: block;
    margin: 12px auto 0;
}

.pe-sorry {
    text-align: center;
    padding: 20px 6px;
}
.pe-sorry h4 {
    font-weight: 700;
    margin-bottom: 8px;
}
.pe-sorry p {
    color: var(--pe-muted);
}
.pe-error {
    background: #fff0f0;
    color: #b42318;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    margin-bottom: 12px;
}
.pe-success {
    text-align: center;
    padding: 26px 8px;
}
.pe-success .pe-tick {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--pe-accent);
    color: #111;
    font-size: 30px;
    line-height: 62px;
    margin: 0 auto 14px;
    font-weight: 700;
}

.pe-success .pe-inv {
    font-size: 15px;
    margin-bottom: 6px;
}
.pe-success p {
    color: var(--pe-muted);
    font-size: 14.5px;
}
.pe-success .pe-cta-link {
    margin-top: 10px;
}
.pe-cta-wa {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}
.pe-cta-wa:hover {
    background: #1ebe5a;
    border-color: #1ebe5a;
    color: #fff;
}

/* lead form */
.pe-form-lead label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin: 10px 0 4px;
}
.pe-form-lead input,
.pe-form-lead textarea {
    width: 100%;
    border: 1.5px solid var(--pe-line);
    border-radius: 10px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14.5px;
}
.pe-form-lead input:focus,
.pe-form-lead textarea:focus {
    outline: none;
    border-color: #111;
}
.pe-form-lead .pe-hp {
    position: absolute;
    left: -9999px;
    height: 0;
    width: 0;
    opacity: 0;
}
.pe-form-lead small {
    color: var(--pe-muted);
}

.pe-loading {
    text-align: center;
    padding: 60px 0;
    color: var(--pe-muted);
}
.pe-spin {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid #e6e8ee;
    border-top-color: #111;
    margin: 0 auto 12px;
    animation: peSpin 0.8s linear infinite;
}
@keyframes peSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 991px) {
    .pe-board {
        position: static;
        min-height: 0;
    }
    .pe-section {
        padding: 48px 0;
    }
    .pe-head h2 {
        font-size: 28px;
    }
}
@media (max-width: 575px) {
    .pe-card {
        padding: 20px 16px;
        border-radius: 16px;
    }
    .pe-yn {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .pe-amount {
        font-size: 34px;
    }
}

/* ---------- live pricing (price updates instantly) ---------- */
.pe-board {
    transition: opacity 0.15s ease;
}
.pe-board.is-updating .pe-amount,
.pe-board.is-updating .pe-lines {
    opacity: 0.45;
    transition: opacity 0.15s ease;
}
.pe-live {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 7px;
    border-radius: 50px;
    vertical-align: 1px;
    background: var(--pe-accent);
    color: #111;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}
.pe-live::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 50%;
    background: #111;
    animation: pe-blink 1.2s infinite;
}
@keyframes pe-blink {
    50% {
        opacity: 0.2;
    }
}
.pe-amount-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.pe-delta {
    display: inline-block;
    padding: 3px 11px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 800;
    animation: pe-pop 0.35s ease;
}
.pe-delta.is-up {
    background: rgba(22, 210, 72, 0.18);
    color: #16d248;
}
.pe-delta.is-down {
    background: rgba(255, 90, 90, 0.18);
    color: #ff6b6b;
}
@keyframes pe-pop {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* floating price chip - phones/tablets only (the board sits below the form there) */
.pe-float {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border: 0;
    border-radius: 14px;
    background: #111;
    color: #fff;
    font-family: inherit;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    text-align: left;
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}
.pe-float[hidden] {
    display: none;
}
.pe-float.is-off {
    transform: translateY(140%);
    opacity: 0;
    pointer-events: none;
}
.pe-float small {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #c8ccd4;
}
.pe-float b {
    font-size: 20px;
    color: var(--pe-accent);
}
.pe-float i {
    margin-left: auto;
    font-style: normal;
    font-weight: 700;
    font-size: 13px;
}
@media (min-width: 992px) {
    .pe-float {
        display: none !important;
    }
}

/* ---------- keep the right-hand price card fixed while the left side scrolls ----------
   style.css sets overflow-x:hidden on html/body, which breaks position:sticky.
   "clip" hides sideways overflow the same way but does NOT break sticky. */
@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip !important;
    }
}
@media (min-width: 992px) {
    .pe-section .row > [class*="col-"] {
        align-self: stretch;
    }
    .pe-board {
        position: sticky;
        top: 100px;
        align-self: flex-start;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
}
@media (max-width: 991.98px) {
    .pe-board {
        position: static;
    }
}

/* =====================================================
   Live Transactions strip (right after the banner)
   Markup + data: index.php  (real payments from admin)
   ===================================================== */
.live-ticker-section { background: #fff; padding: 14px 0; }
.live-ticker {
    display: flex; align-items: stretch; overflow: hidden;
    background: #111; border-radius: 50px; box-shadow: 0 8px 24px rgba(20, 30, 60, .12);
}
.lt-label {
    flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
    padding: 14px 20px; background: #16d248; color: #111;
    font-weight: 700; font-size: 13px; letter-spacing: 1.4px; white-space: nowrap;
}
.lt-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #111; }
.lt-dot::after {
    content: ""; position: absolute; inset: -5px; border-radius: 50%;
    border: 2px solid #111; opacity: .6; animation: lt-pulse 1.6s ease-out infinite;
}
@keyframes lt-pulse { 0% { transform: scale(.5); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
.lt-viewport {
    position: relative; flex: 1 1 auto; min-width: 0; overflow: hidden; display: flex; align-items: center;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
.lt-track { display: flex; width: max-content; animation: lt-scroll 60s linear infinite; will-change: transform; }
.live-ticker:hover .lt-track { animation-play-state: paused; }
@keyframes lt-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.lt-item {
    display: flex; align-items: center; gap: 6px; padding: 14px 28px; white-space: nowrap;
    font-size: 14.5px; color: #c8ccd4; border-right: 1px solid rgba(255, 255, 255, .12);
}
.lt-name { color: #fff; font-weight: 700; }
.lt-price { color: #16d248; font-weight: 700; font-size: 15.5px; }
.lt-time { color: #8b93a1; font-size: 12.5px; }
@media (max-width: 575.98px) {
    .lt-label { padding: 12px 12px; font-size: 11px; letter-spacing: .8px; }

    .lt-item { padding: 12px 20px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .lt-track { animation: none; }
    .lt-viewport { overflow-x: auto; }
}

.live-ticker-section[hidden] { display: none !important; }

.lt-demo { margin-left: 6px; padding: 1px 7px; border-radius: 50px; background: #f59e0b; color: #111; font-size: 10px; font-weight: 800; letter-spacing: 1px; }
