/* Bohlokoa Commerce front-end: forms, product facts, M-Pesa panel, navigation lists.
   Uses the theme's colour tokens when present, with neutral fallbacks for other themes. */
.bkc-form,.bkc-news,.bkc-facts,.bkc-mpesa-panel,.bkc-catnav,.bkc-docsnav,.bkc-licences{--bkc-ink:var(--wp--preset--color--contrast,#0b1220);--bkc-ink2:var(--wp--preset--color--contrast-2,#3a4252);--bkc-ink3:var(--wp--preset--color--contrast-3,#6a7180);--bkc-rule:var(--wp--preset--color--rule,#d9d7d0);--bkc-canvas:var(--wp--preset--color--canvas,#f5f4f0);--bkc-accent:var(--wp--preset--color--accent,#1f5bd8);--bkc-paper:var(--wp--preset--color--base,#fff)}

.bkc-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.bkc-small,.bkc-muted{color:var(--bkc-ink3);font-size:.875rem}

/* Forms */
.bkc-form{display:grid;gap:1rem;max-width:760px}
.bkc-form p{margin:0}
.bkc-form label{display:block;font-size:.875rem;font-weight:600;margin-bottom:.35rem;color:var(--bkc-ink)}
.bkc-form label small{font-weight:400;color:var(--bkc-ink3)}
.bkc-form input:not([type=checkbox]):not([type=hidden]),.bkc-form select,.bkc-form textarea,.bkc-news input[type=email]{width:100%;box-sizing:border-box;font:inherit;font-size:1rem;color:var(--bkc-ink);background:var(--bkc-paper);border:1px solid var(--bkc-rule);border-radius:10px;padding:.75rem .9rem;transition:border-color .15s,box-shadow .15s}
.bkc-form input:focus,.bkc-form select:focus,.bkc-form textarea:focus,.bkc-news input:focus{outline:none;border-color:var(--bkc-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--bkc-accent) 18%,transparent)}
.bkc-form__row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
@media (max-width:640px){.bkc-form__row{grid-template-columns:1fr}}
.bkc-check label{font-weight:400;display:flex;gap:.6rem;align-items:flex-start}
.bkc-check input{margin-top:.3rem}
.bkc-notice{border-radius:12px;padding:1rem 1.2rem;border:1px solid}
.bkc-notice p{margin:0}
.bkc-notice.is-success{background:#ecf7f1;border-color:#9fd4b7;color:#0d4f2c}
.bkc-notice.is-error{background:#fdf0ef;border-color:#f2b8b5;color:#7a1d16}

/* Newsletter */
.bkc-news{display:flex;gap:.5rem;max-width:420px}
.bkc-news input[type=email]{flex:1;min-width:0;border-radius:999px;padding:.7rem 1rem}
.bkc-news .wp-element-button{white-space:nowrap}
.bkc-news-ok{font-weight:600}

/* Product facts */
.bkc-facts{border-top:1px solid var(--bkc-rule);margin-top:1.5rem;padding-top:1rem}
.bkc-facts dl{margin:0;display:grid;gap:0}
.bkc-facts dl>div{display:grid;grid-template-columns:9.5rem 1fr;gap:1rem;padding:.6rem 0;border-bottom:1px solid var(--bkc-rule);font-size:.9375rem}
.bkc-facts dt{color:var(--bkc-ink3)}
.bkc-facts dd{margin:0;color:var(--bkc-ink)}
.bkc-facts__links{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem;margin-top:1rem;font-size:.9375rem;font-weight:600}
.bkc-facts__links a{text-decoration:none}
.bkc-facts__links a::after{content:" →"}
.bkc-quoted{font-family:var(--wp--preset--font-family--serif,Georgia,serif);font-style:italic}
@media (max-width:480px){.bkc-facts dl>div{grid-template-columns:1fr;gap:.15rem}}

/* Catalogue and docs navigation */
.bkc-catnav{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 .5rem}
.bkc-catnav a{display:inline-flex;align-items:center;gap:.45rem;padding:.5rem .95rem;border:1px solid var(--bkc-rule);border-radius:999px;text-decoration:none;color:var(--bkc-ink);font-size:.875rem;font-weight:500;background:var(--bkc-paper)}
.bkc-catnav a span{color:var(--bkc-ink3);font-size:.75rem}
.bkc-catnav a:hover{border-color:var(--bkc-ink)}
.bkc-catnav a[aria-current]{background:var(--bkc-ink);border-color:var(--bkc-ink);color:var(--bkc-paper)}
.bkc-catnav a[aria-current] span{color:inherit;opacity:.7}
.bkc-docsnav ul{list-style:none;margin:0;padding:0;display:grid;gap:.15rem}
.bkc-docsnav ul ul{padding-left:.9rem;margin:.15rem 0 .3rem;border-left:1px solid var(--bkc-rule)}
.bkc-docsnav a{display:block;padding:.35rem .6rem;border-radius:8px;text-decoration:none;color:var(--bkc-ink2);font-size:.9375rem}
.bkc-docsnav a:hover{background:var(--bkc-canvas);color:var(--bkc-ink)}
.bkc-docsnav .current_page_item>a{background:var(--bkc-canvas);color:var(--bkc-ink);font-weight:600}

/* M-Pesa */
.bkc-mpesa-quote{margin:.5rem 0}
.bkc-mpesa-test{font-size:.8125rem;color:#8a5a00}
.bkc-mpesa-fields .wc-block-components-text-input{margin-top:.75rem}
.bkc-mpesa-panel{border:1px solid var(--bkc-rule);border-left:4px solid #e60000;border-radius:14px;padding:1.4rem 1.5rem;background:var(--bkc-paper);margin:1.5rem 0;max-width:640px}
.bkc-mpesa-panel p{margin:.35rem 0}
.bkc-mpesa-panel__eyebrow{font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;font-weight:600;color:var(--bkc-ink3)}
.bkc-mpesa-panel__amount{font-family:var(--wp--preset--font-family--serif,Georgia,serif);font-size:2.25rem;line-height:1.1;color:var(--bkc-ink)}
.bkc-mpesa-panel[data-state=failed] .bkc-mpesa-panel__msg{color:#9b1c13}
.bkc-mpesa-panel[data-state=paid] .bkc-mpesa-panel__msg,.bkc-mpesa-panel.is-paid{color:#0d4f2c}
.bkc-mpesa-panel.is-paid{border-left-color:#1a7f37}
.bkc-mpesa-panel__spinner{width:28px;height:28px;border:3px solid var(--bkc-rule);border-top-color:#e60000;border-radius:50%;animation:bkc-spin .9s linear infinite;margin:.6rem 0}
.bkc-mpesa-panel__small{font-size:.8125rem;color:var(--bkc-ink3)}
@keyframes bkc-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.bkc-mpesa-panel__spinner{animation-duration:3s}}

/* Licences */
.bkc-order-licences{margin:2rem 0}
.bkc-licences{width:100%;border-collapse:collapse;font-size:.9375rem}
.bkc-licences th,.bkc-licences td{text-align:left;padding:.6rem .5rem;border-bottom:1px solid var(--bkc-rule);vertical-align:top}
.bkc-licences th{font-size:.75rem;text-transform:uppercase;letter-spacing:.06em;color:var(--bkc-ink3);font-weight:600}
.bkc-key{font-family:ui-monospace,Menlo,Consolas,monospace;background:var(--bkc-canvas);padding:.2rem .45rem;border-radius:6px;user-select:all;white-space:nowrap}
@media (max-width:640px){.bkc-licences thead{display:none}.bkc-licences tr{display:block;padding:.6rem 0;border-bottom:1px solid var(--bkc-rule)}.bkc-licences td{display:block;border:0;padding:.15rem 0}}

/* Checkout payment options (1.1.1): card first and highlighted, M-Pesa in its red. */
.bkc-pay-label{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.5rem .75rem;width:100%}
.bkc-pay-label__name{font-weight:700}
.bkc-pay-label__note{font-size:.8125rem;color:#6a7180}
.bkc-cards{display:inline-flex;gap:6px;line-height:0}
.bkc-cards svg{display:block}
.bkc-cards-note{font-weight:600;margin:.25rem 0 .5rem}
.wc-block-components-radio-control__label-group:has(.bkc-pay-label){width:100%}
.wc-block-components-radio-control-accordion-option:has(input[value=bohlokoa_dodo]){background:#f3f6ff;box-shadow:inset 0 0 0 2px #1f5bd8;border-radius:8px}
.wc-block-components-radio-control-accordion-option:has(input[value=bohlokoa_mpesa]){border-left:5px solid #e60000}
.wc-block-components-radio-control-accordion-option:has(input[value=bohlokoa_mpesa]:checked){background:#fff4f4;box-shadow:inset 0 0 0 2px #e60000}
.bkc-mpesa-badge{display:inline-block;background:#e60000;color:#fff;font-weight:800;letter-spacing:.02em;padding:.2rem .6rem;border-radius:4px;line-height:1.3}
.wc-block-components-radio-control-accordion-option:has(input[value=bohlokoa_mpesa]) .wc-block-components-radio-control__input:checked{border-color:#e60000}
.wc-block-components-radio-control-accordion-option:has(input[value=bohlokoa_mpesa]) .wc-block-components-radio-control__input:checked:before{background:#e60000}

/* Sale prices (1.1.1): new price leads, old price quiet, campaign tag in black and gold. */
.bkc-sale{display:inline-flex;flex-wrap:wrap;align-items:center;gap:.3rem .6rem;line-height:1.3}
.bkc-sale ins,.bkc-sale__now{text-decoration:none;font-weight:800;color:inherit;background:none}
.bkc-sale__was{font-size:.78em;font-weight:400;opacity:.62;white-space:nowrap}
.bkc-sale__was del{text-decoration-line:line-through;text-decoration-thickness:1px;text-decoration-color:currentColor;opacity:1}
.bkc-sale__tag{display:inline-flex;align-items:center;gap:.3em;background:#111;color:#f3c64b;font-size:.68rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:.28em .75em;border-radius:999px;white-space:nowrap;box-shadow:inset 0 0 0 1px rgba(243,198,75,.35)}
.bkc-sale__spark{font-size:.95em;line-height:1}
.wc-block-components-product-price .bkc-sale{justify-content:inherit}
.wc-block-grid__product-onsale,.wc-block-components-product-sale-badge,.onsale{display:none!important}

/* Pay with row (1.1.2): card badges first, M-Pesa last. */
.bkc-paywith{display:inline-flex;flex-wrap:wrap;align-items:center;gap:.5rem .9rem}
.bkc-paywith__item{display:inline-flex;align-items:center;gap:.4rem}
.bkc-facts .bkc-mpesa-badge{font-size:.8125rem}
