/* DhiEd checkout: details, payment and result pages (page "checkout"). Brand tokens come from the theme. */

.dh-co-page .dh-mbar { display: none !important; }
/* WooCommerce's layout styles set every image on its pages to height:auto, which blows up the header logo. */
.dh-co-page .dh-logo__mark { height: 1.4em; }

.dh-co {
	--co-navy: var(--dh-navy, #14213D);
	--co-cream: var(--dh-cream, #FBF5EA);
	--co-amber: var(--dh-amber, #E5A63B);
	--co-glow: var(--dh-glow, #F3D3A0);
	--co-teal: var(--dh-teal, #4A6369);
	--co-text: var(--dh-text, #39425A);
	--co-line: var(--dh-line, #E8DCC6);
	--co-field: #D6C7AA;
	--co-green: #0F7A41;
	--co-red: #B4472E;
	background: var(--co-cream);
	color: var(--co-text);
	font-size: 16px;
	line-height: 1.5;
	padding: 28px 0 56px;
}
.dh-co *, .dh-co *::before, .dh-co *::after { box-sizing: border-box; }
.dh-co__wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.dh-co__wrap--narrow { max-width: 620px; }

.dh-co__icon { flex: none; }
.dh-co__kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--co-teal); }
.dh-co__title { margin: 0; font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: clamp(28px, 6vw, 40px); line-height: 1.12; color: var(--co-navy); }
.dh-co__lede { margin: 0; font-size: 17px; }
.dh-co__h2 { margin: 8px 0 0; font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 22px; color: var(--co-navy); }
.dh-co__hint { margin: 0; font-size: 13px; color: var(--co-teal); }
.dh-co__center { text-align: center; }
.dh-co a { color: var(--co-navy); }
.dh-co a:hover { color: var(--co-teal); }

/* Steps */
.dh-co__steps { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--co-teal); }
.dh-co__steps li { display: flex; align-items: center; gap: 8px; }
.dh-co__steps span { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.dh-co__steps [aria-current] { color: var(--co-navy); font-weight: 700; }
.dh-co__steps [aria-current] span { background: var(--co-navy); border-color: var(--co-navy); color: var(--co-cream); }

.dh-co__intro { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }

/* Layout: summary first on phones, on the right on wide screens */
.dh-co__grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.dh-co__side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.dh-co__form { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 900px) {
	.dh-co__grid { gap: 40px; }
	.dh-co__side { order: 2; position: sticky; top: 96px; }
	.dh-co__form { background: #fff; border: 1px solid var(--co-line); border-radius: 18px; padding: 28px; }
}

/* Plan card */
.dh-co__plan { background: #fff; border: 1px solid var(--co-line); border-radius: 16px; overflow: hidden; }
.dh-co__offer { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 16px; background: var(--co-navy); color: var(--co-cream); font-size: 13px; font-weight: 500; }
.dh-co__badge { background: var(--co-amber); color: var(--co-navy); font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.dh-co__plan-body { padding: 16px 18px 6px; display: flex; flex-direction: column; gap: 14px; }
.dh-co__plan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dh-co__plan-name { margin: 2px 0 0; font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 23px; line-height: 1.15; color: var(--co-navy); }
.dh-co__price { margin: 0; text-align: right; display: flex; flex-direction: column; }
.dh-co__price del { font-size: 14px; color: #5B6478; }
.dh-co__price strong { font-size: 26px; color: var(--co-navy); line-height: 1.1; }
.dh-co__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.4; }
.dh-co__list li { display: flex; gap: 10px; }
.dh-co__list .dh-co__icon { color: var(--co-green); margin-top: 2px; }
.dh-co__plan-foot { margin: 0; padding: 10px 0; border-top: 1px dashed var(--co-line); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--co-teal); }
.dh-co__plan-foot a { font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }

/* Upgrade */
.dh-co__up { background: var(--co-glow); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; color: var(--co-navy); }
.dh-co__up .dh-co__kicker { color: #6B4A10; }
.dh-co__up h3 { margin: 0; font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 21px; line-height: 1.2; }
.dh-co__up p { margin: 0; font-size: 15px; }

/* Buttons */
.dh-co__btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 20px; border: 0; border-radius: 12px; font: inherit; font-size: 16px; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease; }
.dh-co a.dh-co__btn--navy, .dh-co__btn--navy { background: var(--co-navy); color: var(--co-cream); }
.dh-co a.dh-co__btn--navy:hover, .dh-co__btn--navy:hover { color: var(--co-cream); box-shadow: 0 8px 20px rgba(20, 33, 61, .2); }
.dh-co a.dh-co__btn--amber, .dh-co__btn--amber { background: var(--co-amber); color: var(--co-navy); }
.dh-co a.dh-co__btn--amber:hover { color: var(--co-navy); box-shadow: 0 8px 20px rgba(229, 166, 59, .35); }
.dh-co__btn--big { width: 100%; min-height: 56px; font-size: 17px; border-radius: 14px; }
.dh-co__btn:active { transform: translateY(1px); }
.dh-co__btn.is-busy { opacity: .7; cursor: progress; }
.dh-co__btn:focus-visible, .dh-co__wa:focus-visible { outline: 3px solid var(--co-amber); outline-offset: 2px; }

.dh-co__wa { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; border: 1.5px solid var(--co-green); border-radius: 12px; color: var(--co-green) !important; font-weight: 700; font-size: 15px; text-decoration: none; }
.dh-co__wa--solid { background: var(--co-green); color: #fff !important; }

/* Form */
.dh-co__field { display: flex; flex-direction: column; gap: 6px; }
.dh-co__field > label { font-size: 14px; font-weight: 700; color: var(--co-navy); }
.dh-co__field input[type=text], .dh-co__field input[type=email], .dh-co__field input[type=tel] { width: 100%; height: 50px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--co-navy); background: #fff; border: 1.5px solid var(--co-field); border-radius: 12px; }
.dh-co__field input:focus { outline: none; border-color: var(--co-navy); box-shadow: 0 0 0 3px rgba(229, 166, 59, .45); }
.dh-co__field input[aria-invalid=true] { border-color: var(--co-red); }
.dh-co__phone { display: flex; height: 50px; background: #fff; border: 1.5px solid var(--co-field); border-radius: 12px; overflow: hidden; }
.dh-co__phone:focus-within { border-color: var(--co-navy); box-shadow: 0 0 0 3px rgba(229, 166, 59, .45); }
.dh-co__phone span { display: flex; align-items: center; padding: 0 12px; font-weight: 500; color: var(--co-navy); background: #F6EEDF; border-right: 1.5px solid var(--co-field); }
.dh-co__field .dh-co__phone input { height: 100%; border: 0; border-radius: 0; box-shadow: none; min-width: 0; }
.dh-co__err { margin: 0; font-size: 14px; font-weight: 500; color: var(--co-red); }
.dh-co__alert { margin: 0; padding: 12px 14px; border-radius: 12px; background: #FBE9E4; color: #8A2F1B; font-weight: 500; }
.dh-co__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dh-co__coupon { background: #fff; border: 1px solid var(--co-line); border-radius: 12px; padding: 0 14px; }
.dh-co__coupon summary { min-height: 48px; display: flex; align-items: center; font-weight: 500; color: var(--co-navy); cursor: pointer; }
.dh-co__coupon .dh-co__field { padding-bottom: 14px; }
.dh-co__check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; min-height: 44px; cursor: pointer; }
.dh-co__check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--co-navy); }

.dh-co__totals { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.dh-co__totals p { margin: 0; display: flex; justify-content: space-between; gap: 12px; }
.dh-co__totals .dh-co__hint { display: block; }
.dh-co__saving { color: var(--co-green); font-weight: 500; }
.dh-co__total { padding-top: 10px; border-top: 1px solid var(--co-line); align-items: baseline; font-weight: 700; color: var(--co-navy); }
.dh-co__total strong { font-size: 24px; }

.dh-co__submit { display: flex; flex-direction: column; gap: 8px; }
.dh-co__submit .dh-co__hint { text-align: center; }
@media (max-width: 899px) {
	.dh-co__submit { position: sticky; bottom: 0; z-index: 5; margin: 0 -20px; padding: 12px 20px 14px; background: #fff; border-top: 1px solid var(--co-line); box-shadow: 0 -6px 18px rgba(20, 33, 61, .06); }
}
.dh-co__secure { margin: 0; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--co-teal); }
.dh-co__legal { margin: 4px 0 0; font-size: 12px; text-align: center; color: var(--co-teal); }

/* Result pages */
.dh-co__state { display: flex; flex-direction: column; gap: 18px; }
.dh-co__mark { width: 56px; height: 56px; border-radius: 50%; background: var(--co-green); color: #fff; display: flex; align-items: center; justify-content: center; }
.dh-co__mark--amber { background: var(--co-amber); color: var(--co-navy); }
.dh-co__mark--bad { background: #fff; border: 2px solid var(--co-red); color: var(--co-red); }
.dh-co__note { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--co-line); border-radius: 14px; padding: 16px; font-size: 15px; }
.dh-co__note .dh-co__icon { color: var(--co-teal); margin-top: 2px; }
.dh-co__note p { margin: 0; }
.dh-co__note strong { color: var(--co-navy); }
.dh-co__receipt { background: #fff; border: 1px solid var(--co-line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.dh-co__receipt h2 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--co-teal); }
.dh-co__receipt p { margin: 0; display: flex; justify-content: space-between; gap: 14px; }
.dh-co__receipt p span:last-child, .dh-co__receipt strong { color: var(--co-navy); text-align: right; }
.dh-co__next { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.dh-co__next li { display: flex; gap: 14px; align-items: flex-start; }
.dh-co__next li > span { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--co-glow); color: var(--co-navy); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.dh-co__next p { margin: 0; font-size: 15px; }
.dh-co__next strong { color: var(--co-navy); }
.dh-co__tips h2 { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--co-teal); }
.dh-co__tips ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }

.dh-co--paid { padding-top: 0; }
.dh-co__hero { background: var(--co-navy); color: var(--co-cream); padding: 36px 0 32px; margin-bottom: 24px; }
.dh-co__hero .dh-co__wrap { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.dh-co__hero .dh-co__kicker { color: var(--co-glow); }
.dh-co__hero .dh-co__title { color: var(--co-cream); }
.dh-co__hero .dh-co__lede { color: var(--co-line); }
.dh-co__extra:empty { display: none; }

/* Payment page: the gateway's own form inside DhiEd's frame */
.dh-co--pay .dh-co__wrap { display: flex; flex-direction: column; gap: 16px; }
.dh-co__gateway { background: #fff; border: 1px solid var(--co-line); border-radius: 16px; padding: 18px; overflow-x: auto; }
.dh-co__gateway table { width: 100%; border-collapse: collapse; font-size: 15px; }
.dh-co__gateway th, .dh-co__gateway td { padding: 8px 4px; border-bottom: 1px solid var(--co-line); text-align: left; }
.dh-co__gateway ul.wc_payment_methods { list-style: none; margin: 16px 0; padding: 0; }
.dh-co__gateway .wc_payment_method { padding: 10px 0; }
.dh-co__gateway #place_order, .dh-co__gateway .button { width: 100%; min-height: 56px; border: 0; border-radius: 14px; background: var(--co-navy); color: var(--co-cream); font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
	.dh-co__btn { transition: none; }
}
