/* =============================================================================
   Guiderly Checkout — PMPro Overrides
   Loaded only on pages whose REQUEST_URI contains /checkout/
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Outer Layout — page background & centering
   ----------------------------------------------------------------------------- */

/* Page background — !important needed to beat most theme body rules */
body {
	background-color: #FAF8F4 !important;
}

/* Center the checkout area, add breathing room at top */
.pmpro_checkout {
	max-width: 560px;
	margin-right: auto;
	margin-left: auto;
	padding-top: 48px;
	padding-bottom: 64px;
	background: transparent;
}

/* Hide the WordPress page h1 (usually "Checkout" or the level name) —
   we'll replace it visually with the Guiderly wordmark below. */
.pmpro_checkout h1,
.pmpro_checkout > h1 {
	font-size: 0 !important;
	line-height: 0;
	margin: 0;
	padding: 0;
	color: transparent;
	border: none;
}

/* Guiderly wordmark injected above the form card */
#pmpro_form::before {
	content: 'Guiderly';
	display: block;
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 2rem;
	font-weight: 700;
	color: #1C2B3A;
	text-align: center;
	letter-spacing: -0.01em;
	margin-bottom: 28px;
}

/* -----------------------------------------------------------------------------
   Main Card — the form itself
   ----------------------------------------------------------------------------- */

.pmpro_checkout #pmpro_form,
#pmpro_form {
	background: #ffffff;
	border-radius: 16px;
	border: 0.5px solid #E0D9D0;
	padding: 32px;
	box-shadow: none !important;
}

/* -----------------------------------------------------------------------------
   Section Headings (h2)
   ----------------------------------------------------------------------------- */

.pmpro_checkout h2,
.pmpro_content h2 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 20px;
	font-weight: 400;
	color: #1C2B3A;
	border-bottom: 0.5px solid #E0D9D0;
	padding-bottom: 12px;
	margin-top: 28px;
	margin-bottom: 20px;
	text-transform: none;
	letter-spacing: 0;
}

.pmpro_checkout h2:first-of-type {
	margin-top: 0;
}

/* -----------------------------------------------------------------------------
   Membership Information Block
   ----------------------------------------------------------------------------- */

/* Level cost line ("$X / month") */
.pmpro_level_cost {
	font-size: 13px;
	color: #6B7A87;
	font-weight: 300;
	margin-bottom: 12px;
}

/* Tier name (strong inside the level block) */
.pmpro_checkout_level .pmpro_level strong,
.pmpro_level strong {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 22px;
	font-weight: 400;
	color: #1C2B3A;
	display: block;
	margin-bottom: 8px;
}

/* Feature list inside level block */
.pmpro_checkout_level ul {
	list-style: none;
	padding: 0;
	margin: 0 0 12px;
}

.pmpro_checkout_level ul li {
	font-size: 13px;
	color: #4A5A6A;
	padding: 5px 0 5px 20px;
	border-bottom: 0.5px solid #F0EBE4;
	position: relative;
	line-height: 1.5;
}

.pmpro_checkout_level ul li:last-child {
	border-bottom: none;
}

/* Terracotta checkmark */
.pmpro_checkout_level ul li::before {
	content: '✓';
	color: #9C6B4E;
	font-weight: 700;
	position: absolute;
	left: 0;
	top: 5px;
	line-height: 1.5;
}

/* Italic confirmation / note lines (em tags) */
.pmpro_checkout em {
	font-family: 'Playfair Display', Georgia, serif;
	font-style: italic;
	color: #6B7A87;
	font-size: 13px;
	display: block;
	margin: 12px 0;
}

/* -----------------------------------------------------------------------------
   Discount Code Box
   ----------------------------------------------------------------------------- */

/* PMPro uses several different class names across versions */
.pmpro_coupon_code_wrap,
.pmpro_discount_code_wrap,
.pmpro_checkout .pmpro_coupon,
div#pmpro_coupon {
	background: #F2EBE5;
	border: 0.5px solid #C49A82 !important; /* override any PMPro lime/yellow-green */
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 12px;
	color: #6B7A87;
	margin: 16px 0;
}

/* Override the yellow-green border PMPro sometimes applies to the input */
.pmpro_checkout input.pmpro_coupon_code,
.pmpro_coupon_code_wrap input[type="text"] {
	border-color: #C49A82 !important;
	outline-color: #9C6B4E !important;
	box-shadow: none !important;
}

/* Discount code link/toggle */
.pmpro_checkout a#pmpro_show_discount_code,
.pmpro_checkout .pmpro_coupon_code_wrap a {
	color: #9C6B4E;
	font-size: 12px;
	text-decoration: none;
}

/* -----------------------------------------------------------------------------
   Account Information — inputs & labels
   ----------------------------------------------------------------------------- */

.pmpro_checkout input[type="text"],
.pmpro_checkout input[type="email"],
.pmpro_checkout input[type="password"],
.pmpro_checkout input[type="tel"],
.pmpro_checkout input[type="number"],
.pmpro_checkout select,
.pmpro_checkout textarea {
	font-family: 'Open Sans', system-ui, sans-serif;
	font-size: 15px;
	color: #1C2B3A;
	background: #ffffff;
	border: 1px solid #C49A82;
	border-radius: 6px;
	padding: 10px 14px;
	width: 100%;
	box-sizing: border-box;
	outline: none;
	box-shadow: none;
	transition: border-color 0.15s ease;
	appearance: none;
}

.pmpro_checkout input[type="text"]:focus,
.pmpro_checkout input[type="email"]:focus,
.pmpro_checkout input[type="password"]:focus,
.pmpro_checkout input[type="tel"]:focus,
.pmpro_checkout select:focus,
.pmpro_checkout textarea:focus {
	border-color: #9C6B4E;
	box-shadow: 0 0 0 2px rgba(156, 107, 78, 0.12);
}

.pmpro_checkout label,
.pmpro_checkout .pmpro_label {
	font-family: 'Open Sans', system-ui, sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #1C2B3A;
	margin-bottom: 4px;
	display: block;
}

/* "Already have an account? Log in." box */
.pmpro_login_wrap,
.pmpro_checkout_login_wrap,
.pmpro_checkout p.pmpro_login,
.pmpro_checkout .pmpro_error,
#pmpro_account_information .pmpro_login_wrap {
	background: #F2EBE5;
	border: 0.5px solid #C49A82;
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 12px;
	color: #6B7A87;
	margin-bottom: 16px;
}

.pmpro_login_wrap a,
.pmpro_checkout p.pmpro_login a {
	color: #9C6B4E;
	text-decoration: none;
}

/* -----------------------------------------------------------------------------
   Privacy Policy / Checkbox Row
   ----------------------------------------------------------------------------- */

.pmpro_checkout .pmpro_tou_label,
.pmpro_checkout .pmpro_tou,
.pmpro_checkout .pmpro_signup_bottom,
.pmpro_checkout_box .pmpro_signup_terms,
.pmpro_checkout input[type="checkbox"] + label {
	font-size: 12px;
	color: #6B7A87;
	line-height: 1.5;
}

.pmpro_checkout .pmpro_tou_label a,
.pmpro_checkout .pmpro_tou a {
	color: #9C6B4E;
	text-decoration: none;
}

.pmpro_checkout .pmpro_tou_label a:hover,
.pmpro_checkout .pmpro_tou a:hover {
	text-decoration: underline;
}

/* -----------------------------------------------------------------------------
   Submit Button
   ----------------------------------------------------------------------------- */

.pmpro_checkout input[type="submit"],
.pmpro_checkout .pmpro_btn,
.pmpro_checkout .pmpro_btn-submit-checkout,
input.pmpro_btn-submit-checkout {
	font-family: 'Open Sans', system-ui, sans-serif !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	color: #ffffff !important;
	background: #836C52 !important;
	border: none !important;
	border-radius: 6px !important;
	padding: 12px 24px !important;
	width: 100%;
	cursor: pointer;
	margin-top: 8px;
	box-sizing: border-box;
	text-align: center;
	display: block;
	transition: background-color 0.2s ease;
	box-shadow: none !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}

.pmpro_checkout input[type="submit"]:hover,
.pmpro_checkout .pmpro_btn:hover,
.pmpro_checkout .pmpro_btn-submit-checkout:hover,
input.pmpro_btn-submit-checkout:hover {
	background: #6B4A35 !important;
	color: #ffffff !important;
}

/* Guarantee / note line below the submit button */
.pmpro_checkout_submit::after {
	content: '';        /* populated via JS or left as spacing — override with content if needed */
	display: block;
	font-size: 11px;
	color: #6B7A87;
	text-align: center;
	margin-top: 8px;
}

/* If PMPro or the page template outputs a <p> or <small> after the button */
.pmpro_checkout_submit p,
.pmpro_checkout_submit small,
.pmpro_checkout_submit span.pmpro_guarantee {
	font-size: 11px;
	color: #6B7A87;
	text-align: center;
	display: block;
	margin-top: 8px;
}

/* -----------------------------------------------------------------------------
   General link color inside the checkout form
   ----------------------------------------------------------------------------- */

.pmpro_checkout a {
	color: #9C6B4E;
	text-decoration: none;
}

.pmpro_checkout a:hover {
	text-decoration: underline;
}

/* -----------------------------------------------------------------------------
   Clean up any leftover PMPro default chrome
   ----------------------------------------------------------------------------- */

/* Remove any default table borders PMPro adds to level info */
.pmpro_checkout table,
.pmpro_checkout table td,
.pmpro_checkout table th {
	border: none;
}

/* Remove default PMPro yellow/orange success highlights */
.pmpro_checkout .pmpro_message,
.pmpro_checkout p.pmpro_message {
	background: #F2EBE5;
	border-color: #C49A82;
	color: #1C2B3A;
	border-radius: 8px;
}
