/*
 * Owner-approved order flow — docs/demos/simple-order-flow-demo.html
 * (A1 · I1 · C1 · S1 · E1). Product page: fact pills under the title, the
 * "Order — N step" box, Website / Telegram / Email buttons and Buy Now.
 * Pay page (one PDF): "PDF to …" bar with Change, and the Email / Telegram
 * sheet asked once before paying.
 */

/* ---------- Product page: facts as pills (C1) ---------- */
.pt-pdp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 2px;
}

.pt-pdp-fact {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.3;
}

.pt-pdp-fact svg {
    width: 14px;
    height: 14px;
    flex: none;
    color: #64748b;
}

/* ---------- "Sample देखें" pill (S1) ---------- */
.pt-product-detail-wrap .pt-pdp-sample.pt-preview-embed-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 0;
    margin: 0 0 4px;
    padding: 6px 13px 6px 11px;
    border: 1px solid #eaf1ff;
    border-radius: 999px;
    background: #eaf1ff;
    box-shadow: none;
    color: #1d4ed8;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
}

.pt-product-detail-wrap .pt-pdp-sample.pt-preview-embed-btn:hover,
.pt-product-detail-wrap .pt-pdp-sample.pt-preview-embed-btn:focus-visible {
    border-color: #bcd0fb;
    background: #dfe9ff;
    box-shadow: none;
    transform: none;
}

/* ---------- "Order — N step में पूरा होगा" (I1) ---------- */
.pt-pdp-order {
    margin: 18px 0 0;
    padding: 16px;
    border-radius: 14px;
    background: #f8fafc;
}

.pt-pdp-order h2 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
}

.pt-pdp-order-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: pt-order-step;
}

.pt-pdp-order-steps li {
    position: relative;
    display: flex;
    gap: 11px;
    margin: 0;
    padding: 0 0 13px;
    color: #334155;
    font-size: 14px;
    line-height: 1.45;
}

.pt-pdp-order-steps li:last-child {
    padding-bottom: 0;
}

.pt-pdp-order-steps li::before {
    content: counter(pt-order-step);
    counter-increment: pt-order-step;
    display: grid;
    flex: none;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1.5px solid #c7d7fe;
    border-radius: 50%;
    background: #fff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
}

.pt-pdp-order-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 26px;
    bottom: 2px;
    left: 11.5px;
    width: 1.5px;
    background: #dbe5fb;
}

.pt-pdp-order-steps b {
    display: block;
    color: #0f172a;
    font-weight: 800;
}

.pt-pdp-order-steps small {
    display: block;
    margin-top: 1px;
    color: #64748b;
    font-size: 12.5px;
}

.pt-pdp-order-info {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 14px 0 0;
    padding: 12px 0 0;
    border-top: 1px dashed #d5deea;
    color: #334155;
    font-size: 13px;
    line-height: 1.5;
}

.pt-pdp-order-info::before {
    content: "i";
    display: grid;
    flex: none;
    place-items: center;
    width: 17px;
    height: 17px;
    margin-top: 1px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font: italic 800 11px/1 Georgia, serif;
}

/* ---------- Website / Telegram / Email (A1) ---------- */
.pt-pdp-routes {
    display: grid;
    grid-template-columns: repeat(var(--pt-route-cols, 3), minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 0;
}

.pt-pdp-route {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin: 0;
    padding: 12px 6px 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #334155;
    font: inherit;
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
    cursor: pointer;
}

.pt-pdp-route:hover {
    border-color: #c7d7fe;
    background: #fff;
    color: #334155;
}

.pt-pdp-route__ic {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #f1f5f9;
    color: #64748b;
}

.pt-pdp-route__ic svg {
    width: 17px;
    height: 17px;
}

.pt-pdp-route__tick {
    position: absolute;
    top: -8px;
    right: -8px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #2563eb;
    box-shadow: 0 0 0 2px #fff;
    color: #fff;
    opacity: 0;
    transform: scale(.6);
    transition: opacity .15s, transform .15s;
}

.pt-pdp-route__tick svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pt-pdp-route.is-on {
    border-color: #2563eb;
    background: #f5f8ff;
    color: #1d4ed8;
}

.pt-pdp-route.is-on .pt-pdp-route__ic {
    background: #2563eb;
    color: #fff;
}

.pt-pdp-route.is-on .pt-pdp-route__tick {
    opacity: 1;
    transform: none;
}

.pt-pdp-routes.is-error .pt-pdp-route {
    border-color: #fca5a5;
}

.pt-pdp-routes.is-shake {
    animation: pt-route-shake .35s;
}

@keyframes pt-route-shake {
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(3px); }
}

.pt-pdp-route-error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 9px 0 0;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 800;
}

.pt-pdp-route-error::before {
    content: "!";
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
}

.pt-pdp-route-error[hidden] {
    display: none;
}

.pt-product-detail-wrap .pt-pdp-buy--order {
    margin-top: 16px;
    padding-top: 0;
    border-top: 0;
}

.pt-pdp-buy--order .pt-pdp-buy-now {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 900;
}

.pt-pdp-buy--order .pt-pdp-buy-now.is-off {
    opacity: .5;
}

/* "About this product": the fact rows sit under the description. */
.pt-pdp-description .pt-facts {
    margin-top: 12px;
}

/* ---------- Pay page (one PDF): where the PDF goes ---------- */
.pt-ps-route {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 11px 14px;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    background: #fff;
    color: #475569;
    font-size: 14px;
    line-height: 1.4;
}

.pt-ps-route[hidden] {
    display: none;
}

.pt-ps-route__ic {
    display: inline-grid;
    flex: none;
    color: #2563eb;
}

.pt-ps-route__ic svg {
    width: 18px;
    height: 18px;
}

.pt-ps-route__text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.pt-ps-route__text b {
    color: #0f172a;
}

.pt-ps-route__change {
    flex: none;
    margin: 0 0 0 auto;
    padding: 0;
    border: 0;
    background: none;
    color: #1d4ed8;
    font: inherit;
    font-weight: 800;
    text-decoration: underline;
    cursor: pointer;
}

.pt-ps-route__change[hidden] {
    display: none;
}

.pt-ps-ok {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 6px;
    padding: 1px 8px 1px 6px;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-size: 12px;
    font-weight: 800;
    vertical-align: 1px;
}

.pt-ps-ok svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pt-ps-pick {
    margin: 0 0 14px;
}

.pt-ps-pick .pt-pdp-routes {
    margin-top: 0;
}

.pt-ps-pick[hidden] {
    display: none;
}

/* ---------- Pay page: Email / Telegram sheet ---------- */
.pt-ps-shade {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgb(15 23 42 / 45%);
}

.pt-ps-shade[hidden] {
    display: none;
}

body.pt-ps-open {
    overflow: hidden;
}

.pt-ps-sheet {
    box-sizing: border-box;
    width: 100%;
    max-width: 480px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 16px 18px 22px;
    border-radius: 18px 18px 0 0;
    background: #fff;
    color: #0f172a;
}

.pt-ps-sheet [hidden] {
    display: none !important;
}

.pt-ps-grab {
    width: 38px;
    height: 4px;
    margin: 0 auto 14px;
    border-radius: 4px;
    background: #e2e8f0;
}

.pt-ps-title {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
}

.pt-ps-why {
    margin: -6px 0 12px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.pt-ps-efield {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 50px;
    padding: 0 6px 0 13px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    transition: border-color .15s;
}

.pt-ps-efield:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px #dbe7ff;
}

.pt-ps-efield.is-good {
    border-color: #16a34a;
}

.pt-ps-efield.is-bad {
    border-color: #dc2626;
}

.pt-ps-efield svg {
    width: 18px;
    height: 18px;
    flex: none;
    color: #94a3b8;
}

.pt-ps-efield input[type="email"] {
    flex: 1;
    min-width: 0;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #0f172a;
    font: inherit;
    font-size: 16px;
}

.pt-ps-eclear {
    display: grid;
    flex: none;
    place-items: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.pt-ps-ehint {
    margin: 8px 2px 0;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 700;
}

.pt-ps-steps {
    margin: 0 0 4px;
    padding: 0 0 0 20px;
    color: #334155;
    font-size: 14px;
    line-height: 1.8;
}

.pt-ps-btn {
    display: block;
    width: 100%;
    min-height: 50px;
    margin: 14px 0 0;
    border: 0;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}

.pt-ps-btn:disabled {
    opacity: .7;
    cursor: default;
}

.pt-ps-btn--tg {
    background: #229ed9;
}

.pt-ps-skip {
    display: block;
    margin: 14px auto 0;
    padding: 4px;
    border: 0;
    background: none;
    color: #64748b;
    font: inherit;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

.pt-ps-done {
    padding: 4px 0 0;
    text-align: center;
}

.pt-ps-done .pt-ps-why {
    margin-top: -4px;
}

.pt-ps-done__tick {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 0 10px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
}

.pt-ps-done__tick svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* A computer gets a centred box instead of a bottom sheet. */
@media (min-width: 720px) {
    .pt-ps-shade {
        align-items: center;
    }

    .pt-ps-sheet {
        border-radius: 18px;
    }

    .pt-ps-grab {
        display: none;
    }
}
