/* Printable PDF add-on: cart (view_cart.php), order summary and buy page (buyexam.php) */

/* ---------- Cart: option under each exam ---------- */
.ct-addon { margin-top: 12px; }
.ct-addon-box { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 14px; border: 1px dashed var(--line-2, #c8cdcf); border-radius: var(--r, 4px); background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.ct-addon-box:hover { border-color: var(--accent, #c8102e); }
.ct-addon.is-on .ct-addon-box { border-style: solid; border-color: var(--accent-line, #f4acb0); background: var(--accent-wash, #fff7f8); }
.ct-addon-check { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent, #c8102e); cursor: pointer; }
.ct-addon-ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft, #fdf1f2); color: var(--accent, #c8102e); }
.ct-addon-ico .ct-i { width: 18px; height: 18px; }
.ct-addon-text { flex: 1; min-width: 0; line-height: 1.35; }
.ct-addon-text b { display: block; font-size: 14.5px; font-weight: 500; color: var(--ink, #1f2528); }
.ct-addon-text small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted, #626b70); }
.ct-addon-price { flex: none; font-size: 15px; font-weight: 500; color: var(--accent, #c8102e); white-space: nowrap; }
.ct-addon.is-busy { opacity: .6; pointer-events: none; }
.ct-addon-go { margin-top: 8px; padding: 6px 12px; border: 1px solid var(--line-2, #c8cdcf); border-radius: var(--r-sm, 3px); background: #fff; font: inherit; font-size: 13px; cursor: pointer; }

/* Exam price with the PDF added: "$27.00 + $15.00 PDF" under the total */
.ct-item-price small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--muted, #626b70); text-align: right; }
.ct-sum-items small .ct-sum-pdf { font-weight: 500; color: var(--accent, #c8102e); }

@media (max-width: 575px) {
  /* Phones: give the exam (and its PDF option) the full row width */
  .ct-items .ct-item-ico { display: none; }
  .ct-items .ct-item-main { flex: 1 1 calc(100% - 52px); }
  .ct-items .ct-item-price { margin-left: 0; }
  .ct-addon-box { gap: 10px; padding: 10px 12px; }
  .ct-addon-ico { display: none; }
  .ct-item-price small { display: inline; margin-left: 6px; text-align: left; }
}

/* ---------- Buy page: option in the price card ---------- */
.bx-addon { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 18px; padding: 12px 14px; border: 1px dashed var(--line-2, #c8cdcf); border-radius: var(--r, 4px); background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.bx-addon:hover { border-color: var(--accent, #c8102e); }
.bx-addon.is-on { border-style: solid; border-color: var(--accent-line, #f4acb0); background: var(--accent-wash, #fff7f8); }
.bx-addon input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent, #c8102e); cursor: pointer; }
.bx-addon span { flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; color: var(--muted, #626b70); }
.bx-addon b { display: block; font-size: 15px; font-weight: 500; color: var(--ink, #1f2528); }
.bx-addon em { font-style: normal; font-weight: 500; color: var(--accent, #c8102e); }
.bx-amount small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted, #626b70); }
