/* WordPress-specific additions to the original stylesheet. */

/* Admin bar: keep the sticky header below it. */
.admin-bar header.sticky { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar header.sticky { top: 0; } }

[hidden] { display: none !important; }

/* Cart badge */
[data-pe-cart-link] { position: relative; }
.pe-cart-count {
	position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 999px; background: #f59e0b; color: #062419; font-size: 11px; font-weight: 700;
	line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #edfaf3;
}

/* Toast */
.pe-toast {
	position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 20px); opacity: 0;
	background: #062419; color: #ecfdf5; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
	box-shadow: 0 10px 30px -10px rgba(0,0,0,.45); transition: opacity .25s, transform .25s; pointer-events: none;
}
.pe-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Review carousel dots */
.pe-dot { width: 8px; height: 8px; margin: 4px; border-radius: 999px; background: #cbd5e1; transition: width .25s, background .25s; }
.pe-dot-active { width: 22px; background: #10b981; }

/* Carousel viewports: allow vertical scrolling, handle horizontal swipes ourselves */
.overflow-hidden > .flex { touch-action: pan-y; }

/* Hero quiz card answers are clickable now */
.catalog-options button:disabled { cursor: default; }

/* Cart quantity buttons */
.pe-qty { width: 28px; height: 28px; border-radius: 8px; border: 1px solid #d1d5db; background: #fff; font-weight: 700; color: #065f46; }
.pe-qty:hover { background: #ecfdf5; }

/* Contact form status */
.pe-form-status:empty { display: none; }
.pe-form-status { margin-top: 12px; font-size: 14px; font-weight: 600; color: #475569; }
.pe-form-status.ok { color: #047857; }
.pe-form-status.err { color: #be123c; }

/* Question bank practice mode */
.pe-wrong { border-color: #f43f5e !important; background: #fff1f2 !important; color: #9f1239 !important; text-decoration: line-through; }

/* Generic content created later in the WordPress editor */
.pe-prose { font-size: 16px; line-height: 1.8; color: #334155; }
.pe-prose p { margin: 0 0 1em; }
.pe-prose h2 { font-size: 1.5rem; font-weight: 600; margin: 1.6em 0 .6em; color: #0f172a; }
.pe-prose h3 { font-size: 1.25rem; font-weight: 600; margin: 1.4em 0 .5em; color: #0f172a; }
.pe-prose ul { list-style: disc; padding-left: 1.4em; margin: 0 0 1em; }
.pe-prose ol { list-style: decimal; padding-left: 1.4em; margin: 0 0 1em; }
.pe-prose a { color: #047857; text-decoration: underline; }
.pe-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.pe-pagination .nav-links { display: flex; gap: 8px; }
.pe-pagination .page-numbers { padding: 8px 14px; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 14px; }
.pe-pagination .current { background: #059669; color: #fff; border-color: #059669; }

/* Theme modes (the original loads /theme/<mode>.css; recreated here) */
html[data-theme="dark"] { filter: invert(.92) hue-rotate(180deg); background: #fff; color-scheme: dark; }
html[data-theme="dark"] img,
html[data-theme="dark"] video,
html[data-theme="dark"] iframe,
html[data-theme="dark"] .catalog-hero,
html[data-theme="dark"] footer,
html[data-theme="dark"] .floating-chat { filter: invert(1) hue-rotate(180deg); }
html[data-theme="dark"] .catalog-hero img,
html[data-theme="dark"] footer img { filter: none; }
html[data-theme="reading"] { filter: sepia(.28) contrast(.97); background: #f6efe1; }
html[data-theme="reading"] body, html[data-theme="reading"] main, html[data-theme="reading"] .bg-white { background-color: #fbf6ea !important; }
