/* My IPTV Canada — WordPress-specific styles layered on the Phase 2 stylesheet (source.css).
   Palette: near-black #0a0a0f, charcoal, crimson #dc2626 / #991b1b, white, neutral gray. No gold. */

:root {
  --font-geist-sans: "Geist", "Geist Fallback";
  --font-geist-mono: "Geist Mono", "Geist Mono Fallback";
  --myiptv-crimson: #dc2626;
  --myiptv-crimson-deep: #991b1b;
  --myiptv-ink: #f8fafc;
  --myiptv-canvas: #0a0a0f;
  --myiptv-line: rgba(255, 255, 255, 0.1);
}

html { font-family: var(--font-geist-sans); }
body.myiptv { background-color: var(--myiptv-canvas); color: var(--myiptv-ink); margin: 0; }
[hidden] { display: none !important; }

/* Note: the Phase 2 CSS keys layout off whether .cookie-consent / .nav-drawer EXIST in the DOM
   (React mounted/unmounted them). The theme keeps them in <template> elements and the JS
   mounts/unmounts them the same way, so those rules work unchanged. */

/* WP admin bar must not hide the sticky header for logged-in editors. */
.admin-bar .sticky.top-0 { top: 32px; }
@media (max-width: 782px) { .admin-bar .sticky.top-0 { top: 46px; } }

/* Pricing: secondary "ask first" link under each plan button. */
.price-card-footnote .price-card-ask {
  display: block;
  margin-top: 0.4rem;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.price-card-footnote .price-card-ask:hover { color: #fff; }
.price-card-cta { justify-content: center; }

/* Honeypot */
.myiptv-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Reviews list (records only appear after verification). */
.reviews-filter { display: flex; text-decoration: none; }
.reviews-list { display: grid; gap: 1rem; }
.reviews-card { padding: 1.5rem; }
.reviews-card-stars { display: flex; gap: 0.15rem; color: #f87171; }
.reviews-card-stars svg { width: 1rem; height: 1rem; fill: currentColor; }
.reviews-card-body { margin-top: 0.75rem; color: rgba(255, 255, 255, 0.8); line-height: 1.7; }
.reviews-card-meta { margin-top: 1rem; font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); }
.reviews-pagination { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.reviews-pagination a { min-width: 2.5rem; min-height: 2.5rem; display: grid; place-items: center; border: 1px solid var(--myiptv-line); border-radius: 0.6rem; color: rgba(255, 255, 255, 0.7); }
.reviews-pagination a[aria-current="page"] { border-color: var(--myiptv-crimson); color: #fff; }

/* ---------- WooCommerce checkout, dark and minimal ---------- */
.myiptv-commerce { color: var(--myiptv-ink); }
.myiptv-commerce .woocommerce-notices-wrapper:empty { display: none; }
.myiptv-checkout-summary {
  display: grid; gap: 1.25rem 2rem; padding: 1.5rem; margin-bottom: 2rem;
  grid-template-columns: 1fr auto; align-items: start;
}
.myiptv-checkout-summary h2 { font-size: 1.5rem; font-weight: 600; margin-top: 0.5rem; }
.myiptv-checkout-summary p { color: rgba(255, 255, 255, 0.7); margin-top: 0.4rem; }
.myiptv-checkout-price { display: flex; align-items: baseline; gap: 0.35rem; }
.myiptv-checkout-price span { font-size: 0.9rem; color: #f87171; font-weight: 600; }
.myiptv-checkout-price strong { font-size: 3rem; line-height: 1; font-weight: 700; letter-spacing: -0.04em; }
.myiptv-checkout-price small { color: rgba(255, 255, 255, 0.5); }
.myiptv-checkout-note { grid-column: 1 / -1; display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.9rem; border-top: 1px solid var(--myiptv-line); padding-top: 1rem; margin: 0; }
.myiptv-checkout-note svg { flex: none; width: 1.25rem; height: 1.25rem; color: #f87171; margin-top: 0.1rem; }
.myiptv-checkout-summary .text-link { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 640px) { .myiptv-checkout-summary { grid-template-columns: 1fr; } }

.myiptv-commerce form.checkout { display: grid; gap: 2rem; }
@media (min-width: 1024px) {
  .myiptv-commerce form.checkout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; }
  .myiptv-commerce #order_review_heading, .myiptv-commerce #order_review { grid-column: 2; }
  .myiptv-commerce #customer_details { grid-column: 1; grid-row: 1 / span 3; }
}
.myiptv-commerce .col2-set .col-1, .myiptv-commerce .col2-set .col-2 { width: 100%; float: none; }
.myiptv-commerce h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 1rem; }
.myiptv-commerce .form-row { display: grid; gap: 0.4rem; margin: 0 0 1rem; padding: 0; }
.myiptv-commerce .form-row label { font-size: 0.9rem; font-weight: 500; color: rgba(255, 255, 255, 0.85); }
.myiptv-commerce .form-row .optional { color: rgba(255, 255, 255, 0.45); font-weight: 400; }
.myiptv-commerce .required { color: #f87171; text-decoration: none; }
.myiptv-commerce input.input-text, .myiptv-commerce textarea, .myiptv-commerce select {
  width: 100%; min-height: 3rem; border-radius: 0.75rem; border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.3); color: #fff; padding: 0.75rem 0.9rem; font: inherit;
}
.myiptv-commerce textarea { min-height: 6rem; }
.myiptv-commerce input.input-text:focus, .myiptv-commerce textarea:focus { outline: 2px solid var(--myiptv-crimson); outline-offset: 1px; }
.myiptv-commerce .woocommerce-invalid input.input-text { border-color: #f87171; }
.myiptv-commerce table.shop_table { width: 100%; border-collapse: collapse; border: 1px solid var(--myiptv-line); border-radius: 1rem; overflow: hidden; font-size: 0.95rem; }
.myiptv-commerce table.shop_table th, .myiptv-commerce table.shop_table td { padding: 0.9rem 1rem; border-top: 1px solid var(--myiptv-line); text-align: left; vertical-align: top; }
.myiptv-commerce table.shop_table thead th { border-top: 0; background: rgba(255, 255, 255, 0.04); }
.myiptv-commerce table.shop_table .variation { font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); margin: 0.35rem 0 0; }
.myiptv-commerce table.shop_table .variation dt, .myiptv-commerce table.shop_table .variation dd, .myiptv-commerce table.shop_table .variation p { display: inline; margin: 0; }
.myiptv-commerce #payment { margin-top: 1.25rem; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--myiptv-line); border-radius: 1rem; padding: 1.25rem; }
.myiptv-commerce #payment ul.payment_methods { list-style: none; margin: 0 0 1rem; padding: 0; }
.myiptv-commerce #payment .payment_box { margin-top: 0.6rem; font-size: 0.88rem; color: rgba(255, 255, 255, 0.7); }
.myiptv-commerce #payment .payment_box p { margin: 0; }
.myiptv-commerce .woocommerce-terms-and-conditions-wrapper { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 1rem; }
.myiptv-commerce #place_order {
  width: 100%; min-height: 3.25rem; border: 0; border-radius: 0.85rem; cursor: pointer; font: inherit; font-weight: 600;
  color: #fff; background: linear-gradient(135deg, #dc2626, #991b1b);
}
.myiptv-commerce #place_order:hover { filter: brightness(1.08); }
.myiptv-commerce #place_order:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.myiptv-commerce .woocommerce-error, .myiptv-commerce .woocommerce-message, .myiptv-commerce .woocommerce-info {
  list-style: none; margin: 0 0 1.5rem; padding: 1rem 1.25rem; border-radius: 0.85rem; border: 1px solid var(--myiptv-line); background: rgba(255, 255, 255, 0.04);
}
.myiptv-commerce .woocommerce-error { border-color: rgba(248, 113, 113, 0.5); }
.myiptv-commerce .blockUI.blockOverlay { background: rgba(10, 10, 15, 0.6) !important; }
.myiptv-commerce a:not(.button-primary):not(.button-secondary) { color: #f87171; }

/* Beat WooCommerce's light defaults (woocommerce.css uses .woocommerce form .form-row …). */
.myiptv-commerce.myiptv-commerce .woocommerce form .form-row input.input-text,
.myiptv-commerce.myiptv-commerce .woocommerce form .form-row textarea {
  background: rgba(0, 0, 0, 0.35); color: #fff; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 0.75rem; padding: 0.75rem 0.9rem; line-height: 1.4;
}
.myiptv-commerce.myiptv-commerce .woocommerce form .form-row input.input-text::placeholder,
.myiptv-commerce.myiptv-commerce .woocommerce form .form-row textarea::placeholder { color: rgba(255, 255, 255, 0.38); }
.myiptv-commerce.myiptv-commerce .woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: #f87171; }
.myiptv-commerce.myiptv-commerce .woocommerce-checkout #payment { background: rgba(255, 255, 255, 0.03); border-radius: 1rem; }
.myiptv-commerce.myiptv-commerce .woocommerce-checkout #payment div.payment_box { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.75); border-radius: 0.75rem; }
.myiptv-commerce.myiptv-commerce .woocommerce-checkout #payment div.payment_box::before { border-bottom-color: rgba(255, 255, 255, 0.06); }
.myiptv-commerce.myiptv-commerce .woocommerce-checkout #payment ul.payment_methods { border-bottom-color: var(--myiptv-line); }
.myiptv-commerce.myiptv-commerce .woocommerce table.shop_table { border-color: var(--myiptv-line); color: var(--myiptv-ink); }
.myiptv-commerce.myiptv-commerce .woocommerce table.shop_table td, .myiptv-commerce.myiptv-commerce .woocommerce table.shop_table th { border-top-color: var(--myiptv-line); }
.myiptv-commerce.myiptv-commerce .order-total .amount { color: #fff; font-size: 1.15rem; }
.myiptv-commerce.myiptv-commerce .woocommerce-checkout #payment #place_order { float: none; width: 100%; color: #fff; }
.myiptv-commerce .woocommerce-privacy-policy-text p { font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); }

/* Thank-you hand-off */
.myiptv-thankyou { max-width: 46rem; }
.myiptv-thankyou-lead { margin-top: 1.25rem; font-size: 1.1rem; line-height: 1.7; color: rgba(255, 255, 255, 0.78); }
.myiptv-thankyou-cta { margin-top: 1.75rem; min-height: 3.25rem; }
.myiptv-thankyou-cta svg { width: 1.2rem; height: 1.2rem; }
.myiptv-thankyou-fallback { margin-top: 1rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.55); }
.myiptv-thankyou-recap { margin-top: 2rem; padding: 1.25rem 1.5rem; display: grid; gap: 0.75rem; }
.myiptv-thankyou-recap div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--myiptv-line); padding-bottom: 0.75rem; }
.myiptv-thankyou-recap div:last-child { border-bottom: 0; padding-bottom: 0; }
.myiptv-thankyou-recap dt { color: rgba(255, 255, 255, 0.55); }
.myiptv-thankyou-recap dd { margin: 0; font-weight: 600; text-align: right; }
.myiptv-commerce .woocommerce-order-overview, .myiptv-commerce .woocommerce-order-details, .myiptv-commerce .woocommerce-customer-details, .myiptv-commerce .woocommerce-thankyou-order-received { display: none; }

/* Generic (non-migrated) page content */
.prose-content a { color: #f87171; }
