/* The parts of the site that come from the JIB server (shared/live.js, flows.js, product/live.js), in the site's
   own tokens (style.css --j-*). Loaded after shared/pages.css. */

/* header: sign-in and the web version, beside "دریافت جیب" */
.header-account, .header-webapp { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 10px; color: var(--j-ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.header-webapp { border: 1px solid var(--j-boundary); background: var(--j-sheet); }
.header-account:hover, .header-webapp:hover { color: var(--j-blue-text); }
@media (max-width: 760px) { .header-account, .header-webapp { display: none; } }

/* covers from JIB Manager */
.store-cover.has-image, .product-cover.has-image, .mini-cover.has-image { background-size: cover; background-position: center; }
.store-cover b.cover-name { font-size: 15px; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.price-old { color: var(--j-muted); font-weight: 400; font-size: .85em; margin-inline-start: 6px; }

/* product page */
.product-live { max-width: 1080px; }
.product-head { display: flex; gap: 28px; align-items: flex-start; margin-bottom: 24px; }
.product-cover { flex: none; width: 180px; height: 248px; border-radius: 14px; background: #dce8fb; color: #284c8f; display: flex; flex-direction: column; justify-content: space-between; padding: 14px; box-shadow: 0 10px 30px rgba(23,33,47,.16); }
.product-cover b { font: 22px/1.4 EstedadMad, Peyda, sans-serif; }
.product-ident { flex: 1; min-width: 0; }
.product-ident h1 { margin: 6px 0 10px; font: 700 clamp(26px, 4vw, 38px)/1.35 EstedadMad, Peyda, sans-serif; }
.product-desc { color: var(--j-secondary); line-height: 2; white-space: pre-line; }
.product-rating { color: #b7791f; margin: 0 0 8px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.product-tags a { padding: 2px 12px; border-radius: 99px; background: var(--j-blue-tint); color: var(--j-blue-text); font-size: 14px; }
.offer-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.offer-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--j-boundary); border-radius: 12px; cursor: pointer; }
.offer-row:has(input:checked) { border-color: var(--j-blue); box-shadow: 0 0 0 1px var(--j-blue); background: var(--j-blue-tint); }
.offer-row.is-off { opacity: .6; cursor: not-allowed; }
.offer-row > span:not(.offer-price) { flex: 1; display: flex; flex-direction: column; }
.offer-row small { color: var(--j-muted); font-size: 13px; }
.offer-price { display: flex; flex-direction: column; align-items: flex-end; text-align: end; }
.bundle-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.bundle-item { display: flex; flex-direction: column; gap: 6px; color: var(--j-ink); font-size: 14px; }
.mini-cover { width: 100%; aspect-ratio: 3 / 4; border-radius: 10px; background: #dce8fb; color: #284c8f; display: flex; flex-direction: column; justify-content: flex-end; padding: 8px; }
.mini-cover small { display: none; }
.mini-cover b { font-size: 13px; }
.toc-list { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; }
.toc-list li { display: flex; justify-content: space-between; gap: 12px; }
.toc-list small { color: var(--j-muted); }
.review { border-top: 1px solid var(--j-line); padding: 10px 0; }
.review p { margin: 4px 0; }
.review small { color: var(--j-muted); }
@media (max-width: 640px) { .product-head { flex-direction: column; align-items: center; text-align: center; } .product-tags { justify-content: center; } }

/* forms */
.form-error { color: #b93842; margin: 8px 0 0; }
.form-or { display: flex; align-items: center; gap: 10px; color: var(--j-muted); font-size: 14px; margin: 14px 0; }
.form-or::before, .form-or::after { content: ""; flex: 1; height: 1px; background: var(--j-line); }
.google-button { width: 100%; }
.check-row { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 8px; font-weight: 400; }
.page-form select { min-height: 48px; border: 1px solid var(--j-boundary); border-radius: 12px; background: var(--j-sheet); color: var(--j-ink); padding: 8px 12px; font: inherit; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; opacity: 0; }

/* account */
.account-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.account-head h2 { margin: 0; }
.order-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.order-table td { padding: 10px 6px; border-top: 1px solid var(--j-line); }

/* downloads */
.platform-version { display: block; margin-top: 6px; color: var(--j-muted); font-size: 13px; }
a.platform-action { text-decoration: none; }
.product-ident .order-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 20px; }
.product-ident .order-meta > div { display: flex; flex-direction: column; gap: 0; padding: 6px 0; border: 0; }
.product-ident .order-meta dt { color: var(--j-muted); font-size: 13px; }
