/* Portara product-page purchase box (portara-buy.js). Scoped to #smart-button-container. */
#smart-button-container.pbuy { text-align: left; }
#smart-button-container.pbuy .pbuy-grid { display: flex; flex-wrap: wrap; gap: 14px 22px; margin: 6px 0 14px; }
#smart-button-container.pbuy .pbuy-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; color: #66708a; letter-spacing: .04em; text-transform: uppercase; min-width: 220px; }
#smart-button-container.pbuy .pbuy-grid label[hidden] { display: none; }
#smart-button-container.pbuy .pbuy-grid select { font: 15px Oxygen, "Helvetica Neue", Helvetica, Arial, sans-serif; text-transform: none; letter-spacing: 0; font-weight: 400; color: #333; background: #fff; border: 1px solid #ccc; border-radius: 4px; padding: 8px 10px; min-width: 220px; }
#smart-button-container.pbuy .pbuy-grid select:disabled { color: #333; background: #f7f8fa; opacity: 1; }
#smart-button-container.pbuy .pbuy-summary { margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: #333; }
#smart-button-container.pbuy .pbuy-line { display: block; min-height: 22.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#smart-button-container.pbuy .pbuy-product { font-weight: 700; }
#smart-button-container.pbuy .pbuy-note, #smart-button-container.pbuy .pbuy-note a { color: #48b33a; font-weight: 700; font-size: 13.5px; }
#smart-button-container.pbuy .pbuy-note a { text-decoration: underline; }
#smart-button-container.pbuy .pbuy-pricerow { margin-top: 4px; min-height: 42px; }
#smart-button-container.pbuy .pbuy-pricerow b { font-size: 30px; font-weight: 800; line-height: 1.2; color: #48b33a; }   /* the price to pay: bigger, bold, Portara green (Arthur, 3 Oct 2026) */
#smart-button-container.pbuy .pbuy-list { display: inline-block; margin-left: 10px; font-size: 13px; color: #48b33a; font-weight: 700; }
#smart-button-container.pbuy .pbuy-list[hidden] { display: none; }
#smart-button-container.pbuy .pbuy-sku { display: block; font-size: 11.5px; color: #999; font-family: Menlo, Consolas, monospace; margin-top: 2px; }
#smart-button-container.pbuy #paypal-button-container { width: 100%; max-width: 750px; position: relative; }   /* full column width (Arthur, 27 Sep 2026); 750 = the PayPal SDK ceiling for the vertical layout */
/* nudge (Arthur, 26 Sep 2026): greyed PayPal buttons look broken, so an invisible gate over them catches the click and
   points at the tick box instead of doing nothing */
#smart-button-container.pbuy .pbuy-gate { position: absolute; inset: 0; z-index: 2147483000; cursor: pointer; background: transparent; }   /* above PayPal's own button frame, whatever z-index it uses */
/* Portara Data License tick box: the PayPal buttons appear only once it is ticked (Arthur, 26 Sep 2026) */
#smart-button-container.pbuy .pbuy-accept { display: flex; gap: 10px; align-items: flex-start; max-width: 720px; margin: 0 0 14px; padding: 12px 14px; background: #f9f9f9; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; line-height: 1.45; color: #333; font-weight: 400; cursor: pointer; }
#smart-button-container.pbuy .pbuy-accept input { margin: 3px 0 0; width: 18px; height: 18px; flex: 0 0 auto; accent-color: #975be5; cursor: pointer; }
#smart-button-container.pbuy .pbuy-accept a { color: #975be5; text-decoration: underline; font-weight: 700; }
/* start-year slider card (trades-only) */
#smart-button-container.pbuy .pbuy-slider { margin: 0 0 18px; padding: 14px 18px 12px; background: #f8f6fd; border: 1px solid #e3dbf5; border-radius: 10px; max-width: 720px; box-sizing: border-box; }
#smart-button-container.pbuy .pbuy-slider[hidden] { display: none; }
#smart-button-container.pbuy .pbuy-slider-active { border-color: #975be5; box-shadow: 0 0 0 2px rgba(151, 91, 229, .18); }
#smart-button-container.pbuy .pbuy-slider-off { opacity: .55; border-style: dashed; }
#smart-button-container.pbuy .pbuy-slider-off input[type=range] { cursor: not-allowed; }
#smart-button-container.pbuy .pbuy-slider-head { display: block; margin-bottom: 6px; }
#smart-button-container.pbuy .pbuy-slider-title { font-size: 13px; font-weight: 700; color: #66708a; letter-spacing: .04em; text-transform: uppercase; }
#smart-button-container.pbuy .pbuy-slider-rate { display: block; margin-top: 3px; font-size: 13px; line-height: 18px; color: #66708a; min-height: 36px; }   /* two lines reserved: the sentence wraps at some widths and the card must never change height */
#smart-button-container.pbuy .pbuy-slider input[type=range] { display: block; width: 100%; margin: 8px 0 0; accent-color: #975be5; cursor: pointer; direction: rtl; }   /* rtl + the years-back value in buy.js: birth at the left, today at the right, fill to the RIGHT of the thumb = years bought (Arthur, 27 Sep 2026) */
#smart-button-container.pbuy .pbuy-slider-ticks { position: relative; height: 18px; margin: 2px 0 8px; font-size: 11.5px; color: #8a90a3; }
#smart-button-container.pbuy .pbuy-slider-ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
#smart-button-container.pbuy .pbuy-slider-read { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; font-size: 15px; color: #333; min-height: 56px; }   /* nothing is clipped (Arthur, 29 Sep 2026): year + total on the first row, the sum on its own row, free to wrap */
#smart-button-container.pbuy #pbuy-slider-calc { order: 3; flex: 0 0 100%; font-size: 13.5px; line-height: 18px; color: #555; }
#smart-button-container.pbuy .pbuy-slider-read b { font-size: 20px; color: #975be5; }
#smart-button-container.pbuy .pbuy-slider-price { margin-left: auto; font-size: 20px; font-weight: 700; color: #111; transition: color .15s; }
#smart-button-container.pbuy .pbuy-slider-price.pbuy-under { color: #b0b4c0; }
/* the notice row keeps its height when empty so the card never jumps while sliding */
#smart-button-container.pbuy .pbuy-slider-notice { margin-top: 8px; padding: 8px 12px; border-radius: 6px; background: #f9f9f9; border: 1px solid #ddd; color: #111; font-weight: 700; font-size: 13.5px; line-height: 1.45; min-height: 55px; box-sizing: border-box; }
#smart-button-container.pbuy .pbuy-slider-notice[hidden] { display: block; visibility: hidden; }
/* offer row: right-aligned so its price sits under the card price */
#smart-button-container.pbuy .pbuy-slider-offer { display: block; text-align: right; min-height: 40px; margin-top: 2px; font-size: 15px; line-height: 1.3; font-weight: 700; color: #48b33a; }
#smart-button-container.pbuy .pbuy-slider-offer b { font-size: 20px; color: #48b33a; }
#smart-button-container.pbuy .pbuy-slider-notice a { color: #111; text-decoration: underline; }
/* phones: the offer line and the reading row may wrap instead of clipping at the card edge (Arthur, 26 Sep 2026) */
@media (max-width: 640px) {
  #smart-button-container.pbuy .pbuy-slider-offer { white-space: normal; line-height: 1.3; }
  #smart-button-container.pbuy .pbuy-slider-read { flex-wrap: wrap; white-space: normal; overflow: visible; }
}
#smart-button-container.pbuy .pbuy-policy { max-width: 720px; margin: 0 0 12px; font-size: 13px; line-height: 18px; color: #66708a; }   /* no-split / always-to-date policy (27 Sep 2026) */
/* product line = a badge in the Portara Downloader granularity colours (Format templates: Daily Gold, Intraday DarkOrange, Trades Only DodgerBlue, Level 1 Green) - Arthur, 27 Sep 2026 */
#smart-button-container.pbuy .pbuy-product { display: inline-block; max-width: 100%; padding: 5px 12px; border-radius: 6px; font-weight: 700; font-size: 15px; line-height: 20px; min-height: 0; color: #fff; background: #555; }
#smart-button-container.pbuy .pbuy-product.pbuy-g-day { background: #FFD700; color: #222; }
#smart-button-container.pbuy .pbuy-product.pbuy-g-int { background: #FF8C00; }
#smart-button-container.pbuy .pbuy-product.pbuy-g-tto { background: #1E90FF; }
#smart-button-container.pbuy .pbuy-product.pbuy-g-bats { background: #008000; }
#smart-button-container.pbuy .pbuy-line#pbuy-periodline { font-weight: 700; margin-top: 4px; }
/* two fixed control rows, fixed select widths: the box lines up when flicking between the database pages (Arthur, 27 Sep 2026) */
#smart-button-container.pbuy .pbuy-grid { min-height: 62px; align-items: flex-start; }
#smart-button-container.pbuy .pbuy-row1 select { width: 340px; max-width: 100%; }
#smart-button-container.pbuy .pbuy-row1 #pbuy-shape-wrap:not([hidden]) ~ #pbuy-bar-wrap select { width: 190px; }   /* second bars: Bar size beside Format */
#smart-button-container.pbuy #pbuy-period { width: 330px; max-width: 100%; }
#smart-button-container.pbuy #pbuy-form { width: 220px; max-width: 100%; }
#smart-button-container.pbuy .pbuy-intro { min-height: 124px; }   /* four lines reserved: the intro is 3 lines on daily / intraday, 4 on tick pages */
/* licence not ticked and Pay clicked: a subtle red flash around the checkbox only, then nothing (Arthur, 3 Oct 2026) */
#smart-button-container.pbuy .pbuy-accept input.pbuy-flash { animation: pbuyTick .5s ease-out 2; }
@keyframes pbuyTick { 0% { box-shadow: 0 0 0 0 rgba(196, 32, 49, .55); } 100% { box-shadow: 0 0 0 7px rgba(196, 32, 49, 0); } }
