/* Course detail and checkout use the theme's quieter spacing and colors. */
.course-detail .tutor-course-details-page {
	max-width: 1180px;
}

.course-detail .tutor-course-details-header .tutor-course-details-title {
	max-width: 760px;
	font-size: clamp(38px, 4.4vw, 58px);
	line-height: 1.08;
}

.course-detail.bws-no-course-reviews .tutor-course-details-header .tutor-course-details-ratings {display:none}
.course-detail.bws-no-course-reviews .tutor-course-details-header .tutor-course-details-title {margin-top:0!important}

.course-detail .tutor-course-thumbnail img {
	display: block;
	width: 100%;
	height: auto;
}

.course-detail ul.tutor-nav {margin: 0; padding-inline-start: 0; list-style: none}

.course-detail .bws-course-intro p,
.course-detail .tutor-course-details-header .tutor-meta,
.course-detail .tutor-course-details-actions .tutor-btn-ghost,
.course-detail .tutor-toggle-btn-text,
.course-detail .detail-time-grid span {color: #465e7b}

.course-detail .tutor-course-content-list-item-duration.tutor-color-muted {color: #465e7b !important}

.course-detail .tutor-sidebar-card {
	background: #fff;
	border: 1px solid #d6e1eb;
	border-radius: 14px;
	box-shadow: 0 14px 38px rgba(24, 42, 59, .08);
}

.course-detail .bws-course-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	margin-bottom: 18px;
}

.course-detail .bws-course-price strong {
	color: #182a3b;
	font-size: clamp(28px, 2.7vw, 36px);
	line-height: 1.15;
}

.course-detail .bws-course-price del {
	color: #526273;
	font-size: 16px;
	font-weight: 400;
	opacity: 1;
}

.course-detail .bws-course-price ins,
.course-detail .bws-course-price strong,
.course-detail .tutor-course-sidebar-card-pricing ins {
	text-decoration: none !important;
}

.course-detail .bws-payment-tags {display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px;margin:10px 0 18px}
.course-detail .bws-payment-tags span {padding:3px 7px;border:1px solid #d5e1ed;border-radius:5px;background:#f5f8fc;color:#52677d;font-size:10px;font-weight:600;line-height:1.2}

.course-detail .bws-buy-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	border: 1px solid #285dc6;
	border-radius: 8px;
	background: #285dc6;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.course-detail .bws-buy-button:hover,
.course-detail .bws-buy-button:focus-visible {
	background: #19489e;
	border-color: #19489e;
	color: #fff;
}

.course-detail .bws-mobile-buy-bar {
	display: none;
}

@media (min-width: 900px) {
	.course-detail .bws-course-intro,
	.course-detail .tutor-course-details-page {
		width: min(1180px, calc(100% - 64px));
		max-width: none;
		margin-inline: auto;
	}
	.course-detail .bws-course-intro {
		padding-inline: 0;
	}
	.course-detail .tutor-course-details-page {
		display: grid;
		padding-inline: 0;
		grid-template-columns: minmax(0, 1fr) minmax(290px, 330px);
		column-gap: clamp(28px, 4vw, 52px);
		align-items: start;
	}

	.course-detail .tutor-course-details-page > .tutor-course-details-header {
		grid-column: 1;
		grid-row: 1;
		min-width: 0;
		margin-bottom: 28px !important;
	}

	.course-detail .tutor-course-details-page > .tutor-row {
		display: contents;
	}

	.course-detail .tutor-course-details-page > .tutor-row > main {
		grid-column: 1;
		grid-row: 2;
		width: 100%;
		max-width: none;
		min-width: 0;
		padding: 0;
	}

	.course-detail .tutor-course-details-page > .tutor-row > aside {
		grid-column: 2;
		grid-row: 1 / span 2;
		align-self: stretch;
		width: 100%;
		max-width: none;
		min-width: 0;
		padding: 0;
	}

	.course-detail .tutor-single-course-sidebar {
		height: 100%;
		margin-top: 0 !important;
	}

	.course-detail .tutor-sidebar-card {
		position: sticky;
		top: 24px;
		z-index: 2;
	}
}

@media (max-width: 899px) {
	.course-detail .tutor-course-details-page.tutor-container {width:calc(100% - 40px);max-width:none;padding-inline:0;margin-inline:auto}
	.course-detail {
		padding-bottom: calc(100px + env(safe-area-inset-bottom));
	}

	.course-detail .tutor-course-details-header .tutor-course-details-title {
		font-size: clamp(34px, 7vw, 48px);
	}

	.bws-featured-course .bws-course-intro {
		padding-block: 16px 6px;
	}

	.bws-featured-course .bws-course-intro .eyebrow {
		margin-bottom: 0;
	}

	.bws-featured-course .bws-course-intro p,
	.bws-featured-course .tutor-course-details-header .tutor-course-details-ratings,
	.bws-featured-course .tutor-course-details-header .tutor-course-details-top {
		display: none;
	}

	.bws-featured-course .tutor-course-details-header {
		margin-bottom: 16px !important;
	}

	.bws-featured-course .tutor-course-details-title {
		margin-top: 0 !important;
	}

	.course-detail .bws-mobile-buy-bar {
		position: fixed;
		z-index: 50;
		right: 0;
		bottom: 0;
		left: 0;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 18px;
		padding: 12px max(20px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-right));
		border-top: 1px solid #d6e1eb;
		background: #fff;
		box-shadow: 0 -8px 24px rgba(24, 42, 59, .1);
	}

	.course-detail .bws-mobile-price {display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 8px;min-width:0;line-height:1.2}
	.course-detail .bws-mobile-price-current {color:#182a3b;font-size:22px;white-space:nowrap}
	.course-detail .bws-mobile-price-regular {color:#526273;font-size:13px;font-weight:400;white-space:nowrap}
	.course-detail .bws-mobile-buy-action {display:flex;flex-direction:column;align-items:center;gap:3px;flex:none}
	.course-detail .bws-mobile-buy-action .bws-payment-tags {display:flex;gap:2px;margin:0}
	.course-detail .bws-mobile-buy-action .bws-payment-tags span {padding:1px 3px;font-size:8px;white-space:nowrap}

	.course-detail .bws-mobile-buy-bar .bws-buy-button {
		flex: 0 0 auto;
		width: auto;
		min-width: 145px;
		min-height: 46px;
		margin: 0;
		padding: 8px 18px;
	}
	.course-detail .bws-course-sidebar-card > .bws-payment-tags,.course-detail .tutor-sidebar-card > .bws-payment-tags {display:none}
	.course-detail .bws-course-price ~ .bws-payment-tags {display:none}

	/* Tutor's hidden curriculum tooltips otherwise widen the whole mobile page. */
	.course-detail .tutor-accordion-item-header .tooltip-wrap {
		position: static;
	}

	.course-detail .tutor-accordion-item-header .tooltip-txt.tooltip-right {
		top: calc(100% + 6px);
		right: 12px;
		left: 12px;
		width: auto;
		max-width: none;
		transform: none;
	}
}

@media (max-width: 540px) {
	.course-detail .tutor-course-details-page.tutor-container {width:calc(100% - 36px)}
}

@media (max-width: 360px) {
	.course-detail .bws-mobile-buy-bar {
		gap: 10px;
		padding-right: max(12px, env(safe-area-inset-right));
		padding-left: max(12px, env(safe-area-inset-left));
	}

	.course-detail .bws-mobile-price-current {font-size:19px}
	.course-detail .bws-mobile-price-regular {font-size:11px}
	.course-detail .bws-mobile-buy-action .bws-payment-tags span {font-size:7px;padding-inline:2px}

	.course-detail .bws-mobile-buy-bar .bws-buy-button {
		min-width: 124px;
		padding-inline: 12px;
	}
}

/* The theme's normal 760px text column makes the Checkout block think it is mobile. */
body.woocommerce-checkout .bws-standard-page {
	padding-block: 48px 88px;
}

body.woocommerce-checkout .bws-standard-page > header {
	margin-bottom: 26px;
}

body.woocommerce-checkout .bws-standard-page .entry-content,
body.woocommerce-checkout .wp-block-woocommerce-checkout {
	width: 100%;
	max-width: none;
	margin: 0;
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	min-width: 0;
	border: 1px solid #d6e1eb;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(24, 42, 59, .045);
}

body.woocommerce-checkout .wc-block-checkout__main {
	padding: 28px;
}

body.woocommerce-checkout .woocommerce-thankyou-order-received {
	padding: 18px 22px;
	border: 1px solid #b8d0eb;
	border-radius: 12px;
	background: #eef6ff;
	color: #182a3b;
	font-weight: 600;
	line-height: 1.55;
}

body.woocommerce-checkout .woocommerce-thankyou-order-received a {
	display: inline-block;
	margin-left: 8px;
	color: #19489e;
	font-weight: 700;
	text-underline-offset: 3px;
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	padding: 24px;
}

body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary {
	border: 0;
	padding: 0;
}

body.woocommerce-checkout.bws-course-checkout .wc-block-components-order-summary-item__description {
	flex: 1;
	min-width: 0;
}

body.woocommerce-checkout.bws-course-checkout .wc-block-components-order-summary-item__total-price {
	display: none;
}

body.woocommerce-checkout .wc-block-components-product-name {
	font-size: 15px;
	line-height: 1.35;
}

body.woocommerce-checkout .wc-block-components-checkout-step__heading {
	color: #182a3b;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-blocks-components-select__select {
	border-color: #c7d5e3;
	border-radius: 8px;
	background: #fff;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	min-height: 54px;
	border-radius: 8px;
	background: #285dc6;
	color: #fff;
	font-weight: 700;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
	background: #19489e;
}

/* WooCommerce needs the country value for tax and payment validation. */
body.woocommerce-checkout.bws-course-checkout .wc-block-components-country-input:has(#billing-country option[value="IN"]:checked) {
	display: none;
}

body.woocommerce-checkout.bws-course-checkout .wc-block-checkout__order-notes {
	display: none;
}

body.bws-course-checkout .wc-block-checkout__billing-fields > :is(.wc-block-components-checkout-step__heading, .wc-block-components-checkout-step__heading-container) {
	display: none;
}

body.bws-course-checkout .wc-block-checkout__contact-fields .wc-block-components-checkout-step__heading-container {
	position: relative;
}

body.bws-course-checkout .wc-block-checkout__contact-fields .wc-block-components-checkout-step__heading:has(.bws-checkout-email-help) {
	display: flex;
	align-items: center;
	gap: 4px;
}

body.bws-course-checkout .wc-block-checkout__contact-fields .wc-block-components-checkout-step__heading:has(.bws-checkout-email-help) > .wc-block-components-checkout-step__title {
	width: auto;
	margin: 0;
}

.bws-checkout-email-help + .wc-block-components-checkout-step__heading-content {
	margin-inline-start: auto;
}

.bws-checkout-email-help {
	position: relative;
	display: inline-grid;
	place-items: center;
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #19489e;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.bws-checkout-email-help::before {
	content: '';
	position: absolute;
	inset: 5px;
	border: 1px solid #91a7c4;
	border-radius: 50%;
}

.bws-checkout-email-help:focus-visible {
	outline: 2px solid #285dc6;
	outline-offset: 1px;
}

body.bws-course-checkout .bws-checkout-email-note {
	position: absolute;
	z-index: 5;
	inset-block-start: 100%;
	inset-inline-start: 0;
	width: min(280px, 100%);
	margin: 4px 0 0;
	padding: 9px 12px;
	border: 1px solid #d6e1eb;
	border-radius: 8px;
	background: #f4f7fc;
	box-shadow: 0 4px 16px rgba(24, 42, 59, .12);
	color: #182a3b;
	font-size: 13px;
	line-height: 1.45;
}

.bws-checkout-email-note[hidden] {
	display: none;
}

@media (max-width: 919px) {
	body.woocommerce-checkout .wc-block-checkout__main,
	body.woocommerce-checkout .wc-block-checkout__sidebar {
		padding: 20px;
	}
}

@media (max-width: 800px) {
	/* WooCommerce renders the full summary in the actions block on narrow layouts. */
	body.bws-course-checkout .wc-block-components-sidebar-layout:has(.checkout-order-summary-block-fill-wrapper:not(.is-content-inline)) > .wc-block-checkout__sidebar {
		display: none;
	}

	body.bws-course-checkout:has(.wc-block-components-checkout-place-order-button) {
		--bws-checkout-bar-height: calc(72px + env(safe-area-inset-bottom, 0px));
		padding-block-end: var(--bws-checkout-bar-height);
	}

	body.bws-course-checkout .wc-block-checkout__form :is(input, select, a, button) {
		scroll-margin-block-end: var(--bws-checkout-bar-height, 72px);
	}

	body.bws-course-checkout .wc-block-checkout__actions_row:has(.wc-block-components-checkout-place-order-button) {
		position: fixed;
		z-index: 30;
		inset: auto 0 0;
		margin: 0;
		padding: 10px max(18px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
		border-top: 1px solid #d6e1eb;
		background: #fff;
		box-shadow: 0 -6px 24px rgba(24, 42, 59, .08);
	}

	body.bws-course-checkout .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button {
		width: 100%;
		min-height: 50px;
		margin: 0 auto;
	}
}

@media (max-width: 540px) {
	body.woocommerce-checkout .bws-standard-page {
		padding-block: 30px 64px;
	}

	body.woocommerce-checkout .bws-standard-page > header {
		margin-bottom: 20px;
	}

	body.woocommerce-checkout .bws-standard-page h1 {
		font-size: 38px;
	}

	body.bws-course-checkout .bws-standard-page {
		padding-top: 22px;
	}

	body.bws-course-checkout .bws-standard-page h1 {
		font-size: 32px;
	}

	body.woocommerce-checkout .wc-block-checkout__main,
	body.woocommerce-checkout .wc-block-checkout__sidebar {
		padding: 17px;
		border-radius: 11px;
	}
}

/* My Account uses the full page container instead of the article-width text column. */
body.woocommerce-account .bws-standard-page {padding-top:48px;padding-bottom:96px}
body.woocommerce-account .bws-standard-page > header {max-width:none;margin-bottom:38px;padding-bottom:22px}
body.woocommerce-account .bws-standard-page > header h1 {font-size:clamp(34px,3.5vw,48px);line-height:1.1}
body.woocommerce-account .bws-standard-page .entry-content {width:100%;max-width:none;margin-top:0;font-size:16px;line-height:1.6}
body.woocommerce-account .entry-content .woocommerce:has(> .woocommerce-MyAccount-navigation) {display:grid;grid-template-columns:224px minmax(0,1fr);align-items:start;column-gap:clamp(28px,4vw,56px)}
body.woocommerce-account .bws-standard-page .woocommerce-MyAccount-navigation {float:none;width:100%;margin:0}
body.woocommerce-account .bws-standard-page .woocommerce-MyAccount-content {float:none;width:100%;max-width:none;min-width:0;margin:0}
body.woocommerce-account .entry-content .woocommerce-MyAccount-navigation ul {list-style:none;margin:0;padding:8px;border:1px solid #e2e6eb;border-radius:12px;background:#fff}
body.woocommerce-account .entry-content .woocommerce-MyAccount-navigation li {list-style:none;margin:0;padding:0}
body.woocommerce-account .entry-content .woocommerce-MyAccount-navigation li + li {margin-top:2px}
body.woocommerce-account .entry-content .woocommerce-MyAccount-navigation a {display:block;padding:12px 14px;border-radius:7px;color:#465569;text-decoration:none;font-size:14px;font-weight:500;line-height:1.35;transition:background .15s,color .15s}
body.woocommerce-account .entry-content .woocommerce-MyAccount-navigation .is-active a {background:#edf2fb;color:#214fa7;font-weight:700}
body.woocommerce-account .entry-content .woocommerce-MyAccount-navigation a:hover {background:#f3f6fa;color:#214fa7;text-decoration:none}
body.woocommerce-account .entry-content .woocommerce-MyAccount-navigation a:focus-visible,
body.woocommerce-account .entry-content .bws-account-overview a:focus-visible {outline:2px solid var(--blue);outline-offset:2px}
body.woocommerce-account .woocommerce-MyAccount-content :is(.woocommerce-message,.woocommerce-info) {height:auto;min-height:0;margin:0 0 20px;padding:14px 16px 14px 44px !important;border:1px solid #dbe3f7;border-left:3px solid var(--blue);border-radius:10px;background:#f4f6fc;color:#334155;font-size:14px;box-shadow:none}
body.woocommerce-account .woocommerce-MyAccount-content :is(.woocommerce-message,.woocommerce-info)::before {top:15px;left:16px;color:var(--blue)}
body.woocommerce-account .woocommerce-MyAccount-content :is(.woocommerce-message,.woocommerce-info) .button {padding:8px 12px;border-radius:7px;background:#fff;color:#214fa7;font-size:13px}
body.woocommerce-account .bws-account-intro {margin:0 0 28px;padding:3px 0 27px;border-bottom:1px solid #e2e6eb}
body.woocommerce-account .bws-account-eyebrow {display:block;margin-bottom:13px;color:#476eb6;font-size:10px;font-weight:700;letter-spacing:.16em;line-height:1.4}
body.woocommerce-account .bws-account-intro h2 {margin:0 0 9px;color:#182a3b;font-size:clamp(29px,3vw,40px);line-height:1.14;letter-spacing:-.045em}
body.woocommerce-account .bws-account-intro p {margin:0;color:#647181;font-size:15px;line-height:1.6}
body.woocommerce-account .bws-account-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0}
body.woocommerce-account .bws-account-card {display:flex;flex-direction:column;min-width:0;min-height:248px;padding:28px;border:1px solid #e1e5e9;border-radius:12px;background:#fff}
body.woocommerce-account .bws-account-card h3 {margin:0 0 10px;color:#182a3b;font-size:clamp(21px,2vw,25px);line-height:1.25;letter-spacing:-.035em}
body.woocommerce-account .bws-account-card p {margin:0 0 26px;color:#647181;font-size:14px;line-height:1.65}
body.woocommerce-account .entry-content .bws-account-button {display:inline-flex;align-items:center;justify-content:space-between;gap:18px;align-self:flex-start;min-height:43px;margin-top:auto;padding:10px 15px;border-radius:7px;background:var(--blue);color:#fff;text-decoration:none;font-size:13px;font-weight:700;line-height:1.3;transition:background .15s}
body.woocommerce-account .entry-content .bws-account-button:hover {background:var(--blue-hover);color:#fff;text-decoration:none}
body.woocommerce-account .entry-content .bws-account-text-link {display:inline-flex;align-items:center;gap:12px;align-self:flex-start;min-height:43px;margin-top:auto;color:#214fa7;text-decoration:none;font-size:13px;font-weight:700;line-height:1.3}
body.woocommerce-account .entry-content .bws-account-text-link:hover {color:var(--blue-hover);text-decoration:underline;text-underline-offset:4px}
body.woocommerce-account .bws-account-settings-link {margin:23px 0 0;font-size:13px}
body.woocommerce-account .entry-content .bws-account-settings-link a {color:#52657b;text-decoration:none}
body.woocommerce-account .entry-content .bws-account-settings-link a:hover {color:var(--blue);text-decoration:underline;text-underline-offset:4px}
body.woocommerce-account .woocommerce-MyAccount-content :is(.woocommerce-orders-table,.woocommerce-table--order-details) {overflow:hidden;border:1px solid #e1e5ee;border-radius:12px;background:#fff}
body.woocommerce-account .woocommerce-MyAccount-content :is(.woocommerce-orders-table,.woocommerce-table--order-details) th {background:#f5f7fb;color:#344054}
body.woocommerce-account .woocommerce-MyAccount-content :is(.woocommerce-orders-table,.woocommerce-table--order-details) :is(th,td) {padding:14px 16px}
body.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm {padding:28px;border:1px solid #e1e5ee;border-radius:12px;background:#fff}
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Input {min-height:44px;border:1px solid #cbd5e1;border-radius:8px}
body.woocommerce-account .bws-standard-page .woocommerce-form-login,
body.woocommerce-account .bws-standard-page .woocommerce-ResetPassword,
body.woocommerce-account .bws-standard-page .woocommerce-form-register,
body.woocommerce-account .bws-standard-page .woocommerce-form.woocommerce-form-reset-password {width:100%;max-width:680px;margin:0;padding:clamp(22px,4vw,38px);border:1px solid #d6e1eb;border-radius:14px;background:#fff;box-shadow:0 12px 32px rgba(24,42,59,.05)}
body.woocommerce-account .bws-standard-page .woocommerce-form :is(input[type=text],input[type=email],input[type=password]) {width:100%;min-height:48px;padding:11px 13px;border:1px solid #c7d5e3;border-radius:8px;background:#fff}
body.woocommerce-account .bws-standard-page .woocommerce-form .button {min-height:46px;border-radius:8px;background:#285dc6;color:#fff}
body.woocommerce-account .bws-standard-page .woocommerce-form .button:hover {background:#19489e}
body.woocommerce-account .bws-standard-page .woocommerce-LostPassword {margin-top:17px;font-size:14px}
body.woocommerce-account .bws-standard-page .woocommerce-ResetPassword p:first-child {margin-bottom:20px}
@media(max-width:900px){body.woocommerce-account .entry-content .woocommerce:has(> .woocommerce-MyAccount-navigation){grid-template-columns:minmax(0,1fr);gap:24px}body.woocommerce-account .entry-content .woocommerce-MyAccount-navigation ul{display:flex;flex-wrap:wrap;gap:3px}body.woocommerce-account .entry-content .woocommerce-MyAccount-navigation li + li{margin-top:0}}
@media(max-width:620px){body.woocommerce-account .bws-standard-page{padding-top:35px;padding-bottom:70px}body.woocommerce-account .bws-standard-page>header{margin-bottom:24px;padding-bottom:18px}body.woocommerce-account .entry-content .woocommerce-MyAccount-navigation a{padding:10px 11px;font-size:13px}body.woocommerce-account .bws-account-intro{margin-bottom:21px;padding-bottom:21px}body.woocommerce-account .bws-account-actions{grid-template-columns:1fr;gap:12px}body.woocommerce-account .bws-account-card{min-height:0;padding:23px}body.woocommerce-account .woocommerce-MyAccount-content :is(.woocommerce-message,.woocommerce-info){align-items:flex-start;padding:14px 14px 14px 40px !important}body.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm{padding:20px}}
