/* ==========================================================================
   Polinails — plugin override layer
   Loaded AFTER Tutor LMS and WooCommerce stylesheets so it wins the cascade.
   Goal: no blue, no "template" look, one font, brand colours everywhere.
   ========================================================================== */

/* --- Tutor LMS: rebrand every accent ------------------------------------ */
/* Tutor 3.x drives almost all colour through these custom properties.
   Overriding them recolours buttons, links, tabs, progress, badges, etc.  */
:root {
	--tutor-color-primary: #6f7d59 !important;
	--tutor-color-primary-rgb: 111, 125, 89 !important;
	--tutor-color-primary-hover: #434d36 !important;
	--tutor-color-brand: #6f7d59 !important;
	--tutor-fontface: var(--font, sans-serif) !important;
	--tutor-body-font-family: var(--font, sans-serif) !important;
	--tutor-text-size: 17px !important;
}

/* --- Tutor: readable font size + narrower, padded content --------------- */
.tutor-wrap, .tutor-course-details-content,
.tutor-course-details-content p,
.tutor-course-details-content li,
.tutor-lesson-content, .tutor-lesson-content p {
	font-size: 1.075rem !important;
	line-height: 1.7 !important;
}
.tutor-container {
	max-width: 1080px !important;
	padding-left: 2rem !important;
	padding-right: 2rem !important;
}
/* Breathing room around the single-course / lesson content column */
.tutor-course-details-content,
.tutor-lesson-content,
.tutor-dashboard-content-inner {
	padding: 1.75rem 0 !important;
}
.tutor-course-details-content > * + * { margin-top: 1.1rem !important; }

/* Course/lesson video: keep Tutor LMS's native 16:9 player, but cap its
   width so the box no longer fills the screen and forces scrolling.
   Capping width keeps the 16:9 ratio and shrinks the height to match;
   auto margins centre it and leave breathing room on every side. */
.tutor-video-player {
	max-width: 820px !important;
	margin: 2.25rem auto !important;
}
/* Single course page: the intro video sits beside the "Course Progress"
   card — drop the top margin so their top edges line up. */
.single-courses .tutor-video-player {
	margin-top: 0 !important;
}

/* One font family across all Tutor markup — but NOT icon elements, which
   need Tutor's own icon font (otherwise glyphs render as empty squares). */
.tutor-wrap, .tutor-wrap *:not([class*="tutor-icon"]),
[class^="tutor-"]:not([class*="tutor-icon"]),
[class*=" tutor-"]:not([class*="tutor-icon"]) {
	font-family: var(--font, sans-serif) !important;
}

/* Restore Tutor's icon font on icon elements and their ::before glyph. */
[class^="tutor-icon-"], [class*=" tutor-icon-"],
[class^="tutor-icon-"]::before, [class*=" tutor-icon-"]::before {
	font-family: "tutor" !important;
}

/* Catch the few hard-coded blues in Tutor's compiled CSS */
.tutor-bg-primary,
.tutor-nav-pills .tutor-nav-link.is-active,
.tutor-badge-label.label-primary {
	background-color: #6f7d59 !important;
}
.tutor-color-primary,
.tutor-btn-ghost,
a.tutor-btn-link { color: #434d36 !important; }

/* Buttons — pill shape + brand colour */
.tutor-btn-primary,
.tutor-btn.tutor-btn-primary {
	background-color: #6f7d59 !important;
	border-color: #6f7d59 !important;
	color: #fff !important;
	border-radius: 999px !important;
}
.tutor-btn-primary:hover,
.tutor-btn.tutor-btn-primary:hover,
.tutor-btn-primary:focus,
.tutor-btn-primary:active {
	background-color: #434d36 !important;
	border-color: #434d36 !important;
}
.tutor-btn-outline-primary {
	border-radius: 999px !important;
	border-color: #6f7d59 !important;
	color: #434d36 !important;
}
.tutor-btn-outline-primary:hover {
	background-color: #6f7d59 !important;
	color: #fff !important;
}

/* Course archive cards */
.tutor-card,
.tutor-course-card {
	border-radius: 14px !important;
	border: 1px solid #e2e0d0 !important;
	box-shadow: 0 12px 32px rgba(44, 35, 41, 0.08) !important;
	overflow: hidden;
}
.tutor-course-name a:hover,
.tutor-course-card .tutor-course-name a:hover { color: #434d36 !important; }

/* Single course page accents */
.tutor-course-header,
.tutor-single-course-segment { font-family: var(--font, sans-serif) !important; }
.tutor-course-progress-bar span,
.tutor-progress-value { background: #6f7d59 !important; }

/* Tutor student dashboard */
.tutor-dashboard-permalinks li.active a,
.tutor-dashboard-permalinks li a:hover,
.tutor-dashboard-menu-item-active a { color: #434d36 !important; }
.tutor-dashboard-content-inner { font-family: var(--font, sans-serif) !important; }

/* Tabs / links / focus rings */
.tutor-nav-link.is-active { border-bottom-color: #6f7d59 !important; color: #434d36 !important; }
.tutor-form-control:focus { border-color: #6f7d59 !important; box-shadow: 0 0 0 2px rgba(111,125,89,.25) !important; }
a { color: #434d36; }

/* --- Offline course: brand calendar date-picker ------------------------ *
 * Replaces the <select> dropdown. Visitor sees a real month calendar
 * where only the available dates are clickable, rendered in brand tones.
 */
.pn-cal { margin: 1.4rem 0 1.6rem; }
.pn-cal__title {
	display: block;
	font-weight: 700;
	font-size: 1.05rem;
	color: #2b2e25;
	letter-spacing: .2px;
	margin-bottom: .35rem;
}
.pn-cal__note {
	margin: 0 0 .9rem;
	color: #76786a;
	font-size: .9rem;
	line-height: 1.5;
}
.pn-cal__card {
	background: #ffffff;
	border: 1px solid #e2e0d0;
	border-radius: 16px;
	padding: 1.1rem 1.2rem 1rem;
	box-shadow: 0 12px 30px rgba(67, 77, 54, 0.07);
	max-width: 360px;
	box-sizing: border-box;
	width: 100%;
}
.pn-cal__card *, .pn-cal__card *::before, .pn-cal__card *::after { box-sizing: border-box; }
/* Mobile: tighter padding + smaller gap so the 7 day columns fit
   comfortably on narrow viewports without overflowing the card. */
@media (max-width: 480px) {
	.pn-cal__card { padding: .85rem .75rem .75rem; }
	.pn-cal__weekdays,
	.pn-cal__grid { gap: .15rem; }
	.pn-cal__weekdays { font-size: .68rem; letter-spacing: .5px; }
	.pn-cal__day { font-size: .88rem; border-radius: 10px; }
	.pn-cal__navbtn { width: 32px; height: 32px; }
}
.pn-cal__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .6rem;
	margin-bottom: .7rem;
}
.pn-cal__navbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid #e2e0d0;
	background: #f4f2e8;
	color: #434d36;
	border-radius: 999px;
	cursor: pointer;
	transition: background .15s ease, transform .15s ease, opacity .15s ease;
}
.pn-cal__navbtn:hover:not(:disabled) { background: #fff; transform: translateY(-1px); }
.pn-cal__navbtn:disabled { opacity: .35; cursor: default; }
.pn-cal__month {
	flex: 1;
	text-align: center;
	font-weight: 600;
	font-size: 1rem;
	color: #2b2e25;
	letter-spacing: .3px;
}
.pn-cal__weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: .25rem;
	margin-bottom: .35rem;
	color: #9a9c8e;
	font-size: .72rem;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-align: center;
}
.pn-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: .25rem;
}
.pn-cal__day {
	aspect-ratio: 1 / 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid transparent;
	background: transparent;
	color: #c3c5b6;
	font-size: .92rem;
	font-weight: 500;
	border-radius: 12px;
	cursor: default;
	transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.pn-cal__day--pad { visibility: hidden; }
.pn-cal__day--off { color: #c3c5b6; }
.pn-cal__day--available {
	color: #434d36;
	background: #f4f2e8;
	border-color: #d9d6c2;
	cursor: pointer;
}
.pn-cal__day--available:hover {
	background: #e7ead9;
	border-color: var(--accent, #6f7d59);
	transform: translateY(-1px);
}
/* Selected start day — solid olive pill. */
.pn-cal__day--start,
.pn-cal__day--start:hover {
	background: var(--accent, #6f7d59) !important;
	border-color: var(--accent, #6f7d59) !important;
	color: #ffffff !important;
	box-shadow: 0 4px 12px rgba(67, 77, 54, 0.25);
}
/* The 2nd / 3rd day of a multi-day course — visually connected to the
   start, lighter shade so the user reads the full block. */
.pn-cal__day--in-range:not(.pn-cal__day--start) {
	background: rgba(111, 125, 89, 0.22) !important;
	border-color: rgba(111, 125, 89, 0.38) !important;
	color: #434d36 !important;
	font-weight: 600;
}
.pn-cal__day--end {
	box-shadow: inset -3px 0 0 var(--accent, #6f7d59);
}

/* Hover preview — paints the future range with a softer fill so the
   user understands which days will be booked before clicking. */
.pn-cal__day--in-preview:not(.pn-cal__day--start):not(.pn-cal__day--in-range) {
	background: rgba(111, 125, 89, 0.14);
	border-color: rgba(111, 125, 89, 0.30);
	color: #434d36;
}
.pn-cal__selected {
	margin: .9rem 0 0;
	padding: .55rem .7rem;
	background: #f4f2e8;
	border-radius: 10px;
	font-size: .9rem;
	color: #76786a;
	text-align: center;
}
.pn-cal__selected--on {
	background: #e7ead9;
	color: #434d36;
	font-weight: 600;
}

/* --- Coming-soon placeholder + tag ------------------------------------ */
.ccard__media--coming-soon {
	position: relative;
	background: linear-gradient(135deg, #f4f2e8 0%, #e7ead9 55%, #cdd4ba 100%) !important;
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	color: #434d36;
	overflow: hidden;
}
.ccard__media--coming-soon::after { display: none !important; }
.ccard__placeholder-art {
	width: 56%;
	max-width: 220px;
	opacity: .85;
}
.ccard__placeholder-art svg { width: 100%; height: auto; display: block; }
.ccard__placeholder-caption {
	font-family: var(--serif, 'Outfit'), serif;
	font-style: italic;
	font-size: clamp(1.4rem, 3vw, 2rem);
	font-weight: 600;
	color: #434d36;
	letter-spacing: .5px;
	text-align: center;
	padding: 0 1rem;
}

/* Gold "Coming soon" chip — used on .ccard and on Tutor archive */
.ccard__tag--coming-soon,
.pn-coming-soon-tag {
	display: inline-block;
	background: linear-gradient(135deg, #d4ad6e 0%, #efd29a 50%, #c19a5a 100%);
	color: #2b2e25;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	padding: .32rem .82rem;
	border-radius: 999px;
	align-self: flex-start;
	white-space: nowrap;
}
/* On Tutor archive cards, place the chip absolute-positioned over the
   thumbnail so it doesn't disrupt the existing flow. */
.tutor-card.tutor-course-card { position: relative; }
.tutor-card.tutor-course-card .pn-coming-soon-tag {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 3;
	box-shadow: 0 4px 10px rgba(67, 77, 54, 0.18);
}

/* Block + style the "Coming soon" CTA — disabled state. */
.ccard__btn--soon {
	background: #efece1 !important;
	color: #76786a !important;
	cursor: default !important;
	box-shadow: none !important;
	pointer-events: none;
}
.ccard__btn--soon:hover { background: #efece1 !important; color: #76786a !important; }

/* --- Hide the disabled "User Name" input on Tutor Settings → Profile. *
 * (The internal pn_xxxxxxxx login should never be visible to students.)
 * Admins see it because they bypass this stylesheet through the WP-admin
 * profile screen — same data, different page. */
.tutor-dashboard-content-inner .tutor-form-control[disabled][value^="pn_"] {
	display: none;
}
.tutor-dashboard-content-inner .tutor-form-label:has(+ .tutor-form-control[disabled][value^="pn_"]),
.tutor-dashboard-content-inner .tutor-form-control[disabled][value^="pn_"] {
	visibility: hidden;
	height: 0;
	margin: 0 !important;
	padding: 0 !important;
}
/* Drop the whole column wrapping the username so the row collapses cleanly. */
.tutor-dashboard-content-inner .tutor-col-12:has(> .tutor-form-control[disabled][value^="pn_"]) {
	display: none !important;
}

/* --- /courses/ archive: match the landing-page .ccard look ------------- *
 * Tutor LMS renders its own `.tutor-card.tutor-course-card` for the
 * archive. We restyle it so it mirrors our front-page card: rounded
 * thumbnail, white body card overlapping the photo, pill primary button,
 * no underlines, no bookmark icon. */
.tutor-card.tutor-course-card {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	overflow: visible !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	transition: transform .18s ease;
}
.tutor-card.tutor-course-card:hover { transform: translateY(-5px); }

.tutor-card.tutor-course-card .tutor-course-thumbnail {
	border-radius: var(--radius);
	overflow: hidden;
	background: linear-gradient(150deg, #e7ead9 0%, #cdd4ba 100%);
	margin: 0 !important;
}
.tutor-card.tutor-course-card .tutor-course-thumbnail .tutor-ratio,
.tutor-card.tutor-course-card .tutor-course-thumbnail .tutor-ratio-16x9 {
	aspect-ratio: 4 / 3 !important;
	padding: 0 !important;
}
.tutor-card.tutor-course-card .tutor-course-thumbnail img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
}
/* Hide the small bookmark icon on the thumbnail — we don't use bookmarks. */
.tutor-card.tutor-course-card .tutor-course-bookmark { display: none !important; }

.tutor-card.tutor-course-card .tutor-card-body {
	position: relative;
	z-index: 1;
	margin: -64px 14px 0 !important;
	background: #fff !important;
	border-radius: var(--radius);
	padding: 1.2rem 1.3rem 1.35rem !important;
	box-shadow: 0 16px 34px rgba(43, 46, 37, 0.17);
	display: flex;
	flex-direction: column;
	gap: .5rem;
}

/* Title — no underline, brand size + color. */
.tutor-card.tutor-course-card .tutor-course-name,
.tutor-card.tutor-course-card .tutor-course-name a {
	font-size: 1.22rem !important;
	line-height: 1.3 !important;
	margin: 0 !important;
	text-decoration: none !important;
	color: var(--ink) !important;
	font-weight: 600 !important;
}
.tutor-card.tutor-course-card .tutor-course-name a:hover {
	color: var(--accent-dark) !important;
}

/* Footer button (Enroll Course / View Course) → brand olive pill. */
.tutor-card.tutor-course-card .tutor-card-footer {
	background: transparent !important;
	border: 0 !important;
	padding: 0 14px 0 !important;
	margin-top: .7rem;
}
.tutor-card.tutor-course-card .tutor-course-list-btn { margin: 0; }
.tutor-card.tutor-course-card .tutor-card-footer .tutor-btn,
.tutor-card.tutor-course-card .tutor-card-footer a.tutor-btn {
	display: block !important;
	width: 100% !important;
	text-align: center !important;
	background: var(--accent) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 999px !important;
	padding: .55rem 1.1rem !important;
	font-size: .86rem !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	cursor: pointer;
}
.tutor-card.tutor-course-card .tutor-card-footer .tutor-btn:hover {
	background: var(--accent-dark) !important;
}

/* Kill any residual link underlines inside the card. */
.tutor-card.tutor-course-card a { text-decoration: none !important; }

/* --- Single instructor: hide the educator byline ------------------------ */
/* Polina is the only instructor — no need to credit her on every course.   */
.tutor-course-details-instructors,
.tutor-single-course-instructors,
.tutor-instructor-list-wrap,
.tutor-course-loop-author,
.tutor-meta-course-author,
.tutor-single-course-meta .tutor-meta-author,
.tutor-course-card .tutor-meta-author,
/* The course-loop card meta row that prints avatar + "By NAME · In CAT".
   The compound `.tutor-mt-auto` is specific to this block (the other
   .tutor-meta on the card is `.tutor-mt-12 .tutor-mb-20` which carries
   enrollments + duration — keep that visible). */
.tutor-meta.tutor-mt-auto { display: none !important; }

/* --- WooCommerce: rebrand cart / checkout / account --------------------- */
.woocommerce, .woocommerce-page,
.woocommerce *, .woocommerce-page * {
	font-family: var(--font, sans-serif) !important;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #place_order,
.wc-block-components-button {
	background: #6f7d59 !important;
	color: #fff !important;
	border-radius: 999px !important;
	border: 2px solid #6f7d59 !important;
	font-weight: 600 !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce #place_order:hover,
.wc-block-components-button:hover {
	background: #434d36 !important;
	border-color: #434d36 !important;
}

.woocommerce .price,
.woocommerce span.amount,
.woocommerce-Price-amount,
.wc-block-components-product-price { color: #434d36 !important; font-weight: 700 !important; }

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text,
.wc-block-components-text-input input {
	border: 1px solid #e2e0d0 !important;
	border-radius: 10px !important;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
	outline: 2px solid #6f7d59 !important;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-top-color: #6f7d59 !important;
	border-radius: 10px !important;
	margin: 0 0 1.4rem !important;
	padding: 1rem 1.2rem 1rem 3rem !important;
	font-size: .98rem !important;
	font-weight: 500 !important;
	background: #fff !important;
	box-shadow: 0 6px 18px rgba(43, 46, 37, .08) !important;
	border-left: 4px solid #6f7d59 !important;
}
.woocommerce-error {
	border-top-color: #a4452a !important;
	border-left-color: #a4452a !important;
	color: #a4452a !important;
}
.woocommerce-error a { color: #a4452a !important; text-decoration: underline !important; }
.woocommerce-message::before,
.woocommerce-info::before { color: #6f7d59 !important; }
.woocommerce-error::before { color: #a4452a !important; }
/* Make sure the notices wrapper above the cart isn't pushed offscreen. */
.woocommerce-cart .woocommerce-notices-wrapper { display: block !important; }

.woocommerce-MyAccount-navigation li.is-active a { color: #434d36 !important; font-weight: 700 !important; }
.woocommerce-MyAccount-navigation li a:hover { color: #434d36 !important; }

/* --- Mobile polish for plugin pages ------------------------------------- */
@media (max-width: 640px) {
	.tutor-wrap, .woocommerce, .woocommerce-page {
		padding-left: 1rem !important;
		padding-right: 1rem !important;
	}
	.tutor-btn, .woocommerce a.button, .woocommerce button.button {
		width: 100%;
		display: block;
	}
	.tutor-course-header h1, .woocommerce .product_title { font-size: 1.5rem !important; }
}

/* --- Tutor pages: breathing room below the sticky site header ----------- */
.tutor-wrap-parent { padding-top: 2.5rem !important; }

/* Student dashboard greeting — keep "Hello, Name" on one line, aligned */
.tutor-frontend-dashboard-header { align-items: center !important; }
.tutor-dashboard-header-display-name {
	display: flex !important;
	align-items: baseline;
	gap: .4rem;
	flex-wrap: wrap;
}
.tutor-dashboard-header-greetings { white-space: nowrap; }

/* Tighten the empty space: name -> divider line -> "Dashboard" heading.
   Tutor ships 25px below the name, 28px above the heading — too airy. */
.tutor-frontend-dashboard-header { padding-bottom: 10px !important; }
.tutor-dashboard-content { padding-top: 14px !important; }
.tutor-dashboard-title { margin-bottom: 16px !important; }

/* Dashboard header: drop the avatar circle entirely. */
.tutor-dashboard-header-avatar { display: none !important; }
.tutor-dashboard-header .tutor-user-info {
	margin-left: 0 !important;
	display: flex !important;
	align-items: center !important;
	gap: .6rem !important;
}

/* Notification bell — smaller, sitting to the right of the name. */
#tutor-notifications-wrapper { margin: 0 !important; }
#tutor-notifications-wrapper .tutor-iconic-btn {
	width: 34px !important;
	height: 34px !important;
	min-width: 34px !important;
	min-height: 34px !important;
	font-size: 15px !important;
}

/* --- Profile photo is optional — remove the upload nudge & cover editor -- */
.tutor-dashboard-student .tutor-alert.tutor-primary { display: none !important; }
#tutor_profile_cover_photo_editor { display: none !important; }

/* --- Header flush to the very top — kill any spacing above it ----------- */
html, body { margin-top: 0 !important; padding-top: 0 !important; }
body > .site-header:first-of-type { margin-top: 0 !important; }
.site-main { margin-top: 0 !important; }

/* Lesson auto-completed (AJAX) — completed state */
.pn-lesson-done {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	font-weight: 600;
	color: #2e7d4f;
	padding: .4rem .2rem;
}
.pn-lesson-complete > a,
.pn-lesson-complete { color: #2e7d4f !important; }

/* Lesson / quiz / assignment pages: Tutor's spotlight has its own top bar,
   so the site header must not be sticky there (it overlapped Tutor's bar). */
.single-lesson .site-header,
.single-tutor_quiz .site-header,
.single-tutor_assignments .site-header {
	position: static !important;
}

/* Course-completion block under the lesson content */
.pn-course-complete {
	margin: 2rem auto 0;
	max-width: 620px;
	text-align: center;
	background: #f4f2e8;
	border: 1px solid #e2e0d0;
	border-radius: 16px;
	padding: 2rem 1.6rem;
}
.pn-course-complete__emoji { font-size: 2.4rem; line-height: 1; margin-bottom: .4rem; }
.pn-course-complete__title { margin: 0 0 .4rem; font-size: 1.3rem; color: #2b2e25; }
.pn-course-complete__text { margin: 0 0 1.1rem; color: #76786a; }
.pn-course-complete form { margin: 0; }
.pn-course-complete .btn { cursor: pointer; }

/* Dashboard: "Browse courses" CTA button (JS moves it into the title row) */
.pn-dash-cta { display: flex; margin-bottom: 1.5rem; }

/* "Dashboard" heading + Browse-courses button on one line */
.pn-dashboard-title-row {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 1rem !important;
	flex-wrap: wrap !important;
}
.pn-dashboard-title-row .btn {
	font-size: .82rem !important;
	padding: .5rem 1.15rem !important;
}

/* Stat counter cards link to their dashboard sections */
.pn-stat-link {
	display: block;
	text-decoration: none;
	color: inherit;
	transition: transform .15s ease;
}
.pn-stat-link:hover { transform: translateY(-3px); }
.pn-stat-link:hover .tutor-card {
	border-color: #6f7d59 !important;
	box-shadow: 0 14px 30px rgba(43, 46, 37, 0.16) !important;
}

/* --- Completed course: dismissible "already completed" pop-up ----------- */
.pn-notice {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	opacity: 0;
	transition: opacity .25s ease;
}
/* The class sets display:flex, which would otherwise defeat the [hidden]
   attribute and leave an invisible full-screen overlay swallowing clicks. */
.pn-notice[hidden] { display: none; }
.pn-notice.is-open { opacity: 1; }
.pn-notice__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(43, 35, 41, .55);
}
.pn-notice__box {
	position: relative;
	width: 100%;
	max-width: 380px;
	background: #f4f2e8;
	border: 1px solid #e2e0d0;
	border-radius: 16px;
	padding: 2rem 1.6rem 1.6rem;
	text-align: center;
	box-shadow: 0 24px 60px rgba(44, 35, 41, .28);
	transform: translateY(10px) scale(.97);
	transition: transform .25s ease;
}
.pn-notice.is-open .pn-notice__box { transform: none; }
.pn-notice__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.6rem;
	height: 2.6rem;
	margin-bottom: .7rem;
	border-radius: 50%;
	background: #2e7d4f;
	color: #fff;
	font-size: 1.3rem;
}
.pn-notice__heading {
	margin: 0 0 .4rem;
	font-size: 1.4rem;
	font-weight: 700;
	color: #434d36;
	letter-spacing: 0.2px;
}
.pn-notice__text { margin: 0 0 1.2rem; color: #2b2e25; font-weight: 600; }
/* Fresh-completion variant: emoji icon, no green disc background. */
.pn-notice--fresh .pn-notice__icon {
	background: transparent;
	color: inherit;
	font-size: 2.2rem;
	width: auto;
	height: auto;
	margin-bottom: .3rem;
}

/* Single-course page thumbnail — keep the original image as a clean
   square, no aggressive crop. The container becomes 1:1, the image
   fills it with object-fit: cover but the square aspect avoids the
   over-zoom that a 460px-tall portrait crop produced. */
/* Single-course page only — fill the left column width but cap the
   vertical height so a portrait image (like the foot/foam shot)
   doesn't dominate the whole viewport. Landscape 16/9 frame keeps
   the visual proportional to the price card on the right. */
.tutor-single-course .tutor-course-thumbnail,
.tutor-course-details .tutor-course-thumbnail {
	aspect-ratio: 16 / 11;
	width: 100%;
	max-width: none;
	margin: 0;
	overflow: hidden;
	border-radius: var(--radius);
}
.tutor-single-course .tutor-course-thumbnail img,
.tutor-course-details .tutor-course-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}
@media (max-width: 768px) {
	.tutor-single-course .tutor-course-thumbnail,
	.tutor-course-details .tutor-course-thumbnail {
		aspect-ratio: 4 / 3;
		max-width: 460px;
		margin-left: auto;
		margin-right: auto;
	}
}

/* Tutor course "add to cart" button on the entry box (price card) — keep
   the CTA the same brand olive but trim the padding so a short label
   ("In winkelmandje") fits cleanly on one line. */
.tutor-course-details .tutor-btn-primary,
.tutor-course-details .tutor-btn[type="submit"],
.tutor-course-entry-box .tutor-btn-primary,
.tutor-single-course-content .tutor-btn-primary,
.tutor-single-course-content .tutor-btn[type="submit"] {
	padding: .7rem 1.2rem !important;
	font-size: .98rem !important;
	min-height: 0 !important;
	white-space: nowrap;
	border-radius: 999px !important;
}
.tutor-course-details .tutor-btn-primary .btn-icon,
.tutor-course-details .tutor-btn[type="submit"] .btn-icon,
.tutor-single-course-content .tutor-btn-primary .btn-icon,
.tutor-single-course-content .tutor-btn[type="submit"] .btn-icon {
	margin-right: .4rem;
	font-size: 1em !important;
}

/* Single-course page: pull the title, categories, thumbnail and "Over
   cursus" content closer together. Tutor's default `tutor-mb-44` /
   `tutor-mb-32` / `tutor-mt-32` give a desktop-tuned, airy rhythm that
   looks floaty on mobile. We tighten the chain inside the course header
   wrapper without touching Tutor's utilities globally. */
.tutor-course-details-header.tutor-mb-44 { margin-bottom: 1.25rem !important; }
.tutor-course-details-top.tutor-mt-16 { margin-top: .25rem !important; }
.tutor-course-details-header .tutor-mb-32 { margin-bottom: 1rem !important; }
.tutor-course-details-tab.tutor-mt-32 { margin-top: 1.25rem !important; }
.tutor-course-thumbnail {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
@media (max-width: 768px) {
	.tutor-course-details-header.tutor-mb-44 { margin-bottom: 1rem !important; }
	.tutor-course-details-header .tutor-mb-32 { margin-bottom: .8rem !important; }
	.tutor-course-details-tab.tutor-mt-32 { margin-top: 1rem !important; }
	.tutor-wrap-parent { padding-top: 1.25rem !important; }
}

/* --- Completed course: confetti celebration pop-up ---------------------- */
.pn-confetti {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 100000;
}
.pn-celebrate {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	opacity: 0;
	transition: opacity .3s ease;
}
.pn-celebrate.is-open { opacity: 1; }
.pn-celebrate__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(43, 35, 41, .55);
}
.pn-celebrate__box {
	position: relative;
	width: 100%;
	max-width: 420px;
	background: #f4f2e8;
	border: 1px solid #e2e0d0;
	border-radius: 18px;
	padding: 2.4rem 1.8rem 2rem;
	text-align: center;
	box-shadow: 0 24px 60px rgba(44, 35, 41, .28);
	transform: translateY(12px) scale(.96);
	transition: transform .3s ease;
}
.pn-celebrate.is-open .pn-celebrate__box { transform: none; }
.pn-celebrate__x {
	position: absolute;
	top: .5rem;
	right: .8rem;
	border: 0;
	background: none;
	font-size: 1.7rem;
	line-height: 1;
	color: #76786a;
	cursor: pointer;
}
.pn-celebrate__emoji { font-size: 3rem; line-height: 1; margin-bottom: .5rem; }
.pn-celebrate__title {
	margin: 0 0 .5rem;
	font-size: 1.5rem;
	color: #2b2e25;
	overflow-wrap: anywhere;
}
.pn-celebrate__text {
	margin: 0 0 1.4rem;
	color: #76786a;
	overflow-wrap: anywhere;
	word-break: break-word;
}

/* Global mobile-safety net: nothing on the site should ever produce a
   horizontal scrollbar. Long Tutor/WC tables get scoped scroll inside their
   own container instead of forcing the whole page to scroll sideways. */
html, body { max-width: 100vw; overflow-x: hidden; }
.tutor-wrap, .tutor-page-wrap, .tutor-container { max-width: 100%; }
@media (max-width: 768px) {
	.tutor-wrap, .tutor-page-wrap { padding-left: 1rem; padding-right: 1rem; }
}

/* --- OTP code field: remove the number-input spinner ("scroll counter") -- */
input[name="tutor-login-otp"] {
	-moz-appearance: textfield;
	appearance: textfield;
}
input[name="tutor-login-otp"]::-webkit-outer-spin-button,
input[name="tutor-login-otp"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* --- Order-received page: big "go to your course" button ---------------- */
.pn-order-courses {
	margin: 0 0 2rem;
	padding: 1.8rem 1.6rem;
	text-align: center;
	background: #f4f2e8;
	border: 1px solid #e2e0d0;
	border-radius: 16px;
}
.pn-order-courses__title { margin: 0 0 .4rem; font-size: 1.5rem; color: #2b2e25; }
.pn-order-courses__text { margin: 0 0 1.2rem; color: #76786a; }
.pn-order-courses__btn {
	display: inline-block;
	font-size: 1.05rem;
	padding: .9rem 2.2rem;
	margin: .3rem;
}

/* --- Checkout: refined "After submission..." redirect notice ----------- *
 * Replace Stripe's stock lilac box with a brand cream card. Applies to the
 * description region under each selected payment method (Bancontact, iDEAL,
 * Klarna — anything that redirects). */
.woocommerce-checkout #payment div.payment_box,
.woocommerce-page #payment div.payment_box {
	background: #f4f2e8 !important;
	border: 1px solid #e2e0d0 !important;
	border-radius: 12px !important;
	color: #2b2e25 !important;
	padding: 1rem 1.2rem !important;
	margin: .9rem 0 .4rem !important;
	box-shadow: 0 4px 18px rgba(67, 77, 54, 0.06);
	font-size: .98rem;
	line-height: 1.5;
}
/* Kill the tail/arrow that Woo draws above .payment_box. */
.woocommerce-checkout #payment div.payment_box::before,
.woocommerce-page #payment div.payment_box::before { display: none !important; }

/* Space between payment-method radio rows — keeps Card visually separated
   from iDEAL above instead of butting up against it. */
.woocommerce-checkout ul.payment_methods > li,
.woocommerce-page    ul.payment_methods > li {
	margin-bottom: .55rem !important;
	padding: .35rem 0 !important;
}
.woocommerce-checkout ul.payment_methods > li:last-of-type,
.woocommerce-page    ul.payment_methods > li:last-of-type {
	margin-bottom: 0 !important;
}

/* Soften the Stripe Card Element inputs to match the brand cream card. */
.payment_box .wc-stripe-upe-element,
.payment_box .wc-block-components-text-input,
.payment_box .StripeElement,
.payment_box .StripeElement--empty,
.payment_box .StripeElement--complete,
.payment_box .StripeElement--invalid {
	border: 1px solid #e2e0d0 !important;
	border-radius: 10px !important;
	background: #fff !important;
	box-shadow: none !important;
	padding: .65rem .8rem !important;
}
/* The grouped Card / Exp / CVC strip that Stripe lays out as a single bar. */
.payment_box .wc-stripe-card-fields,
.payment_box .wc-stripe-payment-element {
	border: 1px solid #e2e0d0 !important;
	border-radius: 10px !important;
	background: #fff !important;
	padding: .25rem !important;
	box-shadow: none !important;
}
/* "Save payment information" row — soften the divider, match spacing. */
.payment_box .wc-stripe-save-source,
.payment_box .woocommerce-SavedPaymentMethods-saveNew {
	margin-top: .8rem !important;
	padding-top: .8rem !important;
	border-top: 1px solid #e2e0d0 !important;
}
.payment_box .test-mode-info,
.payment_box .test-mode {
	background: transparent !important;
	border: 0 !important;
	padding: 0 0 .6rem !important;
	color: #76786a !important;
}

/* Stripe nests the redirect message in a <fieldset class="wc-stripe-redirect-
   notice"> which carries the default browser fieldset border (that hard
   rectangle visible inside the cream card). Strip it and lay out the icon +
   text inline. */
.wc-stripe-redirect-notice,
.payment_box .wc-stripe-redirect-notice {
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	display: flex !important;
	align-items: center;
	gap: .8rem;
	min-inline-size: 0;
}
.wc-stripe-redirect-notice__icon {
	flex-shrink: 0;
	width: 30px;
	height: auto;
	color: #6f7d59;
}
.wc-stripe-redirect-notice__text {
	color: #2b2e25;
	font-size: 1rem;
	line-height: 1.5;
}

/* --- Checkout: much larger payment-scheme logos (Visa/MC/Bancontact) ----- */
.woocommerce-checkout #payment ul.payment_methods li img,
#payment ul.payment_methods li img,
ul.wc_payment_methods li img,
.wc_payment_method img,
.payment_method_stripe img,
.payment_method_stripe_bancontact img,
.wc-stripe-payment-method-label img {
	max-height: 46px !important;
	height: auto !important;
	width: auto !important;
	display: inline-block;
	vertical-align: middle;
}

/* --- Course ratings removed from the platform --------------------------- */
.tutor-ratings,
.tutor-ratings-stars,
.tutor-ratings-average,
.tutor-ratings-count,
.tutor-course-ratings,
.tutor-course-loop-rating,
.tutor-single-course-ratings,
.tutor-single-course-segment-reviews,
.tutor-course-details-ratings,
.tutor-rating-container,
.tutor-course-card .tutor-meta-rating,
[class*="tutor-course"] .tutor-ratings,
.tutor-course-rating-block { display: none !important; }

/* --- Lesson completion: one button rule -------------------------------- *
 * Tutor's three "Mark as Complete" surfaces (topbar, mobile bottom bar,
 * sidebar) all hide. Next click auto-completes via JS (functions.php).
 * The last lesson gets an injected "Finish lesson" CTA in the same row. */
.tutor-topbar-complete-btn,
.tutor-spotlight-mobile-progress-complete,
.tutor-topbar-mark-btn { display: none !important; }

/* Promote the Next link to the primary CTA — make it look like a button. */
.tutor-next-previous-pagination-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 1.6rem 0 2rem;
	flex-wrap: wrap;
}
.tutor-next-link.pn-next-cta,
.pn-finish-cta {
	display: inline-block;
	padding: .85rem 2rem;
	background: var(--accent, #6f7d59);
	color: #fff !important;
	border: 0;
	border-radius: 999px;
	font-weight: 600;
	font-size: 1.02rem;
	text-decoration: none;
	cursor: pointer;
	min-height: 50px;
	transition: background .15s ease, opacity .15s ease;
}
.tutor-next-link.pn-next-cta:hover,
.pn-finish-cta:hover { background: var(--accent-dark, #434d36); color: #fff !important; }
.tutor-next-link.pn-next-cta.is-busy,
.pn-finish-cta.is-busy { opacity: .6; pointer-events: none; }
/* Last-lesson page has no Previous neighbour to balance against — push the
   injected Finish button to the right edge for consistency. */
.tutor-next-previous-pagination-wrap .pn-finish-cta:only-child {
	margin-left: auto;
}

/* Desktop: float Previous / Next as fixed pills at the viewport sides so
   the student always has navigation in view, even when the video player
   fills the screen. Mobile (<992px) keeps Tutor's default in-flow layout
   at the bottom of the lesson card. */
@media (min-width: 992px) {

	/* === Variant A — lesson page: .tutor-course-topic-single-footer ===
	 * Anchor the buttons to the content column (the spotlight wrapper) so
	 * they sit at the vertical centre of the lesson block — not the
	 * viewport — and never overlap the left "Course Content" sidebar. */
	.tutor-course-spotlight-wrapper { position: relative; }

	.tutor-course-topic-single-footer {
		position: absolute !important;
		top: 50% !important;
		left: 0 !important;
		right: 0 !important;
		bottom: auto !important;
		transform: translateY(-50%) !important;
		z-index: 50;
		background: transparent !important;
		padding: 0 !important;
		margin: 0 !important;
		border: 0 !important;
		box-shadow: none !important;
		pointer-events: none;
	}
	.tutor-course-topic-single-footer::before,
	.tutor-course-topic-single-footer::after { display: none !important; }
	.tutor-course-topic-single-footer > * { pointer-events: auto; }

	.tutor-single-course-content-prev,
	.tutor-single-course-content-next {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
	}
	.tutor-single-course-content-prev { left: 28px; }
	.tutor-single-course-content-next { right: 28px; }

	.tutor-single-course-content-prev .tutor-btn,
	.tutor-single-course-content-next .tutor-btn,
	.tutor-single-course-content-next .pn-finish-cta {
		min-height: 0 !important;
		padding: .5rem 1.05rem !important;
		border-radius: 999px !important;
		font-weight: 500 !important;
		font-size: .9rem !important;
		box-shadow: 0 3px 10px rgba(43, 46, 37, 0.10);
		display: inline-flex !important;
		align-items: center;
		gap: .35rem;
		white-space: nowrap;
		text-decoration: none !important;
	}
	.tutor-single-course-content-prev .tutor-btn {
		background: #fff !important;
		color: #434d36 !important;
		border: 1px solid #e2e0d0 !important;
	}
	.tutor-single-course-content-prev .tutor-btn:hover {
		background: #f4f2e8 !important;
		color: #2b2e25 !important;
	}
	.tutor-single-course-content-next .tutor-btn,
	.tutor-single-course-content-next .pn-finish-cta,
	.pn-finish-cta {
		background: var(--accent, #6f7d59) !important;
		color: #fff !important;
		border: 0 !important;
	}
	.tutor-single-course-content-next .tutor-btn:hover,
	.pn-finish-cta:hover {
		background: var(--accent-dark, #434d36) !important;
	}

	/* === Variant B — pagination on other Tutor pages === */
	.tutor-next-previous-pagination-wrap {
		position: fixed;
		inset: 50% 0 auto 0;
		transform: translateY(-50%);
		z-index: 50;
		margin: 0 !important;
		padding: 0 !important;
		pointer-events: none;
		background: transparent !important;
		display: block;
	}
	.tutor-next-previous-pagination-wrap .tutor-previous-link,
	.tutor-next-previous-pagination-wrap .tutor-next-link,
	.tutor-next-previous-pagination-wrap .pn-finish-cta {
		pointer-events: auto;
		position: fixed;
		top: 50%;
		transform: translateY(-50%);
		min-height: 56px;
		padding: .9rem 1.4rem !important;
		border-radius: 999px !important;
		font-weight: 600;
		font-size: .98rem;
		box-shadow: 0 10px 28px rgba(43, 46, 37, 0.22);
		display: inline-flex !important;
		align-items: center;
		gap: .4rem;
		white-space: nowrap;
		text-decoration: none !important;
	}
	.tutor-next-previous-pagination-wrap .tutor-previous-link {
		left: 410px;
		background: #f4f2e8;
		color: #434d36 !important;
		border: 1px solid #e2e0d0 !important;
	}
	.tutor-next-previous-pagination-wrap .tutor-previous-link:hover {
		background: #fff;
		color: #2b2e25 !important;
	}
	.tutor-next-previous-pagination-wrap .tutor-next-link,
	.tutor-next-previous-pagination-wrap .pn-finish-cta {
		right: 28px;
		background: var(--accent, #6f7d59);
		color: #fff !important;
		border: 0 !important;
	}
	.tutor-next-previous-pagination-wrap .tutor-next-link:hover,
	.tutor-next-previous-pagination-wrap .pn-finish-cta:hover {
		background: var(--accent-dark, #434d36);
	}
}

/* --- Cart page: brand styling + mobile layout fixes --------------------- */
.woocommerce-cart .woocommerce { max-width: 980px; margin: 0 auto; }
.woocommerce table.shop_table {
	border: 1px solid #e2e0d0 !important;
	border-radius: 12px !important;
	border-collapse: separate !important;
	border-spacing: 0;
	overflow: hidden;
}
.woocommerce table.shop_table thead th { background: #f4f2e8 !important; }
.woocommerce-cart table.cart img { width: 72px; height: auto; border-radius: 8px; }
.woocommerce-cart table.cart td,
.woocommerce-cart table.cart th { padding: 1rem !important; vertical-align: middle; }

/* Coupon field — larger and easier to use */
.woocommerce-cart td.actions .coupon {
	display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; float: none;
}
.woocommerce #coupon_code.input-text,
.woocommerce-cart .coupon input#coupon_code {
	min-width: 240px;
	height: 50px !important;
	padding: .6rem 1rem !important;
	font-size: 1rem !important;
	border: 1px solid #e2e0d0 !important;
	border-radius: 10px !important;
}
.woocommerce-cart td.actions {
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}

/* Cart totals box */
.cart-collaterals .cart_totals {
	background: #f4f2e8;
	border: 1px solid #e2e0d0;
	border-radius: 14px;
	padding: 1.4rem 1.6rem;
}
.cart-collaterals .cart_totals h2 { margin-top: 0; }

/* Mobile — stack the table into cards, no horizontal scroll */
@media (max-width: 768px) {
	.woocommerce-cart table.cart thead { display: none; }
	.woocommerce-cart table.cart tbody tr {
		display: block;
		border: 1px solid #e2e0d0;
		border-radius: 12px;
		margin-bottom: 1rem;
		padding: .4rem .6rem;
		background: #fff;
	}
	.woocommerce-cart table.cart tbody td {
		display: flex; justify-content: space-between; align-items: center;
		width: 100% !important; text-align: right;
		border: 0 !important; padding: .55rem .4rem !important;
	}
	.woocommerce-cart table.cart tbody td::before {
		content: attr(data-title);
		font-weight: 700; color: #2b2e25; text-align: left;
	}
	.woocommerce-cart table.cart td.product-remove { justify-content: flex-end; }
	.woocommerce-cart table.cart td.product-remove::before,
	.woocommerce-cart table.cart td.product-thumbnail::before { display: none; }
	.woocommerce-cart table.cart td.product-thumbnail { justify-content: center; }
	.woocommerce-cart td.actions { padding: .45rem .55rem !important; }
	.woocommerce-cart td.actions .coupon { width: 100%; }
	.woocommerce-cart .coupon input#coupon_code,
	.woocommerce #coupon_code.input-text { flex: 1 1 auto !important; min-width: 0 !important; }
	.woocommerce-cart td.actions .coupon .button,
	.woocommerce-cart td.actions button[name="apply_coupon"] {
		width: auto !important;
		flex: 0 0 auto !important;
		padding: 0 1rem !important;
	}
	.woocommerce-cart td.actions > .button { width: 100%; }
	.cart-collaterals,
	.cart-collaterals .cart_totals { width: 100% !important; float: none !important; }
}

/* --- Order received / View order: mobile-friendly tables ---------------- */
.woocommerce-order .woocommerce-order-overview {
	margin: 1.4rem 0;
	padding: 0;
	border: 1px solid #e2e0d0;
	border-radius: 12px;
	overflow: hidden;
}
.woocommerce-order .woocommerce-order-overview li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: .7rem 1rem !important;
	border: 0 !important;
	border-bottom: 1px solid #e2e0d0 !important;
	text-transform: none;
	font-size: .96rem;
}
.woocommerce-order .woocommerce-order-overview li:last-child { border-bottom: 0 !important; }
.woocommerce-order .woocommerce-order-overview li strong { text-align: right; }

@media (max-width: 768px) {
	.woocommerce-order table.shop_table { width: 100% !important; }
	.woocommerce-order table.shop_table th,
	.woocommerce-order table.shop_table td {
		padding: .65rem .6rem !important;
		font-size: .92rem;
		word-break: break-word;
	}
	/* Customer/billing address blocks stack instead of sitting side by side */
	.woocommerce-order .woocommerce-customer-details .woocommerce-columns,
	.woocommerce-order .woocommerce-columns--addresses {
		display: block;
	}
	.woocommerce-order .woocommerce-columns--addresses .woocommerce-column {
		width: 100% !important;
		float: none !important;
		margin-bottom: 1rem;
	}
}

/* --- Offline course: compact single-product layout --------------------- */
/* Centred column with generous side gutters on smaller screens, so the
   breadcrumbs / title / calendar / Add-to-cart never hug the viewport
   edge. The .pn-offline-product class is added on body for offline WC
   products (see polinails_offline_body_class). */
.pn-offline-product .woocommerce-breadcrumb,
.pn-offline-product .woocommerce-notices-wrapper,
.pn-offline-product div.product,
.pn-offline-product .woocommerce-tabs,
.pn-offline-product .related.products,
.pn-offline-product .upsells.products {
	max-width: 1180px;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: clamp(1rem, 4vw, 1.5rem);
	padding-right: clamp(1rem, 4vw, 1.5rem);
	box-sizing: border-box;
}

/* Image on the left, course details on the right, related below.
   Image takes 50% on desktop so the flyer is fully readable; the
   summary fills the rest with proper breathing room. */
.pn-offline-product div.product {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: start;
	gap: 3rem;
	margin-top: 1.5rem !important;
	margin-bottom: 1.5rem !important;
}
.pn-offline-product div.product .pn-course-image {
	margin: 0;
	max-width: 100%;
}
.pn-offline-product div.product .pn-course-image img {
	width: 100%;
	height: auto;
	border-radius: 14px;
	display: block;
}
.pn-offline-product div.product .summary,
.pn-offline-product div.product .entry-summary {
	width: auto !important;
	max-width: none !important;
	min-width: 0;
	margin: 0 !important;
	float: none !important;
	padding: 0 !important;
}
/* Tabs + related products span the full row below the two columns. */
.pn-offline-product div.product .woocommerce-tabs,
.pn-offline-product div.product .related.products,
.pn-offline-product div.product .upsells.products {
	grid-column: 1 / -1;
	width: 100%;
	margin-top: 2.5rem;
}

/* On tablet & phone — stack vertically. */
@media (max-width: 860px) {
	.pn-offline-product div.product {
		grid-template-columns: 1fr !important;
		gap: 1.8rem;
	}
	.pn-offline-product div.product .pn-course-image {
		max-width: 520px;
		margin-left: auto !important;
		margin-right: auto !important;
	}
}
.pn-offline-product .related.products { text-align: center; }
.pn-offline-product .related.products > h2 {
	text-align: center;
	font-size: clamp(1.4rem, 2.2vw, 1.9rem);
	margin: 0 auto 1.6rem;
	color: var(--accent-dark, #434d36);
}
.pn-offline-product .related.products ul.products,
.pn-offline-product .upsells.products ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.5rem;
	max-width: none;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
	justify-content: stretch;
}
/* When the row contains <= 3 items, cap card width so a lonely card
   doesn't stretch to half the page. */
@media (min-width: 1100px) {
	.pn-offline-product .related.products ul.products,
	.pn-offline-product .upsells.products ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 1.6rem;
	}
}
@media (max-width: 900px) {
	.pn-offline-product .related.products ul.products,
	.pn-offline-product .upsells.products ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.2rem;
	}
}
@media (max-width: 520px) {
	.pn-offline-product .related.products ul.products,
	.pn-offline-product .upsells.products ul.products {
		grid-template-columns: 1fr;
		gap: 1.2rem;
	}
	/* On phone, drop the card chrome (border + shadow + padding) so
	   each related-product content (image, title, price, CTA) lines up
	   on the same x-axis as the course description above. The card
	   becomes a borderless content block instead of a chunky pill,
	   matching the description's left/right edges. */
	.pn-offline-product .related.products ul.products li.product,
	.pn-offline-product .upsells.products ul.products li.product {
		padding: 0 !important;
		background: transparent !important;
		border: 0 !important;
		box-shadow: none !important;
		border-radius: 0 !important;
	}
	.pn-offline-product .related.products ul.products li.product:hover,
	.pn-offline-product .upsells.products ul.products li.product:hover {
		transform: none !important;
		box-shadow: none !important;
	}
	.pn-offline-product .related.products ul.products li.product a img,
	.pn-offline-product .upsells.products ul.products li.product a img {
		aspect-ratio: 16 / 11 !important;
		border-radius: 14px !important;
		margin: 0 0 .75rem !important;
	}
	.pn-offline-product .related.products ul.products li.product .woocommerce-loop-product__title,
	.pn-offline-product .upsells.products ul.products li.product .woocommerce-loop-product__title {
		font-size: 1.05rem !important;
		min-height: 0 !important;
		margin-bottom: .3rem !important;
	}
	.pn-offline-product .related.products ul.products li.product .button,
	.pn-offline-product .upsells.products ul.products li.product .button {
		max-width: 260px;
		align-self: flex-start;
	}
}
/* Each related-product card: cleaner padding, larger image, the title
   left-aligned but visually balanced inside the card. */
.pn-offline-product .related.products ul.products li.product,
.pn-offline-product .upsells.products ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	padding: 1rem 1rem 1.4rem !important;
	background: #fff;
	border: 1px solid #e6e3d3;
	border-radius: 18px;
	box-shadow: 0 10px 28px rgba(43, 46, 37, .07);
	text-align: left;
	display: flex !important;
	flex-direction: column;
	gap: .15rem;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pn-offline-product .related.products ul.products li.product:hover,
.pn-offline-product .upsells.products ul.products li.product:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 38px rgba(43, 46, 37, .14);
	border-color: #cdd4ba;
}
.pn-offline-product .related.products ul.products li.product a img,
.pn-offline-product .upsells.products ul.products li.product a img {
	width: 100% !important;
	aspect-ratio: 4 / 5;
	-o-object-fit: cover;
	object-fit: cover;
	border-radius: 12px !important;
	margin: 0 0 .9rem !important;
	display: block;
}
.pn-offline-product .related.products ul.products li.product .woocommerce-loop-product__title,
.pn-offline-product .upsells.products ul.products li.product .woocommerce-loop-product__title {
	font-size: 1rem !important;
	line-height: 1.3 !important;
	font-weight: 600 !important;
	margin: 0 0 .35rem !important;
	padding: 0 !important;
	color: var(--ink, #2b2e25) !important;
	min-height: 2.6em;
}
.pn-offline-product .related.products ul.products li.product .price,
.pn-offline-product .upsells.products ul.products li.product .price {
	margin: 0 0 .9rem !important;
	font-size: 1.05rem !important;
	font-weight: 700 !important;
	color: var(--accent-dark, #434d36) !important;
}
.pn-offline-product .related.products ul.products li.product .button,
.pn-offline-product .upsells.products ul.products li.product .button {
	margin-top: auto !important;
	width: 100%;
	padding: .7rem 1rem !important;
	font-size: .92rem !important;
	border-radius: 999px !important;
}

@media (max-width: 768px) {
	/* Stack on mobile: image goes full width above the description so
	   the flyer is actually readable on a phone. */
	.pn-offline-product div.product { gap: 1.2rem; flex-direction: column; }
	.pn-offline-product div.product .pn-course-image {
		flex: 0 0 auto !important;
		max-width: 100% !important;
		width: 100% !important;
	}
	.pn-offline-product div.product .pn-course-image img {
		max-width: 420px;
		width: 100%;
		margin: 0 auto;
	}
}

/* --- Offline course: compact training-date list ------------------------- */
.pn-datepick { margin: 1.4rem 0; }
.pn-datepick__title {
	display: block;
	font-size: 1.05rem;
	font-weight: 600;
	margin: 0 0 .3rem;
	color: #2b2e25;
}
.pn-datepick__note { margin: 0 0 .6rem; color: #76786a; font-size: .92rem; }
.pn-datepick__field { position: relative; max-width: 360px; }
.pn-datepick__field::after {
	content: "";
	position: absolute;
	right: 1rem; top: 50%;
	width: 9px; height: 9px;
	border-right: 2px solid #6f7d59;
	border-bottom: 2px solid #6f7d59;
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}
.pn-datepick__select {
	width: 100%;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding: .85rem 2.6rem .85rem 1.1rem;
	font-size: 1.02rem;
	font-family: var(--font, sans-serif);
	color: #2b2e25;
	background: #fff;
	border: 1px solid #e2e0d0;
	border-radius: 12px;
	cursor: pointer;
	line-height: 1.3;
}
.pn-datepick__select:focus {
	outline: none;
	border-color: #6f7d59;
	box-shadow: 0 0 0 2px rgba(111,125,89,.25);
}
.pn-datepick__empty {
	margin: 1.2rem 0; padding: 1rem 1.2rem;
	background: #f4f2e8; border: 1px solid #e2e0d0;
	border-left: 4px solid #6f7d59; border-radius: 10px; color: #2b2e25;
}

@media (max-width: 600px) {
	.pn-course-image { max-width: 180px; margin-bottom: 1.2rem; }
	.pn-datepick__field { max-width: 100%; }
	.pn-datepick__select { font-size: 1rem; }
}

/* --- WooCommerce product archive / category — branded card grid --------- */
.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1.8rem;
	margin: 1.5rem 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none !important; display: none !important; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	clear: none !important;
	padding: 1rem 1rem 1.3rem !important;
	background: #fff;
	border: 1px solid #e2e0d0;
	border-radius: 14px;
	box-shadow: 0 12px 32px rgba(44, 35, 41, .08);
	display: flex;
	flex-direction: column;
	text-align: left;
	transition: transform .15s ease, border-color .15s ease;
}
.woocommerce ul.products li.product:hover {
	transform: translateY(-4px);
	border-color: #6f7d59;
}
/* Kill the default blue tap-highlight on mobile and keep title/links
   in the brand palette across :link/:visited/:hover/:active/:focus.
   Also add the same press-down feel as the landing training-cards. */
.woocommerce ul.products li.product a,
.woocommerce ul.products li.product a:link,
.woocommerce ul.products li.product a:visited,
.woocommerce ul.products li.product a:hover,
.woocommerce ul.products li.product a:active,
.woocommerce ul.products li.product a:focus {
	color: inherit !important;
	text-decoration: none !important;
	-webkit-tap-highlight-color: transparent;
}
.woocommerce ul.products li.product a:focus-visible {
	outline: 2px solid var(--accent, #6f7d59);
	outline-offset: 3px;
	border-radius: 4px;
}
.woocommerce ul.products li.product:active,
.woocommerce ul.products li.product:has(a:active),
.woocommerce ul.products li.product:has(.button:active) {
	transform: translateY(1px) scale(.985) !important;
	box-shadow: 0 2px 8px rgba(43,46,37,.10) !important;
	transition: transform .12s ease-out, box-shadow .12s ease-out !important;
}
@media (prefers-reduced-motion: reduce) {
	.woocommerce ul.products li.product,
	.woocommerce ul.products li.product:hover,
	.woocommerce ul.products li.product:active { transform: none !important; transition: none !important; }
}
.woocommerce ul.products li.product a img {
	border-radius: 10px;
	margin: 0 0 .9rem !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 1.1rem !important;
	font-weight: 600 !important;
	color: #2b2e25 !important;
	padding: 0 !important;
	margin: 0 0 .4rem !important;
}
.woocommerce ul.products li.product .price {
	margin: 0 0 .9rem !important;
	font-size: 1.05rem !important;
}
.woocommerce ul.products li.product .button {
	margin-top: auto !important;
	width: 100%;
	text-align: center;
}
.woocommerce ul.products li.product .star-rating,
.woocommerce ul.products li.product .woocommerce-product-rating { display: none !important; }

/* Archive header / controls */
.woocommerce-products-header__title,
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering select {
	font-family: var(--font, sans-serif);
	color: #2b2e25;
}
.woocommerce .woocommerce-ordering select {
	border: 1px solid #e2e0d0;
	border-radius: 10px;
	padding: .45rem .7rem;
}

/* --- Product archive / category: strip WooCommerce chrome --------------- */
.tax-product_cat .woocommerce-breadcrumb,
.tax-product_cat .woocommerce-result-count,
.tax-product_cat .woocommerce-ordering,
.tax-product_cat .woocommerce-pagination,
.tax-product_cat .term-description,
.tax-product_cat .product-categories,
.tax-product_cat .widget_product_search,
.tax-product_cat .search-form,
.tax-product_cat form[role="search"],
.post-type-archive-product .woocommerce-breadcrumb,
.post-type-archive-product .woocommerce-result-count,
.post-type-archive-product .woocommerce-ordering,
.post-type-archive-product .woocommerce-pagination,
.post-type-archive-product .widget_product_search,
.post-type-archive-product .search-form,
.post-type-archive-product form[role="search"] { display: none !important; }

/* --- Tutor LMS courses archive (/courses/) --- brand grid styling same
 * as the WC offline archive: rounded card with image + body + price
 * row, no weird overlay title pill, proper grid columns by viewport. */
body.post-type-archive-courses .tutor-wrap.tutor-courses-wrap {
	max-width: var(--maxw, 1280px) !important;
	margin: 0 auto !important;
	padding: clamp(1.4rem, 3vw, 2rem) clamp(1.2rem, 3vw, 2rem) 4rem !important;
}
body.post-type-archive-courses .tutor-course-list.tutor-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
	gap: 1.6rem !important;
	margin: 0 !important;
	padding: 0 !important;
}
@media (min-width: 1100px) {
	body.post-type-archive-courses .tutor-course-list.tutor-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	}
}
@media (max-width: 900px) {
	body.post-type-archive-courses .tutor-course-list.tutor-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 1.2rem !important;
	}
}
@media (max-width: 520px) {
	body.post-type-archive-courses .tutor-course-list.tutor-grid {
		grid-template-columns: 1fr !important;
		gap: 1rem !important;
	}
}
body.post-type-archive-courses .tutor-card.tutor-course-card {
	background: #fff !important;
	border: 1px solid #e6e3d3 !important;
	border-radius: 18px !important;
	box-shadow: 0 10px 28px rgba(43, 46, 37, .07) !important;
	overflow: hidden !important;
	display: flex !important;
	flex-direction: column !important;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
	margin: 0 !important;
	padding: 0 !important;
}
body.post-type-archive-courses .tutor-card.tutor-course-card:hover {
	transform: translateY(-3px) !important;
	box-shadow: 0 18px 38px rgba(43, 46, 37, .14) !important;
	border-color: #cdd4ba !important;
}
/* Drop the white title overlay pill that floats over the bottom of the
   image — title goes back into the body row beneath the cover. */
body.post-type-archive-courses .tutor-card-image-top {
	position: relative !important;
	aspect-ratio: 4 / 5 !important;
	overflow: hidden !important;
}
body.post-type-archive-courses .tutor-card-image-top img,
body.post-type-archive-courses .tutor-card-image-top .tutor-ratio,
body.post-type-archive-courses .tutor-card-image-top .tutor-ratio-16x9 {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	border-radius: 0 !important;
}
body.post-type-archive-courses .tutor-card-image-top .tutor-course-card-cover {
	position: static !important;
	background: transparent !important;
	padding: 0 !important;
	box-shadow: none !important;
	border: 0 !important;
	margin: 0 !important;
}
body.post-type-archive-courses .tutor-card-body {
	padding: 1rem 1.1rem .5rem !important;
}
body.post-type-archive-courses .tutor-course-name {
	font-size: 1.05rem !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	margin: 0 0 .35rem !important;
	color: var(--ink, #2b2e25) !important;
	min-height: 2.6em !important;
}
body.post-type-archive-courses .tutor-course-name a {
	color: inherit !important;
	text-decoration: none !important;
}
body.post-type-archive-courses .tutor-card-footer {
	padding: 0 1.1rem 1.2rem !important;
	margin-top: auto !important;
	border-top: 0 !important;
}
body.post-type-archive-courses .tutor-card-footer .list-item-price .price {
	font-size: 1.05rem !important;
	font-weight: 700 !important;
	color: var(--accent-dark, #434d36) !important;
}
body.post-type-archive-courses .tutor-card-footer .list-item-button .tutor-btn {
	padding: .65rem 1rem !important;
	font-size: .9rem !important;
	border-radius: 999px !important;
	background: var(--accent, #6f7d59) !important;
	color: #fff !important;
	border: 0 !important;
	white-space: nowrap !important;
}
body.post-type-archive-courses .tutor-card-footer .list-item-button .tutor-btn:hover {
	background: var(--accent-dark, #434d36) !important;
}

/* --- Product category & shop archive: brand wrapper + card styling --- *
 * WC's default archive renders edge-to-edge with no container padding
 * and cramped 4-col cards. Centre everything in our brand container and
 * lift the cards to match the /offline-courses/ archive look. */
body.tax-product_cat .site-main,
body.post-type-archive-product .site-main {
	max-width: var(--maxw, 1280px);
	margin: 0 auto;
	padding: clamp(1.4rem, 3vw, 2rem) clamp(1.2rem, 3vw, 2rem) 4rem;
	box-sizing: border-box;
}
body.tax-product_cat .woocommerce-products-header,
body.post-type-archive-product .woocommerce-products-header {
	display: block !important;
	margin: .8rem 0 1.4rem;
}
body.tax-product_cat .woocommerce-products-header__title,
body.post-type-archive-product .woocommerce-products-header__title {
	display: block !important;
	font-size: clamp(1.7rem, 3vw, 2.4rem) !important;
	margin: 0 0 .5rem !important;
	color: var(--accent-dark, #434d36) !important;
	font-weight: 700 !important;
	letter-spacing: -.01em !important;
	text-align: left !important;
}
body.tax-product_cat ul.products.columns-4,
body.tax-product_cat ul.products.columns-3,
body.tax-product_cat ul.products.columns-2,
body.tax-product_cat ul.products,
body.post-type-archive-product ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
	gap: 1.6rem !important;
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
@media (min-width: 1100px) {
	body.tax-product_cat ul.products,
	body.post-type-archive-product ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	}
}
@media (max-width: 900px) {
	body.tax-product_cat ul.products,
	body.post-type-archive-product ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 1.2rem !important;
	}
}
@media (max-width: 520px) {
	body.tax-product_cat ul.products,
	body.post-type-archive-product ul.products {
		grid-template-columns: 1fr !important;
		gap: 1rem !important;
	}
}
/* Each card on the category archive — same brand polish as related
   products. Pulled from the offline-product card styles. */
body.tax-product_cat ul.products li.product,
body.post-type-archive-product ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	padding: 1rem 1rem 1.4rem !important;
	background: #fff !important;
	border: 1px solid #e6e3d3 !important;
	border-radius: 18px !important;
	box-shadow: 0 10px 28px rgba(43, 46, 37, .07) !important;
	text-align: left !important;
	display: flex !important;
	flex-direction: column !important;
	gap: .15rem !important;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
	float: none !important;
	clear: none !important;
}
body.tax-product_cat ul.products li.product:hover,
body.post-type-archive-product ul.products li.product:hover {
	transform: translateY(-3px) !important;
	box-shadow: 0 18px 38px rgba(43, 46, 37, .14) !important;
	border-color: #cdd4ba !important;
}
body.tax-product_cat ul.products li.product a img,
body.post-type-archive-product ul.products li.product a img {
	width: 100% !important;
	aspect-ratio: 4 / 5 !important;
	-o-object-fit: cover !important;
	object-fit: cover !important;
	border-radius: 12px !important;
	margin: 0 0 .9rem !important;
	display: block !important;
}
body.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title {
	font-size: 1.05rem !important;
	line-height: 1.3 !important;
	font-weight: 600 !important;
	margin: 0 0 .35rem !important;
	padding: 0 !important;
	color: var(--ink, #2b2e25) !important;
	min-height: 2.6em !important;
}
body.tax-product_cat ul.products li.product .price,
body.post-type-archive-product ul.products li.product .price {
	margin: 0 0 .9rem !important;
	font-size: 1.1rem !important;
	font-weight: 700 !important;
	color: var(--accent-dark, #434d36) !important;
}
body.tax-product_cat ul.products li.product .button,
body.post-type-archive-product ul.products li.product .button {
	margin-top: auto !important;
	width: 100% !important;
	padding: .75rem 1rem !important;
	font-size: .92rem !important;
	border-radius: 999px !important;
	text-align: center !important;
}

/* Disabled add-to-cart button (offline course, no date chosen yet).
   Visually clear muted state + "not-allowed" cursor + a small helper
   label appears below so the visitor knows WHY the button isn't
   working (they need to pick a date first). */
.pn-offline-product .single_add_to_cart_button:disabled,
.pn-offline-product .single_add_to_cart_button[disabled],
.single_add_to_cart_button:disabled,
.single_add_to_cart_button[disabled] {
	opacity: 1 !important;
	background: #c8ccba !important;
	color: #6b6f5c !important;
	border-color: #c8ccba !important;
	cursor: not-allowed !important;
	box-shadow: none !important;
	transform: none !important;
	pointer-events: auto !important;
}
.pn-offline-product .single_add_to_cart_button:disabled::after,
.pn-offline-product .single_add_to_cart_button[disabled]::after {
	content: '';
}
/* Live helper text just below the button when no date is chosen. */
.pn-offline-product form.cart::after {
	content: attr(data-pn-hint);
	display: block;
	margin-top: .55rem;
	font-size: .85rem;
	color: #a4452a;
	font-weight: 500;
	text-align: left;
	opacity: 0;
	transition: opacity .25s ease;
	pointer-events: none;
}
.pn-offline-product form.cart[data-pn-hint][data-pn-date-empty="1"]::after { opacity: 1; }

/* --- Cart page: drop the empty photo column, tighten the remove column -- */
.woocommerce-cart-form .product-thumbnail,
table.cart .product-thumbnail,
table.shop_table .product-thumbnail { display: none !important; }

table.cart th.product-remove,
table.cart td.product-remove,
.woocommerce-cart-form table.cart th.product-remove,
.woocommerce-cart-form table.cart td.product-remove {
	width: 46px !important;
	min-width: 46px !important;
	text-align: center !important;
	padding-left: .4rem !important;
	padding-right: .4rem !important;
}
table.cart td.product-name { padding-left: .6rem !important; }

/* --- Cart page: hide the useless "Update cart" button ------------------- */
/* Courses are sold individually — quantity never changes, so there is
   nothing to update. */
.woocommerce-cart-form button[name="update_cart"],
.woocommerce button[name="update_cart"],
.woocommerce input[name="update_cart"] { display: none !important; }

/* --- Cart page: kill the empty gap, compact everything ------------------ */
/* The name column absorbs all slack; the remove column shrinks to the X. */
.woocommerce-cart-form table.cart th.product-name,
.woocommerce-cart-form table.cart td.product-name {
	width: 100% !important;
	padding-left: .6rem !important;
}
.woocommerce-cart-form table.cart th.product-remove,
.woocommerce-cart-form table.cart td.product-remove {
	width: 1% !important;
	min-width: 0 !important;
	white-space: nowrap;
	padding: .7rem !important;
	text-align: center !important;
}
.woocommerce-cart-form table.cart td,
.woocommerce-cart-form table.cart th { padding: .7rem .8rem !important; }
.woocommerce-cart .woocommerce { max-width: 860px !important; }
.woocommerce-cart .cart_totals {
	padding: 1.1rem 1.3rem !important;
}
.woocommerce-cart .cart_totals h2 { font-size: 1.3rem !important; }
.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td { padding: .55rem .7rem !important; }

/* --- Cart table: fixed column layout (definitive, no photo column) ------ */
.woocommerce-cart-form table.cart {
	table-layout: fixed !important;
	width: 100% !important;
}
.woocommerce-cart-form table.cart th.product-thumbnail,
.woocommerce-cart-form table.cart td.product-thumbnail {
	display: none !important;
	width: 0 !important;
}
.woocommerce-cart-form table.cart th.product-remove,
.woocommerce-cart-form table.cart td.product-remove {
	width: 52px !important;
	text-align: center !important;
}
.woocommerce-cart-form table.cart th.product-name,
.woocommerce-cart-form table.cart td.product-name { width: auto !important; }
.woocommerce-cart-form table.cart th.product-price,
.woocommerce-cart-form table.cart td.product-price,
.woocommerce-cart-form table.cart th.product-quantity,
.woocommerce-cart-form table.cart td.product-quantity { width: 15% !important; }
.woocommerce-cart-form table.cart th.product-subtotal,
.woocommerce-cart-form table.cart td.product-subtotal { width: 17% !important; }

/* --- Sale price: no underline, warm accent, percentage badge ------------ */
/* The browser underlines <ins> by default — remove it everywhere. */
.woocommerce ins,
.price ins,
.ccard__price ins,
.training-card__price ins,
ins.woocommerce-Price-amount,
ins .woocommerce-Price-amount { text-decoration: none !important; background: transparent !important; }

/* Old price — quiet and small. */
.price del,
.ccard__price del,
.training-card__price del {
	color: #9a9c8e !important;
	font-weight: 400 !important;
	font-size: .82em;
	margin-right: .35rem;
}
/* New price — warm, eye-catching. */
.price ins,
.price ins .amount,
.ccard__price ins,
.ccard__price ins .amount,
.training-card__price ins,
.training-card__price ins .amount {
	color: #a8623a !important;
	font-weight: 700 !important;
}
/* "Sale -X%" badge next to the price. */
.pn-sale-tag {
	display: inline-block;
	margin-left: .45rem;
	padding: .18em .6em;
	font-size: .68em;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	line-height: 1.4;
	color: #ffffff;
	background: #a8623a;
	border-radius: 999px;
	vertical-align: middle;
	white-space: nowrap;
}

/* --- Checkout: Stripe payment method description (Bancontact, Klarna,
 * iDEAL, etc.). The notice is rendered as <fieldset>, which has browser-
 * specific min-width:min-content quirks (Firefox especially) AND Stripe
 * ships `min-inline-size: min-content` in upe-classic.css. Both collapse
 * the container to the width of the longest single word ("voltooien"),
 * making the text wrap one word per line.
 *
 * Switch to CSS grid: `1fr` for the text column is immune to the
 * min-content sizing problem flex `flex: 1 1 auto` runs into, AND we
 * use very high specificity to defeat anything Stripe ships. */
html body .wc-stripe-redirect-notice,
html body form.woocommerce-checkout .wc-stripe-redirect-notice,
html body:has(>.wp-site-blocks) form.woocommerce-checkout .wc-stripe-redirect-notice,
.wc-stripe-redirect-notice {
	all: unset;
	display: grid !important;
	grid-template-columns: 32px 1fr !important;
	column-gap: 14px !important;
	align-items: center !important;
	background: var(--cream, #f4f2e8) !important;
	border: 1px solid var(--line, #e2e0d0) !important;
	border-image: none !important;
	border-radius: 12px !important;
	padding: 14px 16px !important;
	margin: 0 !important;
	min-inline-size: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	font-family: var(--font, "Outfit", sans-serif) !important;
	font-size: .95rem !important;
	line-height: 1.5 !important;
	color: var(--ink, #2b2e25) !important;
}
html body .wc-stripe-redirect-notice__icon,
.wc-stripe-redirect-notice__icon {
	all: unset !important;
	display: block !important;
	width: 32px !important;
	height: 32px !important;
	color: var(--accent-dark, #434d36) !important;
}
html body .wc-stripe-redirect-notice__text,
.wc-stripe-redirect-notice__text {
	all: unset !important;
	display: block !important;
	min-width: 0 !important;
	width: 100% !important;
	margin: 0 !important;
	word-break: normal !important;
	overflow-wrap: break-word !important;
	color: inherit !important;
	font: inherit !important;
}
@media (max-width: 480px) {
	html body .wc-stripe-redirect-notice,
	.wc-stripe-redirect-notice {
		grid-template-columns: 28px 1fr !important;
		column-gap: 12px !important;
		padding: 12px 14px !important;
		font-size: .9rem !important;
	}
	html body .wc-stripe-redirect-notice__icon,
	.wc-stripe-redirect-notice__icon {
		width: 28px !important;
		height: 28px !important;
	}
}

/* iDEAL / Wero + Klarna logos rendered next to the radio label are huge
   pink/yellow blobs on mobile — cap to a sensible height. */
.wc-block-checkout__payment-method img,
.wc-block-components-payment-method img {
	max-height: 28px !important;
	width: auto !important;
	-o-object-fit: contain;
	object-fit: contain;
}

/* Tutor mobile dashboard footer (Dashboard / Enrolled Courses / Menu)
   sits at the bottom of the viewport with position:fixed. The space
   ABOVE the bar (between buttons) was effectively transparent and
   bled clicks through to the site-footer behind it, so tapping near
   the Polinails wordmark sent the visitor home. Trap pointer events,
   guarantee a full-width opaque background and lift the bar above the
   theme footer's stacking context. */
#tutor-dashboard-footer-mobile {
	background: #fff !important;
	box-shadow: 0 -2px 16px rgba(43, 46, 37, 0.12) !important;
	padding: 8px 10px calc(8px + env(safe-area-inset-bottom)) !important;
	pointer-events: auto !important;
	border-top: 1px solid var(--line, #e2e0d0) !important;
}
#tutor-dashboard-footer-mobile, #tutor-dashboard-footer-mobile * {
	pointer-events: auto !important;
}
/* Reserve space for the fixed bar so the site-footer stays below the
   visible area on mobile dashboard pages. Otherwise the bar overlaps
   the page-bottom and creates the "I tapped above the icons" trap. */
@media (max-width: 768px) {
	body.tutor-dashboard,
	body.tutor-dashboard-page {
		padding-bottom: 72px;
	}
	body.tutor-dashboard .site-footer { margin-bottom: 0; }
}

/* --- Minimal coupon-input width fix ----------------------------------- *
 * Single targeted override — the old block sets `min-width: 240px` but
 * no `flex-grow`, so when the row is narrower than 240+button width
 * the flex container collapses. Letting the input grow from 0 keeps
 * the rest of the cart layout intact while ensuring the field always
 * spans the available row width. */
html body.woocommerce-cart .coupon input#coupon_code {
	flex: 1 1 0 !important;
	width: 0 !important;
	min-width: 0 !important;
}

.woocommerce button[name="apply_coupon"]:disabled,
.woocommerce button[name="apply_coupon"][disabled] {
	opacity: .45 !important;
	cursor: not-allowed !important;
}
.woocommerce button[name="apply_coupon"]:disabled:hover {
	transform: none !important;
	background: #6f7d59 !important;
	border-color: #6f7d59 !important;
}

/* --- Cart page: tighter spacing + cleaner row layout -------------------- */
/* Close the gap between the header and the "Cart" title. */
.woocommerce-cart .page { padding-top: 1.4rem !important; }
.woocommerce-cart .page__header { margin-bottom: 1.1rem !important; }

/* Courses sell one-at-a-time — Quantity is always 1 and the per-row
   Subtotal equals Price, so both columns are dropped. Row = X · course · price. */
.woocommerce-cart-form table.cart th.product-quantity,
.woocommerce-cart-form table.cart td.product-quantity,
.woocommerce-cart-form table.cart th.product-subtotal,
.woocommerce-cart-form table.cart td.product-subtotal { display: none !important; }
.woocommerce-cart-form table.cart th.product-price,
.woocommerce-cart-form table.cart td.product-price {
	width: 26% !important;
	text-align: right !important;
	vertical-align: middle !important;
}
.woocommerce-cart-form table.cart td { vertical-align: middle !important; }

/* Product cell — name bold, training dates quiet and compact (like the
   side cart drawer). */
.woocommerce-cart table.cart td.product-name { line-height: 1.4; }
.woocommerce-cart table.cart td.product-name a { font-weight: 600; color: #2b2e25; }
.woocommerce-cart table.cart td.product-name dl.variation {
	margin: .3rem 0 0;
	font-size: .88rem;
	color: #76786a;
}
.woocommerce-cart table.cart td.product-name dl.variation dt,
.woocommerce-cart table.cart td.product-name dl.variation dd,
.woocommerce-cart table.cart td.product-name dl.variation dd p {
	display: inline;
	margin: 0;
}
.woocommerce-cart table.cart td.product-name dl.variation dd { margin-left: .25rem; }

/* --- Cart page: name link, clean dividers, recently-removed list -------- */
.woocommerce-cart table.cart td.product-name a {
	font-weight: 500 !important;
	text-decoration: none !important;
	color: #2b2e25 !important;
}
.woocommerce-cart table.cart td.product-name a:hover { color: #6f7d59 !important; }

/* One continuous divider between rows (hidden columns broke the old line). */
.woocommerce-cart-form table.cart tbody td {
	border: 0 !important;
	border-bottom: 1px solid #e2e0d0 !important;
}
.woocommerce-cart-form table.cart tbody tr:last-child td { border-bottom: 0 !important; }

/* Recently-removed items with per-item Undo. */
.pn-removed {
	margin: 0 0 1.1rem;
	padding: .7rem 1.1rem;
	background: #f4f2e8;
	border: 1px solid #e2e0d0;
	border-radius: 10px;
	font-size: .92rem;
	color: #2b2e25;
}
.pn-removed strong { color: #434d36; }
.pn-removed a { color: #6f7d59; font-weight: 600; }

/* --- Registration form: tidy, centred, full-width Register button ------- */
#tutor-registration-form {
	max-width: 520px;
	margin-left: auto !important;
	margin-right: auto !important;
}
#tutor-registration-form button[name="tutor_register_student_btn"] {
	display: block !important;
	width: 100% !important;
}

/* --- Hide WooCommerce's round "Sale!" flash — we show a clean SALE pill -- */
.woocommerce span.onsale,
.woocommerce-page span.onsale { display: none !important; }

/* --- Category navigation on product-category archives ------------------- */
.pn-cat-nav {
	display: flex;
	flex-wrap: wrap;
	gap: .7rem .65rem;
	margin: 0 0 2.4rem;
	padding: 0;
	align-items: center;
}
.pn-cat-nav a {
	padding: .65rem 1.25rem;
	border: 1px solid #e2e0d0;
	border-radius: 999px;
	font-size: .95rem;
	font-weight: 600;
	color: #434d36;
	text-decoration: none;
	background: #fff;
	transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
	line-height: 1.2;
}
.pn-cat-nav a:hover { border-color: #6f7d59; background: #f4f2e8; }
.pn-cat-nav a:active { transform: translateY(1px) scale(.97); }
.pn-cat-nav a.pn-cat-nav__all {
	background: transparent;
	border-color: transparent;
	color: #6f7d59;
	padding-left: .25rem;
	padding-right: .9rem;
}
.pn-cat-nav a.pn-cat-nav__all:hover { color: #434d36; background: transparent; }
.pn-cat-nav a.is-current {
	background: #6f7d59;
	color: #fff;
	border-color: #6f7d59;
}

/* --- Product cards on category archives: breathing room around content -- */
.woocommerce ul.products li.product {
	padding: 1.2rem 1.2rem 1.6rem !important;
	gap: .6rem;
}
.woocommerce ul.products li.product a img {
	margin: 0 0 1.9rem !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 1.15rem !important;
	margin: 0 0 .7rem !important;
	line-height: 1.35 !important;
	padding-top: .25rem !important;
}
.woocommerce ul.products li.product .price {
	margin: 0 0 1.3rem !important;
	font-size: 1.1rem !important;
	color: #434d36 !important;
	font-weight: 700 !important;
}
.woocommerce ul.products li.product .button {
	padding: .8rem 1.4rem !important;
	font-size: .95rem !important;
	margin-top: auto !important;
}

/* --- Cart: price column aligned right, same colour as course names ------ */
.woocommerce-cart-form table.cart th.product-price,
.woocommerce-cart-form table.cart td.product-price { text-align: right !important; }
.woocommerce-cart table.cart thead th {
	color: #2b2e25 !important;
	font-weight: 600 !important;
}
.woocommerce-cart table.cart td.product-price,
.woocommerce-cart table.cart td.product-price .amount,
.woocommerce-cart table.cart td.product-price bdi {
	color: #2b2e25 !important;
	font-weight: 500 !important;
}

/* --- Cart totals: tax note on its own line under the total -------------- */
.cart_totals .order-total td small,
.cart_totals .order-total td .includes_tax,
.woocommerce-checkout .order-total td small {
	display: block;
	margin-top: .25rem;
	font-size: .8rem;
	font-weight: 400;
	color: #76786a;
}

/* === Cart remove "×" — tidy circular button (all viewports) ============= */
.woocommerce a.remove {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 26px !important;
	height: 26px !important;
	border-radius: 50% !important;
	background: #f4f2e8 !important;
	border: 0 !important;
	color: #a8623a !important;
	font-size: 17px !important;
	line-height: 1 !important;
	text-decoration: none !important;
}
.woocommerce a.remove:hover { background: #a8623a !important; color: #fff !important; }

/* === Cart — clean mobile card layout =================================== */
@media (max-width: 768px) {
	.woocommerce-cart-form table.cart,
	.woocommerce-cart-form table.cart tbody { display: block; }
	.woocommerce-cart-form table.cart thead { display: none !important; }

	.woocommerce-cart-form table.cart tbody tr.cart_item {
		display: block;
		position: relative;
		background: #fff;
		border: 1px solid #e2e0d0 !important;
		border-radius: 12px;
		padding: 1rem 1rem .9rem;
		margin: 0 0 1rem;
	}
	.woocommerce-cart-form table.cart tbody tr.cart_item td {
		display: block;
		width: 100% !important;
		border: 0 !important;
		padding: 0 !important;
		text-align: left !important;
	}
	/* No stacked "Product / Price" labels — the card speaks for itself. */
	.woocommerce-cart-form table.cart tbody td::before { display: none !important; }

	/* Remove × — pinned to the card's top-right corner. */
	.woocommerce-cart-form table.cart td.product-remove {
		position: absolute !important;
		top: .55rem;
		right: .55rem;
		width: auto !important;
	}
	/* Course name — leave room for the × on the right. */
	.woocommerce-cart-form table.cart td.product-name {
		padding-right: 2rem !important;
		margin-bottom: .55rem !important;
	}
	/* Price — own line, right-aligned, separated from the name. */
	.woocommerce-cart-form table.cart td.product-price {
		text-align: right !important;
		padding-top: .6rem !important;
		border-top: 1px solid #e2e0d0 !important;
		font-weight: 600 !important;
		color: #2b2e25 !important;
	}
	/* Coupon / actions row — a plain block, not a card. */
	.woocommerce-cart-form table.cart td.actions {
		display: block;
		border: 0 !important;
		padding: 0 !important;
		margin-top: 1rem;
	}
}

/* Cart on mobile — no outer frame; each item is its own card. */
@media (max-width: 768px) {
	.woocommerce-cart-form table.cart {
		border: 0 !important;
		border-radius: 0 !important;
		box-shadow: none !important;
		background: transparent !important;
	}
}
