/* CST � Checkout & confirmation (demo-aligned, flat accents) */

.cst-tropical-checkout,
.cst-tropical-confirmation {
	--cst-yellow: #ffde7e;
	--cst-yellow-border: #e6c96a;
	--cst-accent-text: #1a1a1a;
	--cst-panel-border: #d8d8d8;
	--cst-tab-active: #2196f3;
	--cst-tab-active-text: #ffffff;
	--cst-green-price: #2e7d32;
	--cst-purchase-bg: #f2994a;
	--cst-purchase-border: #d97f32;
	--cst-shell-border: #c5dce8;
}

.cst-tropical-checkout .content.full-width .thumb,
.cst-tropical-confirmation .content.full-width .thumb {
	position: relative;
	margin-bottom: 0;
	overflow: hidden;
	border-radius: 0;
	max-height: 220px;
}

.cst-tropical-checkout .content.full-width .thumb img,
.cst-tropical-confirmation .content.full-width .thumb img {
	width: 100%;
	height: auto;
	min-height: 160px;
	object-fit: cover;
	object-position: center 35%;
	display: block;
}

/* Checkout hero: show full banner height (no crop). */
.cst-tropical-checkout .content.full-width .thumb.cst-checkout-hero {
	max-height: none;
	overflow: visible;
}

.cst-tropical-checkout .content.full-width .thumb.cst-checkout-hero img,
.cst-tropical-confirmation .cst-confirmation-hero-wrap .thumb.cst-checkout-hero,
.cst-tropical-confirmation .cst-confirmation-hero-wrap .thumb.cst-checkout-hero img {
	width: 100%;
	height: auto;
	min-height: 0;
	max-height: none;
	object-fit: unset;
	object-position: center center;
	display: block;
}

.cst-tropical-confirmation .cst-confirmation-hero-wrap .thumb.cst-checkout-hero {
	max-height: none;
	overflow: visible;
}

/* page.php banner + title duplicate the injected confirmation hero */
.cst-tropical-confirmation .row > .content.full-width:nth-child(1),
.cst-tropical-confirmation .row > .content.full-width:nth-child(2) {
	display: none;
}

.cst-tropical-confirmation article.container {
	display: block;
	width: 100%;
	max-width: none;
	padding: 15px 0 !important;
	box-sizing: border-box;
}

.cst-tropical-confirmation .cst-confirmation-hero-wrap {
	margin-top: -15px;
	padding-left: 0;
	padding-right: 0;
	margin-bottom: 0;
}

.cst-tropical-confirmation .cst-confirmation-hero-wrap .thumb.cst-checkout-hero {
	max-height: none;
	overflow: visible;
}

.cst-checkout-page.container,
.cst-tropical-checkout .cst-checkout-page.container {
	max-width: none;
	width: 100%;
	padding-left: 28px;
	padding-right: 28px;
	box-sizing: border-box;
}

.cst-checkout-welcome {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	background: #fffdf8;
	border: 1px solid var(--cst-yellow);
	border-radius: 8px;
	padding: 24px 28px;
	margin: 18px 0 22px;
	box-shadow: none;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.cst-checkout-welcome__copy--editor > :first-child {
	margin-top: 0;
	padding-top: 0;
}

.cst-checkout-welcome__copy--editor .wp-block-group,
.cst-checkout-welcome__copy--editor .wp-block-group__inner-container {
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
}

.cst-checkout-welcome__copy--editor,
.cst-checkout-welcome__copy--editor blockquote {
	font-size: 16px;
	line-height: 1.65;
	color: #333;
}

.cst-checkout-welcome__copy--editor h1,
.cst-checkout-welcome__copy--editor h2,
.cst-checkout-welcome__copy--editor h3,
.cst-checkout-welcome__copy--editor h4 {
	margin-top: 0;
	margin-bottom: 0;
	font-weight: 700;
	color: #222;
	line-height: 1.3;
}

.cst-checkout-welcome__copy--editor h2 {
	font-size: 1.75rem;
}

.cst-checkout-welcome__title {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 800;
	color: #222;
}

.cst-checkout-welcome__copy p,
.cst-checkout-welcome__copy li,
.cst-checkout-welcome__copy--editor .wp-block-paragraph {
	margin: 0 0 1em;
	padding: 0;
	line-height: 1.25;
	color: #333;
	font-size: 16px;
}

.cst-checkout-welcome__copy p:last-child,
.cst-checkout-welcome__copy li:last-child,
.cst-checkout-welcome__copy > :last-child,
.cst-checkout-welcome__copy--editor .wp-block-paragraph:last-child {
	margin-bottom: 0;
}

.cst-checkout-welcome__icon {
	flex: 0 0 112px;
	width: 112px;
	margin-top: 5px;
	background: #ffde7e;
	border-radius: 8px;
	padding: 14px 12px;
	box-sizing: border-box;
	line-height: 0;
	align-self: flex-start;
}

.cst-checkout-welcome__icon svg {
	width: 100%;
	height: auto;
	display: block;
}

.cst-checkout-page.container {
	padding-left: 0;
	padding-right: 0;
}

/* �� Payment shell (demo) �� */
.cst-payment-shell {
	background: #fffef9;
	border: 1px solid var(--cst-yellow);
	border-radius: 8px;
	padding: 0 0 20px;
	margin: 24px 0 40px;
	box-shadow: none;
	overflow: hidden;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.cst-tropical-checkout #wcl_checkout_wrap,
.cst-tropical-checkout #wcl_checkout_cart_form {
	width: 100%;
	max-width: 100%;
}

.cst-payment-shell__heading {
	margin: 0;
	padding: 14px 28px;
	background: var(--cst-yellow);
	border-bottom: 1px solid var(--cst-yellow-border);
	font-size: 17px;
	font-weight: 800;
	text-align: center;
	text-transform: uppercase;
	color: var(--cst-accent-text);
	border-radius: 0;
	letter-spacing: 0.02em;
}

.cst-payment-layout {
	display: grid;
	grid-template-columns: minmax(260px, 36%) 1fr;
	gap: 20px;
	padding: 20px 28px 24px;
	align-items: start;
}

.cst-payment-sidebar {
	background: #fffdf8;
	border: 1px solid var(--cst-yellow);
	border-radius: 8px;
	padding: 24px 22px 20px;
}

.cst-payment-sidebar__title {
	margin: 0 0 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid #e6e6e6;
	font-size: 22px;
	font-weight: 700;
	color: #222;
	line-height: 1.25;
	letter-spacing: 0.01em;
}

.cst-payment-sidebar__due-label {
	margin: 0 0 8px;
	font-size: 17px;
	color: #777;
	font-weight: 400;
	line-height: 1.3;
}

.cst-payment-sidebar__amount {
	font-size: 52px;
	font-weight: 700;
	color: var(--cst-green-price);
	line-height: 1;
	margin: 0 0 4px;
	letter-spacing: -0.02em;
}

.cst-payment-sidebar__rule {
	border: 0;
	border-top: 1px solid #e6e6e6;
	margin: 20px 0 18px;
}

.cst-payment-sidebar__secure {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	font-size: 13px;
	color: #444;
	line-height: 1.45;
	margin-bottom: 20px;
}

.cst-payment-sidebar__shield {
	flex: 0 0 56px;
	width: 56px;
	line-height: 0;
}

.cst-payment-sidebar__shield-svg {
	width: 56px;
	height: 56px;
	display: block;
}

.cst-payment-sidebar__secure-copy strong {
	display: block;
	margin-bottom: 6px;
	color: #222;
	font-size: 16px;
	font-weight: 700;
}

.cst-payment-sidebar__secure-copy p {
	margin: 0;
	font-size: 14px;
	color: #666;
	line-height: 1.45;
}

.cst-payment-sidebar__icons .wcl-payment-icons {
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.cst-payment-sidebar__icons .payment-icon {
	max-height: 28px;
	width: auto;
}

.cst-card-brands-img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

.cst-payment-main {
	min-width: 0;
	background: #fff;
	border: 1px solid var(--cst-panel-border);
	border-radius: 8px;
	padding: 20px 20px 16px;
}

.cst-payment-main #wcl_checkout_form_wrap {
	max-width: none !important;
}

.cst-payment-main #wcl_checkout_form_wrap .wcl_form {
	padding: 0 15px;
}

.cst-payment-main .wcl-payment-icons {
	display: none;
}

/* Tabs � separate rounded pills */
.cst-pay-tabs {
	display: flex;
	gap: 12px;
	margin-bottom: 18px;
	border: none;
	background: transparent;
}

.cst-pay-tab {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 16px;
	font-weight: 700;
	font-size: 15px;
	border: none;
	outline: none;
	background: #eceff1;
	color: #546e7a;
	cursor: default;
	border-radius: 10px;
	text-transform: none;
	box-shadow: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.cst-pay-tab__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	width: 32px;
	height: 22px;
	flex-shrink: 0;
}

.cst-pay-tab__icon svg {
	width: 100%;
	height: auto;
	max-height: 22px;
	display: block;
}

.cst-pay-tab--active {
	background: var(--cst-tab-active);
	color: var(--cst-tab-active-text);
}

.cst-pay-tab--active:hover,
.cst-pay-tab--active:focus {
	background: var(--cst-tab-active);
	color: var(--cst-tab-active-text);
}

.cst-pay-tab--dead {
	background: #eceff1;
	color: #78909c;
	cursor: not-allowed;
	opacity: 1;
}

.cst-pay-tab--dead:hover,
.cst-pay-tab--dead:focus {
	background: #eceff1;
	color: #78909c;
	opacity: 1;
}

/*
 * Theme (BuddyPress) sets button:hover { color: #fff !important } � override on checkout tabs.
 */
.cst-tropical-checkout .cst-pay-tabs button.cst-pay-tab {
	background: #eceff1 !important;
	border: none !important;
	color: #546e7a !important;
	text-transform: none !important;
	font-weight: 700 !important;
}

.cst-tropical-checkout .cst-pay-tabs button.cst-pay-tab--active,
.cst-tropical-checkout .cst-pay-tabs button.cst-pay-tab--active:hover,
.cst-tropical-checkout .cst-pay-tabs button.cst-pay-tab--active:focus {
	background: var(--cst-tab-active) !important;
	color: #fff !important;
}

.cst-tropical-checkout .cst-pay-tabs button.cst-pay-tab--dead,
.cst-tropical-checkout .cst-pay-tabs button.cst-pay-tab--dead:hover,
.cst-tropical-checkout .cst-pay-tabs button.cst-pay-tab--dead:focus,
.cst-tropical-checkout .cst-pay-tabs button.cst-pay-tab--dead:disabled:hover {
	background: #eceff1 !important;
	color: #78909c !important;
	cursor: not-allowed !important;
}

.cst-tropical-checkout .cst-pay-tabs button.cst-pay-tab--dead .cst-pay-tab__label,
.cst-tropical-checkout .cst-pay-tabs button.cst-pay-tab--dead:hover .cst-pay-tab__label,
.cst-tropical-checkout .cst-pay-tabs button.cst-pay-tab--dead .cst-pay-tab__icon {
	color: #78909c !important;
}

.cst-tropical-checkout .cst-pay-tabs button.cst-pay-tab--active .cst-pay-tab__label,
.cst-tropical-checkout .cst-pay-tabs button.cst-pay-tab--active .cst-pay-tab__icon {
	color: #fff !important;
}

#wcl-stripe-card-wrap,
.wcl-stripe-box {
	background: #fff;
	border: none;
	border-radius: 0;
	padding: 0;
}

.cst-stripe-field {
	margin-bottom: 16px;
}

.cst-stripe-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 8px;
}

.cst-stripe-field label,
#wcl-stripe-card-wrap label,
.wcl-stripe-box label {
	display: block;
	font-weight: 700;
	margin-bottom: 8px;
	font-size: 15px;
	color: #222;
}

.cst-stripe-input-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1px solid #cfcfcf;
	border-radius: 10px;
	background: #fff;
	padding: 0 12px;
	min-height: 48px;
	box-sizing: border-box;
}

.cst-stripe-field-icon {
	flex: 0 0 28px;
	width: 28px;
	color: #9aa3ad;
	line-height: 0;
}

.cst-stripe-field-icon svg {
	width: 28px;
	height: auto;
	display: block;
}

.cst-stripe-element-slot {
	flex: 1;
	min-width: 0;
	padding: 11px 0;
}

#wcl-stripe-card-element {
	border: 1px solid #cfcfcf;
	border-radius: 10px;
	padding: 12px 14px;
	background: #fff;
	min-height: 48px;
}

.cst-payment-charge-note {
	margin: 14px 0 0;
	font-size: 13px;
	color: #666;
	text-align: center;
}

.cst-payment-shell .wcl-checkout-agreement {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 12px 0;
	margin: 8px 0 16px;
	font-size: 14px;
	line-height: 1.45;
}

.cst-payment-shell .wcl-checkout-agreement a {
	color: #af5a28;
}

.cst-tropical-checkout .cst-payment-main .full-width,
.cst-tropical-checkout #wcl_checkout_form_wrap.full-width {
	padding: 0 !important;
}

.cst-tropical-checkout #wcl_checkout_form_wrap.wcl_clearfix::after,
.cst-tropical-checkout #wcl_purchase_form .full-width::after {
	display: none !important;
	content: none !important;
	height: 0 !important;
	line-height: 0 !important;
	font-size: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.cst-tropical-checkout #wcl_checkout_form_wrap fieldset:last-of-type {
	margin-bottom: 0;
}

.cst-tropical-checkout #wcl_checkout_form_wrap #wcl_purchase_submit {
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
}

.cst-tropical-checkout #wcl_purchase_submit {
	margin-top: 0;
	text-align: center;
	border: none;
	padding: 0;
}

.cst-purchase-button-wrap {
	text-align: center;
}

.cst-tropical-checkout #wcl-purchase-button,
.cst-tropical-checkout #wcl_purchase_submit .wcl-submit {
	background: var(--cst-purchase-bg) !important;
	border: 1px solid var(--cst-purchase-border) !important;
	color: #fff !important;
	font-size: 17px !important;
	font-weight: 800 !important;
	padding: 14px 36px !important;
	border-radius: 8px !important;
	min-width: 240px;
	text-transform: uppercase;
	box-shadow: none !important;
}

.cst-tropical-checkout #wcl-purchase-button::before {
	content: "?? ";
}

#wcl_final_total_wrap {
	display: none;
}

/* Cart / learners */
.cst-tropical-checkout .wcl-learners-inline {
	border-radius: 8px;
}

.cst-tropical-checkout .wcl-li-name,
.cst-tropical-checkout .wcl-li-email,
.cst-tropical-checkout .wcl-li-email2 {
	border-radius: 8px;
}

/* Receipt / confirmation */
.cst-receipt-confirmed {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	background: #eef8ee;
	border: 1px solid #b8ddb8;
	border-radius: 8px;
	padding: 20px 22px;
	margin: 0 0 20px;
}

.cst-receipt-confirmed__body {
	flex: 1;
	min-width: 0;
}

.cst-receipt-confirmed__title {
	margin: 0;
	padding-bottom: 0;
	font-size: 22px;
	font-weight: 800;
	color: #2e7d32;
}

.cst-receipt-confirmed__text {
	margin: 6px 0 0;
	line-height: 1.25;
	font-size: 16px;
	color: #333;
}

.cst-tropical-confirmation .cst-receipt-panel {
	border: 1px solid #ffde7e;
	border-radius: 8px;
	background: #fffef9;
	margin: 0 0 22px;
	box-sizing: border-box;
}

.cst-tropical-confirmation .cst-receipt-panel__heading {
	display: flex;
    align-items: center;
    gap: 10px;
    background: var(--cst-yellow);
    border-radius: 6px 6px 0 0;
    padding: 11px 14px;
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 800;
    color: #222;
    line-height: 1.25;
}

.cst-tropical-confirmation .cst-receipt-panel__icon {
	flex: 0 0 26px;
	line-height: 0;
}

.cst-tropical-confirmation .cst-receipt-panel__icon-svg {
	display: block;
	width: 26px;
	height: 26px;
}

/* Purchase Details � outer shell + inner grid (design sample) */
.cst-tropical-confirmation .cst-purchase-details-outer {
	width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #ffde7e;
    border-radius: 8px;
    background: #fffef9;
    margin: 0 0 22px;
}

.cst-tropical-confirmation .cst-purchase-details-outer__cell {
	padding: 0;
    vertical-align: top;
    border: 0px solid #ffde7e !important;
    border-radius: 8px;
}

.cst-tropical-confirmation .cst-purchase-details-outer__heading {
	display: flex;
    align-items: center;
    gap: 10px;
    background: var(--cst-yellow);
    border: 0px solid var(--cst-yellow-border);
    border-radius: 8px 8px 0 0;
    padding: 11px 14px;
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 800;
    color: #222;
    line-height: 1.25;
}

.cst-tropical-confirmation table.cst-purchase-details-inner,
.cst-tropical-confirmation #wcl_purchase_receipt.cst-purchase-details-inner {
	width: calc(100% - 20px);
    border: 1px solid #aed194;
    border-collapse: collapse;
    background: #fff;
    border-radius: 0px;
    overflow: hidden;
    margin: 10px;
}

.cst-tropical-confirmation #wcl_purchase_receipt.cst-purchase-details-inner td,
.cst-tropical-confirmation #wcl_purchase_receipt.cst-purchase-details-inner th {
	border: 1px solid #d4d4d4;
	padding: 10px 14px;
	vertical-align: middle;
	text-align: left;
	background: #fff;
	font-size: 15px;
	color: #222;
}

.cst-tropical-confirmation #wcl_purchase_receipt.cst-purchase-details-inner td:first-child {
	font-weight: 700;
	width: 42%;
}

.cst-tropical-confirmation #wcl_purchase_receipt.cst-purchase-details-inner tr.cst-receipt-payment-number-row td {
	background: #ddeac6;
	font-weight: 700;
}

.cst-tropical-confirmation #wcl_purchase_receipt.cst-purchase-details-inner tr.cst-receipt-total-row td {
	font-weight: 700;
}

.cst-tropical-confirmation #wcl_purchase_receipt.cst-purchase-details-inner .wcl_receipt_payment_status.complete {
	color: #2e7d32;
	font-weight: 700;
}

.cst-tropical-confirmation #wcl_purchase_receipt_products > tbody > tr > td {
	border: none;
	padding: 10px;
	background: transparent;
}

.cst-tropical-confirmation .cst-receipt-class-title-row td {
	background: #ddeac6 !important;
	padding: 11px 14px !important;
	font-weight: 700;
	color: #222;
	border: 1px solid #c8d8b8 !important;
}

.cst-tropical-confirmation .wcl_purchase_receipt_product_name {
	font-weight: 700;
}

.cst-tropical-confirmation .wcl_additional_learners_table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	background: #fff;
	border-top: 1px solid #d4d4d4;
}

.cst-tropical-confirmation .wcl_additional_learners_table th {
	background: #c5d4bc;
	border: 1px solid #b8c7af;
	padding: 10px 12px;
	font-weight: 700;
	text-align: left;
	color: #222;
}

.cst-tropical-confirmation .wcl_additional_learners_table td {
	border: 1px solid #d4d4d4;
	padding: 10px 12px;
	background: #fff;
	text-align: left;
}

.cst-tropical-confirmation .wcl_receipt_payment_status.complete {
	color: #2e7d32;
	font-weight: 800;
}

.cst-tropical-confirmation .cst-receipt-section-intro {
	margin: 0 0 12px;
	padding: 0 15px;
	color: #444;
	font-size: 15px;
	line-height: 1.45;
}

.cst-tropical-confirmation .newheading.center {
	display: none;
}

@media (max-width: 900px) {
	.cst-payment-layout {
		grid-template-columns: 1fr;
		padding: 20px 20px 24px;
	}

	.cst-checkout-page.container,
	.cst-tropical-checkout .cst-checkout-page.container {
		padding-left: 20px;
		padding-right: 20px;
	}

	.cst-checkout-welcome {
		flex-direction: column;
	}
}
.cst-tropical-confirmation table#wcl_purchase_receipt, .cst-tropical-confirmation table#wcl_purchase_receipt_products {
    margin: 10px;
    width: calc(100% - 20px);
}