/* Body Mind Yoga site features — components.
   Uses the theme tokens (--bmy-*) with fallbacks so components still look right elsewhere. */

.bmy-svg { flex-shrink: 0; vertical-align: -3px; }
.bmy-empty { padding: 20px; background: var(--bmy-lilac-pale, #f4eff8); border-radius: 12px; }

/* Shared bits */
.bmy-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.bmy-chip {
	display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
	background: var(--bmy-lilac-pale, #f4eff8); color: var(--bmy-purple-deep, #43206d);
	font-size: 13px; font-weight: 700; line-height: 1.5;
}
.bmy-chip .bmy-svg { width: 14px; height: 14px; }
.bmy-chip--accepting { background: #e7f3ec; color: #1f5d3a; }
.bmy-chip--full, .bmy-chip--paused { background: #f6e9e3; color: #7a3416; }
.bmy-button--ghost { background: transparent !important; color: var(--bmy-purple, #5e367e) !important; }
.bmy-button--ghost:hover { background: var(--bmy-lilac-pale, #f4eff8) !important; }

/* Term summary */
.bmy-term {
	display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px;
	background: #fff; border: 1px solid var(--bmy-border, #e5ddea); border-left: 4px solid var(--bmy-purple, #5e367e); border-radius: 12px;
}
.bmy-term__icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--bmy-lilac-pale, #f4eff8); color: var(--bmy-purple, #5e367e); }
.bmy-term__icon .bmy-svg { width: 22px; height: 22px; }
.bmy-term p { margin: 0; }
.bmy-term__headline { font-family: var(--bmy-font-head); font-weight: 700; font-size: 20px; color: var(--bmy-purple-deep, #43206d); margin-bottom: 2px !important; }
.bmy-term__note { margin-top: 6px !important; color: var(--bmy-text-2, #625a68); font-size: 16px; }
.bmy-term-list { margin-top: 20px; }
.bmy-term-list h3 { margin: 0 0 10px; font-size: 18px; }
.bmy-term-list ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.bmy-term-list li { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 12px 16px; background: #fff; border: 1px solid var(--bmy-border, #e5ddea); border-radius: 10px; font-size: 16px; }
.bmy-term-list li strong { min-width: 150px; color: var(--bmy-text, #302a35); }
.bmy-term-list li em { color: var(--bmy-text-2, #625a68); font-style: normal; width: 100%; font-size: 15px; }
.bmy-term-list__checked { margin: 10px 0 0; font-size: 14px; color: var(--bmy-text-2, #625a68); }

/* Timetable */
.bmy-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.bmy-filter[hidden] { display: none; }
.bmy-filter__btn {
	display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px;
	background: #fff; border: 1.5px solid var(--bmy-border, #e5ddea); border-radius: 999px; cursor: pointer;
	color: var(--bmy-text, #302a35); font: 600 16px/1 var(--bmy-font-body, sans-serif);
}
.bmy-filter__btn:hover { border-color: var(--bmy-purple, #5e367e); }
.bmy-filter__btn[aria-pressed="true"] { background: var(--bmy-purple-deep, #43206d); border-color: var(--bmy-purple-deep, #43206d); color: #fff; }
.bmy-tt__count { margin: 0 0 8px; font-size: 15px; color: var(--bmy-text-2, #625a68); }
.bmy-tt__group { margin-top: 28px; }
.bmy-tt__group[hidden], .bmy-venue[hidden], .bmy-class-card[hidden], .bmy-tt__empty[hidden] { display: none !important; }
.bmy-tt__suburb { margin: 0 0 14px !important; font-size: clamp(24px, 3vw, 30px) !important; }
.bmy-venue { background: #fff; border: 1px solid var(--bmy-border, #e5ddea); border-radius: 12px; overflow: hidden; }
.bmy-venue + .bmy-venue { margin-top: 16px; }
.bmy-venue__head { padding: 18px 24px; background: var(--bmy-lilac-pale, #f4eff8); }
.bmy-venue__name { margin: 0 0 4px !important; font-family: var(--bmy-font-head); font-size: 19px !important; color: var(--bmy-purple-deep, #43206d); }
.bmy-venue__address { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 16px; }
.bmy-venue__address .bmy-svg { color: var(--bmy-purple, #5e367e); }
.bmy-venue__address a { font-weight: 600; }
.bmy-venue__notes { margin: 6px 0 0; font-size: 15px; color: var(--bmy-text-2, #625a68); }
.bmy-class-card {
	display: grid; grid-template-columns: 200px 1fr auto; gap: 8px 24px; align-items: center;
	padding: 16px 24px; border-top: 1px solid var(--bmy-border, #e5ddea);
}
.bmy-venue__head + .bmy-venue__classes .bmy-class-card:first-child { border-top: 0; }
.bmy-class-card__when { display: flex; flex-direction: column; }
.bmy-class-card__day { font-weight: 700; font-size: 18px; color: var(--bmy-text, #302a35); }
.bmy-class-card__time { font-size: 17px; color: var(--bmy-text, #302a35); }
.bmy-class-card__teacher { margin: 0; font-size: 16px; color: var(--bmy-text-2, #625a68); }
.bmy-class-card__teacher strong { color: var(--bmy-text, #302a35); }
.bmy-class-card__note { margin: 6px 0 0; font-size: 15px; color: var(--bmy-text-2, #625a68); }
.bmy-class-card__closed { margin: 0; max-width: 260px; font-size: 15px; color: var(--bmy-text-2, #625a68); }
.bmy-class-card.is-closed .bmy-class-card__when { opacity: .7; }
.bmy-tt__empty { margin-top: 20px; padding: 24px; text-align: center; background: var(--bmy-lilac-pale, #f4eff8); border-radius: 12px; }
@media (max-width: 760px) {
	.bmy-class-card { grid-template-columns: 1fr; padding: 16px 18px; }
	.bmy-class-card__action .bmy-button { width: 100%; }
	.bmy-venue__head { padding: 16px 18px; }
}

/* Prices */
.bmy-price-list { margin: 0; background: #fff; border: 1px solid var(--bmy-border, #e5ddea); border-radius: 12px; overflow: hidden; }
.bmy-price-list__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 22px; border-top: 1px solid var(--bmy-border, #e5ddea); }
.bmy-price-list__row:first-child { border-top: 0; }
.bmy-price-list dt { font-weight: 700; color: var(--bmy-text, #302a35); }
.bmy-price-list dt span { display: block; font-weight: 400; font-size: 15px; color: var(--bmy-text-2, #625a68); }
.bmy-price-list dd { margin: 0; font-family: var(--bmy-font-head); font-weight: 700; font-size: 22px; color: var(--bmy-purple-deep, #43206d); white-space: nowrap; }
.bmy-price-list__ask { font-family: var(--bmy-font-body); font-size: 16px; color: var(--bmy-text-2, #625a68); }
.bmy-price-note { margin: 12px 0 0; font-size: 15px; color: var(--bmy-text-2, #625a68); }

/* Contact */
.bmy-contact { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.bmy-contact li { display: flex; gap: 14px; align-items: center; }
.bmy-contact__icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--bmy-lilac-pale, #f4eff8); color: var(--bmy-purple, #5e367e); }
.bmy-contact__icon .bmy-svg { width: 20px; height: 20px; }
.bmy-contact__label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bmy-text-2, #625a68); }
.bmy-contact a { font-size: 18px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.bmy-card .bmy-contact a, .wp-block-column .bmy-contact a { font-size: 16px; }

/* Audio library */
.bmy-audio h2 { margin: 0 0 16px; }
.bmy-audio__start { margin-bottom: 48px; }
.bmy-audio__start[hidden] { display: none; }
.bmy-audio__filters {
	display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 14px; align-items: end;
	padding: 18px 20px; margin-bottom: 14px; background: #fff; border: 1px solid var(--bmy-border, #e5ddea); border-radius: 12px;
}
.bmy-audio__filters .bmy-field { margin: 0; }
.bmy-audio__filter-actions { display: flex; align-items: center; gap: 14px; min-height: 48px; }
.bmy-audio__filter-actions [hidden] { display: none; }
.bmy-search { position: relative; display: block; }
.bmy-search .bmy-svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--bmy-text-2, #625a68); }
.bmy-search input { padding-left: 40px !important; }
.bmy-audio__count { margin: 0 0 14px; font-size: 15px; color: var(--bmy-text-2, #625a68); }
.bmy-audio__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bmy-audio-card {
	display: flex; flex-direction: column; gap: 6px; padding: 20px;
	background: #fff; border: 1px solid var(--bmy-border, #e5ddea); border-radius: 12px;
}
.bmy-audio-card[hidden] { display: none; }
.bmy-audio-card__head { display: flex; gap: 14px; align-items: flex-start; }
.bmy-audio-card__img {
	flex-shrink: 0; width: 80px; height: 80px; object-fit: cover; border-radius: 10px;
	background: var(--bmy-lilac-pale, #f4eff8); box-shadow: 0 0 0 1px var(--bmy-border, #e5ddea);
}
.bmy-audio-card__heading { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bmy-audio-card__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bmy-audio-card__cat { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--bmy-purple, #5e367e); }
.bmy-audio-card__len { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--bmy-text-2, #625a68); white-space: nowrap; }
.bmy-audio-card__len .bmy-svg { width: 14px; height: 14px; }
.bmy-audio-card__title { margin: 2px 0 0 !important; font-family: var(--bmy-font-head); font-size: 18px !important; line-height: 1.3; color: var(--bmy-purple-deep, #43206d); }
.bmy-audio-card__teacher { margin: 0; font-size: 15px; color: var(--bmy-text-2, #625a68); }
.bmy-audio-card__desc { margin: 2px 0 0; font-size: 15px; }
.bmy-audio-card audio { width: 100%; height: 44px; margin-top: auto; padding-top: 10px; box-sizing: content-box; }
.bmy-audio-card__foot { display: flex; justify-content: flex-end; }
.bmy-audio-card__dl { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; font-size: 14px; font-weight: 600; text-decoration: none; }
.bmy-audio-card__dl:hover { text-decoration: underline; }
.bmy-audio-card__transcript summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--bmy-purple, #5e367e); }
.bmy-audio__empty { padding: 32px; text-align: center; background: var(--bmy-lilac-pale, #f4eff8); border-radius: 12px; }
.bmy-audio__empty[hidden] { display: none; }
@media (max-width: 1000px) { .bmy-audio__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bmy-audio__filters { grid-template-columns: 1fr 1fr; } .bmy-field--search { grid-column: 1 / -1; } }
@media (max-width: 640px) { .bmy-audio__grid, .bmy-audio__filters { grid-template-columns: 1fr; } }

/* Forms */
.bmy-form { max-width: 720px; }
.bmy-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 640px) { .bmy-form__grid { grid-template-columns: 1fr; } }
.bmy-field { margin: 0 0 18px; }
.bmy-field label, .bmy-fieldset legend { display: block; margin-bottom: 6px; font-weight: 700; color: var(--bmy-text, #302a35); font-size: 16px; }
.bmy-req, .bmy-opt { font-weight: 400; color: var(--bmy-text-2, #625a68); font-size: 14px; }
.bmy-hint { margin: -2px 0 8px; font-size: 15px; color: var(--bmy-text-2, #625a68); }
.bmy-field input[type="text"], .bmy-field input[type="email"], .bmy-field input[type="tel"], .bmy-field input[type="search"], .bmy-field select, .bmy-field textarea {
	box-sizing: border-box; width: 100%; min-height: 48px; padding: 10px 14px;
	background: #fff; border: 1.5px solid #817488; border-radius: 8px;
	color: var(--bmy-text, #302a35); font: 400 17px/1.4 var(--bmy-font-body, sans-serif);
}
.bmy-field textarea { min-height: 120px; resize: vertical; }
.bmy-field input:focus, .bmy-field select:focus, .bmy-field textarea:focus { outline: 3px solid var(--bmy-lilac, #d6c5e2); border-color: var(--bmy-purple, #5e367e); }
.bmy-field.has-error input, .bmy-field.has-error select, .bmy-field.has-error textarea { border-color: #b3261e; border-width: 2px; }
.bmy-error { margin: 0 0 6px; color: #b3261e; font-weight: 600; font-size: 15px; }
.bmy-fieldset { border: 0; padding: 0; }
.bmy-radios { display: flex; flex-wrap: wrap; gap: 10px; }
.bmy-radio, .bmy-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: 16px; }
.bmy-radio { padding: 0 16px; border: 1.5px solid var(--bmy-border, #e5ddea); border-radius: 999px; background: #fff; }
.bmy-radio:has(input:checked) { border-color: var(--bmy-purple, #5e367e); background: var(--bmy-lilac-pale, #f4eff8); }
.bmy-radio input, .bmy-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--bmy-purple, #5e367e); }
.bmy-check { margin-bottom: 20px; align-items: flex-start; }
.bmy-check input { margin-top: 3px; flex-shrink: 0; }
.bmy-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.bmy-form__submit { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 6px; }
.bmy-form__submit .bmy-button[disabled] { opacity: .7; cursor: progress; }
.bmy-form__next { margin: 0; font-size: 15px; color: var(--bmy-text-2, #625a68); }
.bmy-form-notice { padding: 14px 18px; background: #fff7e6; border: 1px solid #f0d9a8; border-radius: 10px; font-size: 16px; }
.bmy-error-summary { margin-bottom: 24px; padding: 18px 22px; border: 2px solid #b3261e; border-radius: 10px; background: #fff; }
.bmy-error-summary h3 { margin: 0 0 8px !important; font-size: 18px !important; color: #b3261e !important; }
.bmy-error-summary ul { margin: 0; padding-left: 20px; }
.bmy-error-summary a { color: #b3261e; font-weight: 600; }
.bmy-form-success { padding: 26px 28px; background: #fff; border: 1px solid var(--bmy-border, #e5ddea); border-left: 5px solid #2e7d4f; border-radius: 12px; }
.bmy-form-success h3 { margin: 0 0 8px !important; }
.bmy-form-success p { margin: 0 0 10px; }
.bmy-form-success__ref { font-weight: 700; }

/* Inside page content: neutralise the page's list indentation and widths for components. */
.bmy-chips, .bmy-term-list ul, .bmy-contact { padding-left: 0 !important; }
.bmy-chips li, .bmy-term-list li, .bmy-contact li { max-width: none; margin-bottom: 0; }
.bmy-audio__filter-actions:not(:has(> :not([hidden]))) { display: none; }

/* Sessions & events (e.g. sound healing) */
.bmy-sessions { display: grid; gap: 12px; margin: 0; padding: 0 !important; list-style: none; }
.bmy-session {
	display: grid; grid-template-columns: 84px 1fr auto; gap: 20px; align-items: center; max-width: none !important; margin: 0 !important;
	padding: 16px 20px; background: #fff; border: 1px solid var(--bmy-border, #e5ddea); border-radius: 12px;
}
.bmy-session.is-closed { opacity: .75; }
.bmy-session__date {
	display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1;
	border-radius: 12px; background: var(--bmy-purple-deep, #43206d); color: #fff; line-height: 1.1;
}
.bmy-session__date .w, .bmy-session__date .m { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.bmy-session__date .d { font: 700 30px/1.1 var(--bmy-font-head); }
.bmy-session__title { margin: 0 0 4px !important; font-family: var(--bmy-font-head); font-size: 19px !important; color: var(--bmy-purple-deep, #43206d); }
.bmy-session__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 2px !important; font-size: 16px; color: var(--bmy-text, #302a35); }
.bmy-session__meta .bmy-svg { color: var(--bmy-purple, #5e367e); }
.bmy-session__meta a { font-weight: 600; }
.bmy-session__sep { color: var(--bmy-text-2, #625a68); }
.bmy-session__note { margin: 4px 0 0 !important; font-size: 15px; color: var(--bmy-text-2, #625a68); }
.bmy-session__action { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.bmy-sessions__phone { margin-top: 14px !important; font-size: 16px; }
.bmy-sessions-empty { padding: 24px; background: #fff; border: 1px dashed var(--bmy-control, #817488); border-radius: 12px; }
.bmy-sessions-empty__title { margin: 0 0 4px !important; font-family: var(--bmy-font-head); font-weight: 700; font-size: 20px; color: var(--bmy-purple-deep, #43206d); }
@media (max-width: 640px) {
	.bmy-session { grid-template-columns: 64px 1fr; gap: 14px; padding: 14px; }
	.bmy-session__date .d { font-size: 24px; }
	.bmy-session__action { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* Radio pills and checkbox: override the general .bmy-field label rule (block, bold, margin). */
.bmy-field .bmy-radio, .bmy-form .bmy-check {
	display: inline-flex; align-items: center; gap: 10px; margin: 0;
	font-weight: 400; font-size: 16px; line-height: 1.3; color: var(--bmy-text, #302a35);
}
.bmy-field .bmy-radio { padding: 10px 18px; }
.bmy-field .bmy-radio input, .bmy-form .bmy-check input { flex-shrink: 0; margin: 0; vertical-align: middle; }
.bmy-form .bmy-check { align-items: flex-start; margin-bottom: 20px; }
.bmy-form .bmy-check input { margin-top: 1px; }
.bmy-field .bmy-radio:has(input:checked) { font-weight: 600; }
.bmy-field .bmy-radio:has(input:focus-visible) { outline: 3px solid var(--bmy-lilac, #d6c5e2); outline-offset: 2px; }
