/* Edvera LMS — buy button, checkout and receipt. Inherits the theme's fonts and colours where it
   can; every colour is a variable a theme can override. Accent, corners and font default to
   Settings → Appearance (--edv-brand-*, edvera_brand_css()). Secondary text (--edv-muted) is the
   theme's text colour at 80% (readable on light and dark themes; plain text colour without
   color-mix() support). */
.edv-buy,.edv-checkout{--edv-accent:var(--edv-brand-accent,#17b8a6);--edv-accent-ink:var(--edv-brand-on-accent,#06231f);--edv-ink:currentColor;--edv-line:rgba(127,127,127,.35);--edv-muted:color-mix(in srgb,currentColor 80%,transparent);--edv-ok:#256b29;--edv-ok-bg:#edf7ee;--edv-bad:#a3261b;--edv-radius:min(12px,var(--edv-brand-radius,999px));font-family:var(--edv-font-stack)}
.edv-buy{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:1em 0}
.edv-buy-price{margin:0;font-size:1.25em}
.edv-buy-price del{color:var(--edv-muted);font-weight:400;margin-inline-end:.3em}
.edv-buy-note{margin:0;color:var(--edv-muted)}
.edv-buy-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.6em 1.6em;border-radius:min(999px,var(--edv-brand-radius,999px));background:var(--edv-accent);color:var(--edv-accent-ink);font-weight:700;text-decoration:none;border:0;cursor:pointer;font:inherit;font-weight:700}
.edv-buy-btn:hover,.edv-buy-btn:focus-visible{filter:brightness(.92)}
.edv-buy-btn[disabled]{opacity:.6;cursor:wait}
.edv-checkout{max-width:640px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
.edv-co-form{display:flex;flex-direction:column;gap:14px}
.edv-co-h{font-size:1.2em;margin:.6em 0 0}
.edv-co-items{list-style:none;margin:0;padding:0;border:1px solid var(--edv-line);border-radius:var(--edv-radius)}
.edv-co-items li{display:flex;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid var(--edv-line)}
.edv-co-items li:last-child{border-bottom:0}
.edv-co-title{flex:1;min-width:0}
.edv-co-price{font-variant-numeric:tabular-nums;white-space:nowrap}
.edv-co-remove{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;text-decoration:none;font-size:1.3em;line-height:1;color:var(--edv-muted);border-radius:50%}
.edv-co-remove:hover,.edv-co-remove:focus-visible{background:var(--edv-line)}
.edv-co-hp{position:absolute!important;inset-inline-start:-9999px;width:1px;height:1px;overflow:hidden}
.edv-co-error:focus{outline:none}
.edv-co-start{margin-inline-start:.6em;font-size:.9em}
.edv-co-total{display:flex;justify-content:space-between;margin:0;font-size:1.1em}
.edv-co-row{display:flex;gap:8px}
.edv-co-row input{flex:1;min-width:0}
.edv-co-field{display:flex;flex-direction:column;gap:4px}
.edv-co-field input,.edv-co-row input{padding:.6em .8em;border:1px solid var(--edv-line);border-radius:var(--edv-radius);font:inherit;min-height:44px;box-sizing:border-box}
.edv-co-apply{padding:.6em 1em;border:1px solid var(--edv-line);border-radius:var(--edv-radius);background:transparent;font:inherit;cursor:pointer}
.edv-co-hint,.edv-co-coupon-msg,.edv-co-who{margin:0;color:var(--edv-muted);font-size:.9em}
.edv-co-gw{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border:1px solid var(--edv-line);border-radius:var(--edv-radius);cursor:pointer}
.edv-co-gw input{flex:0 0 auto;margin-block:.25em 0;margin-inline:0}
.edv-co-gw span{display:flex;flex-direction:column;gap:2px}
.edv-co-gw small{color:var(--edv-muted)}
.edv-co-gw:has(input:checked){border-color:var(--edv-accent);box-shadow:0 0 0 1px var(--edv-accent)}
.edv-co-terms{display:flex;gap:8px;align-items:flex-start}
.edv-co-error{margin:0;color:var(--edv-bad);font-weight:600;min-height:1em}
.edv-co-notice{margin:0;padding:12px 14px;border-radius:var(--edv-radius);border:1px solid var(--edv-line)}
.edv-co-ok{margin:0;padding:12px 14px;border-radius:var(--edv-radius);border:1px solid var(--edv-ok);color:var(--edv-ok);background:var(--edv-ok-bg);font-weight:600}
.edv-co-instructions{padding:12px 14px;border-radius:var(--edv-radius);border:1px dashed var(--edv-line)}
/* The instructions are paragraphs (wpautop): themes give paragraphs outer margins (Twenty Twenty-Five: block spacing), which would leave an empty band inside the box. */
.edv-co-instructions>:first-child{margin-block-start:0}
.edv-co-instructions>:last-child{margin-block-end:0}
.edv-co-empty{margin:0}
.edv-co-pay{display:flex;flex-direction:column;gap:14px}
.edv-co-pay[hidden]{display:none}
.edv-co-billto address{font-style:normal;line-height:1.6;color:var(--edv-muted)}
