/*
 * Store pages (login, account, checkout, receipt, invoice) plus About and Contact.
 * EDD, Recurring, Software Licensing, Stripe and Gravity Forms print most of this markup; it is styled by their ids
 * and classes. Rule from Alex: a rounded element gets a border on all four sides or none. Rows and cells here are
 * square, so a top rule between them is allowed.
 */

/* ---------- Shared ---------- */
@keyframes wpcc26-spin {
	to { transform: rotate(360deg); }
}

.spin {
	flex: none;
	animation: wpcc26-spin 0.8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
	.spin { animation: none; }
}

.icon-bubble--white { background: var(--white); color: var(--accent-dark); border-radius: 16px; }
.icon-bubble--white-mint { background: var(--white); color: var(--green); border-radius: 16px; }
.icon-bubble--white-butter { background: var(--white); color: #6b4f00; border-radius: 16px; }
.icon-bubble--butter { background: var(--butter); color: #6b4f00; border-radius: 14px; }
.icon-bubble--lilac { background: var(--lilac); color: #4b3fb5; border-radius: 14px; }

.store-section {
	padding-top: clamp(24px, 4vw, 48px);
}

.store-stack {
	gap: 24px;
}

.store-panel {
	min-width: 0;
	padding: clamp(22px, 3.4vw, 40px);
	border-radius: var(--r-lg);
	background: var(--white);
	box-shadow: 0 0 0 1px rgba(35, 26, 58, 0.05), var(--shadow-float);
	overflow-x: auto;
}

.store-panel > * + * {
	margin-top: 18px;
}

.store-panel__head {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 20px;
}

.store-panel__head p,
.store-panel > p {
	margin: 0;
}

.store-panel .muted {
	font-size: 15px;
	line-height: 1.55;
}

.store-back {
	font-size: 15px;
}

.store-empty,
.edd-no-purchases,
.edd-no-downloads,
.edd_sl_no_keys {
	margin: 0;
	padding: 18px 20px;
	border-radius: var(--r-md);
	background: var(--sand);
	color: var(--muted);
	font-size: 15px;
	line-height: 1.55;
}

.store-sub {
	display: block;
	color: var(--muted);
	font-size: 14px;
	font-weight: 500;
}

.status-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: var(--pill);
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.status-pill::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: var(--pill);
	background: currentColor;
}

.status-pill--ok { background: var(--success-bg); color: var(--success); }
.status-pill--off { background: var(--track); color: #3b3352; }
.status-pill--bad { background: #fde8e6; color: var(--error); }

.store-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px;
}

.store-action {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 14px;
	border-radius: var(--pill);
	background: var(--white);
	box-shadow: 0 0 0 1px rgba(35, 26, 58, 0.14);
	color: var(--ink);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.store-action:hover {
	background: var(--sand);
	color: var(--ink);
}

.store-action--primary {
	background: var(--accent);
	box-shadow: none;
	color: var(--white);
}

.store-action--primary:hover {
	background: #bb3518;
	color: var(--white);
}

.store-action--quiet {
	color: var(--muted);
}

/* Alerts printed by EDD and its add-ons */
.edd-alert,
.edd_errors {
	margin: 0 0 18px;
	padding: 14px 18px;
	border-radius: var(--r-md);
	font-size: 15px;
	line-height: 1.5;
}

.edd-alert p,
.edd_errors p {
	margin: 0;
}

.edd-alert p + p,
.edd_errors p + p {
	margin-top: 6px;
}

.edd-alert-success,
.edd_success {
	background: var(--success-bg);
	color: var(--success);
}

.edd-alert-error,
.edd_errors {
	background: #fde8e6;
	color: var(--error);
}

.edd-alert-warn,
.edd-alert-info {
	background: var(--butter);
	color: #5b4a1f;
}

/* Tables from EDD, Recurring and Software Licensing */
.store .edd-table,
.store-table {
	width: 100%;
	min-width: 520px;
	border-collapse: collapse;
	color: var(--ink);
	font-size: 15px;
	line-height: 1.45;
}

.store .edd-table th,
.store .edd-table td,
.store-table th,
.store-table td {
	padding: 14px 16px;
	text-align: left;
	vertical-align: middle;
}

.store .edd-table thead th,
.store-table thead th {
	background: var(--sand);
	color: var(--muted);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.store .edd-table thead th:first-child,
.store-table thead th:first-child {
	border-radius: 14px 0 0 14px;
}

.store .edd-table thead th:last-child,
.store-table thead th:last-child {
	border-radius: 0 14px 14px 0;
}

.store .edd-table tbody tr + tr > *,
.store-table tbody tr + tr > *,
.store .edd-table tfoot tr > * {
	border-top: 1px solid var(--line);
}

.store .edd-table tbody th,
.store-table tbody th {
	font-weight: 700;
}

.store .edd-table a:not(.store-action):not(.btn) {
	color: var(--accent-dark);
	font-weight: 700;
}

.store-table-card {
	box-shadow: none;
	border-radius: 0;
	background: transparent;
}

/* License keys (Software Licensing) */
.edd_sl_license_key {
	width: min(100%, 300px);
	min-height: 40px;
	padding: 0 12px;
	border: 1.5px solid rgba(35, 26, 58, 0.12);
	border-radius: 12px;
	background: var(--sand);
	color: var(--ink);
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	font-size: 14px;
}

.key-copy {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	margin: 4px 0 4px 6px;
	padding: 0 14px;
	border: 0;
	border-radius: var(--pill);
	background: var(--white);
	box-shadow: 0 0 0 1px rgba(35, 26, 58, 0.14);
	color: var(--ink);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	vertical-align: middle;
}

.key-copy.is-done {
	background: var(--success-bg);
	box-shadow: none;
	color: var(--success);
}

.edd-sl-manage-license-header {
	margin: 0 0 12px;
	color: var(--ink);
	font-family: var(--font-serif);
	font-size: 22px;
	font-weight: 600;
}

.edd_sl_form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.edd_sl_form .edd-input {
	flex: 1 1 240px;
}

/* ---------- Account navigation (in the sky band) ---------- */
.store-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin-top: 6px;
}

.store-nav__track {
	justify-content: flex-start;
	margin: 0;
	list-style: none;
	background: rgba(255, 255, 255, 0.55);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.store-nav__track li {
	display: flex;
}

.store-nav__track .seg__btn {
	gap: 8px;
}

.store-nav__out {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--accent-dark);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

/* ---------- Forms on store pages ---------- */
.store-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0;
}

.store-form .field {
	margin: 0;
}

.store-form fieldset {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.store-form__submit {
	width: 100%;
}

.check {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	color: #3b3352;
	font-size: 15px;
	cursor: pointer;
}

.check input,
.edd-terms-agreement input,
.edd-privacy-policy-agreement input,
.store input[type="checkbox"],
.store input[type="radio"] {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--accent);
}

.pw-field {
	position: relative;
	display: block;
}

.pw-field .input {
	padding-right: 56px;
}

.pw-toggle {
	position: absolute;
	top: 3px;
	right: 3px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--pill);
	background: transparent;
	color: var(--muted);
	cursor: pointer;
}

.pw-toggle[hidden],
.pw-toggle[aria-pressed="true"] .pw-toggle__show,
.pw-toggle[aria-pressed="false"] .pw-toggle__hide {
	display: none;
}

.store input[aria-busy="true"],
.store button[aria-busy="true"],
.gform_wrapper button[aria-busy="true"] {
	opacity: 0.8;
	pointer-events: none;
}

.store button[aria-busy="true"],
.gform_wrapper button[aria-busy="true"] {
	gap: 10px;
}

/* ---------- Log in ---------- */
.store-auth {
	width: 100%;
	max-width: 480px;
	margin-top: 8px;
}

.store-card {
	padding: clamp(24px, 4vw, 36px);
	border-radius: var(--r-lg);
	background: var(--white);
	box-shadow: 0 0 0 1px rgba(35, 26, 58, 0.05), var(--shadow-float);
}

.store-login__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px 16px;
}

.store-login__row .text-link {
	min-height: 44px;
	font-size: 15px;
}

.store-card__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0 8px;
	margin: 22px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 15px;
}

.store-card__foot .text-link {
	min-height: 44px;
}

.store--login .sky {
	padding-bottom: 24px;
}

.store--login .sky__title {
	align-items: flex-start;
}

.store--login .sky__spot {
	margin-top: 120px;
}

/* ---------- Checkout ---------- */
.co-section {
	padding-top: clamp(16px, 3vw, 32px);
}

.co #edd_checkout_wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
	gap: clamp(24px, 3vw, 40px);
	align-items: start;
}

.co #edd_checkout_cart_form {
	grid-column: 2;
	grid-row: 1;
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.co #edd_checkout_cart_wrap {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.co #edd_checkout_form_wrap {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.co-card,
.co #edd_purchase_form {
	padding: clamp(22px, 3vw, 32px);
	border-radius: var(--r-lg);
	background: var(--white);
	box-shadow: 0 0 0 1px rgba(35, 26, 58, 0.05), var(--shadow-card);
}

.co-step,
.co #edd_checkout_user_info > legend,
.co #edd_cc_address > legend,
.co #edd_login_fields > legend {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
	padding: 0;
	color: var(--ink);
	font-family: var(--font-serif);
	font-variation-settings: "SOFT" 100, "WONK" 0;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
}

.co-step__num,
.co #edd_checkout_user_info > legend::before,
.co #edd_cc_address > legend::before,
.co #edd_login_fields > legend::before {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: var(--pill);
	background: var(--accent-tint);
	color: var(--accent-dark);
	font-family: var(--font-sans);
	font-size: 14px;
	font-weight: 800;
}

.co #edd_checkout_user_info > legend::before,
.co #edd_login_fields > legend::before {
	content: "2";
}

.co #edd_cc_address > legend::before {
	content: "3";
}

.co-note {
	margin: 14px 0 0;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.5;
}

/* Step 1: plans */
.co-plans__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.co-plans__list li {
	display: flex;
}

.co-plan {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px 18px 18px 50px;
	border-radius: 20px;
	background: var(--white);
	box-shadow: 0 0 0 1px rgba(35, 26, 58, 0.14);
	color: var(--ink);
	text-decoration: none;
	transition: box-shadow 160ms ease, background-color 160ms ease;
}

a.co-plan:hover {
	color: var(--ink);
	box-shadow: 0 0 0 1.5px rgba(35, 26, 58, 0.3);
}

.co-plan.is-current {
	background: var(--accent-tint);
	box-shadow: 0 0 0 2px var(--accent);
}

.co-plan.is-switching {
	opacity: 0.75;
}

.co-plan__radio {
	position: absolute;
	top: 20px;
	left: 18px;
	width: 20px;
	height: 20px;
	border-radius: var(--pill);
	background: var(--white);
	box-shadow: inset 0 0 0 1.5px rgba(35, 26, 58, 0.35);
}

.co-plan.is-current .co-plan__radio {
	background: var(--accent);
	box-shadow: inset 0 0 0 5px var(--white), 0 0 0 1.5px var(--accent);
}

.co-plan__name {
	font-size: 15px;
	line-height: 1.35;
}

.co-plan__price {
	color: var(--muted);
	font-size: 14px;
}

.co-plan__price b {
	color: var(--ink);
	font-family: var(--font-serif);
	font-variation-settings: "SOFT" 100, "WONK" 0;
	font-size: 28px;
	font-weight: 600;
	line-height: 1;
}

.co-plan__first {
	color: var(--accent-dark);
	font-size: 13px;
	font-weight: 700;
}

/* Steps 2 and 3: EDD's purchase form, one card */
.co #edd_purchase_form {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.co #edd_purchase_form fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.co #edd_purchase_form > fieldset,
.co #edd_purchase_form > #edd_checkout_login_register,
.co #edd_purchase_form > #edd_checkout_user_info {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.co #edd_purchase_form > * + fieldset,
.co #edd_purchase_form > #edd_checkout_login_register + fieldset,
.co #edd_purchase_form > #edd_checkout_user_info + fieldset {
	margin-top: 28px;
	padding-top: 28px;
	border-top: 1px solid var(--line);
}

.co #edd_checkout_login_register,
.co #edd_register_fields,
.co #edd_checkout_user_info,
.co #edd_login_fields {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	width: 100%;
}

.co #edd_checkout_user_info > p,
.co #edd_cc_address > div,
.co #edd_login_fields > p {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 100%;
	min-width: 0;
	margin: 0;
}

.co #edd-first-name-wrap,
.co #edd-last-name-wrap {
	flex: 1 1 220px;
}

.co #edd-card-city-wrap,
.co #edd-card-state-wrap,
.co #edd-card-zip-wrap {
	flex: 1 1 160px;
}

/* New customers set one password; EDD's own "Create an account" fields are filled from it by store.js. */
.co #edd_register_account_fields {
	display: none;
}

.co #edd-login-account-wrap,
.co #edd-new-account-wrap {
	flex: 1 1 100%;
	margin: 0 0 4px;
	padding: 12px 16px;
	border-radius: var(--r-input);
	background: var(--sand);
	color: #3b3352;
	font-size: 15px;
}

.co .edd_checkout_register_login {
	font-weight: 700;
}

.co .edd-label,
.co #edd_purchase_form label {
	color: #3b3352;
	font-size: 14px;
	font-weight: 700;
}

.co .edd-required-indicator {
	color: var(--accent-dark);
}

.co .edd-description {
	order: 3;
	margin: 0;
	color: var(--muted-2);
	font-size: 13px;
	line-height: 1.45;
}

.co #edd_purchase_form select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23554e6b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-position: right 16px center;
	background-repeat: no-repeat;
}

.co .edd-payment-icons {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px;
	order: 10;
	margin: 18px 0 0;
}

.co .edd-payment-icons img {
	width: 38px;
	height: auto;
}

.co #edd_cc_fields > legend {
	margin: 0 0 10px;
	padding: 0;
	color: #3b3352;
	font-size: 14px;
	font-weight: 700;
}

.co #edd_cc_fields {
	display: block;
}

.co #edd_secure_site_wrapper {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	color: var(--muted);
	font-size: 14px;
}

.co #edd_secure_site_wrapper svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.co .edds-field-spacer-shim {
	display: none;
}

.co #edd_purchase_submit {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.co #edd_terms_agreement,
.co #edd-privacy-policy-agreement {
	margin: 0;
}

.co .edd-terms-agreement,
.co .edd-privacy-policy-agreement {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
}

.co .edd-terms-agreement label,
.co .edd-privacy-policy-agreement label {
	color: #3b3352;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
}

.co .edd_terms_links_custom {
	font-weight: 700;
}

.co #edd_final_total_wrap {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 6px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--line);
	color: #3b3352;
	font-size: 15px;
	font-weight: 700;
}

.co #edd_final_total_wrap .edd_cart_amount {
	color: var(--ink);
	font-family: var(--font-serif);
	font-variation-settings: "SOFT" 100, "WONK" 0;
	font-size: 26px;
	font-weight: 600;
}

.co #edd-purchase-button {
	width: 100%;
	min-height: 56px;
	font-size: 18px !important;
}

.co .edd-loading-ajax {
	display: none;
}

.co #edd_purchase_form .edd_errors {
	margin: 0;
}

/* Order summary */
.co-summary__title {
	margin: 0 0 14px;
	color: var(--ink);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
}

.co #edd_checkout_cart {
	width: 100%;
	border-collapse: collapse;
	color: var(--ink);
	font-size: 15px;
}

.co #edd_checkout_cart td,
.co #edd_checkout_cart th {
	padding: 14px 0;
	text-align: left;
	vertical-align: top;
	font-weight: 400;
}

.co #edd_checkout_cart tbody td {
	padding-top: 0;
}

.co #edd_checkout_cart tfoot tr:not([style*="none"]) > * {
	border-top: 1px solid var(--line);
}

.co #edd_checkout_cart .edd_cart_item_price {
	padding-left: 12px;
	text-align: right;
	font-weight: 700;
	white-space: nowrap;
}

.co-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.co-item .brand__mark {
	flex: none;
}

.co-item__text p {
	margin: 0;
}

.co #edd_checkout_cart .edd_checkout_cart_item_title {
	font-weight: 700;
}

.co-item__plan,
.co #edd_checkout_cart .eddr-notice {
	margin: 2px 0 0;
	color: var(--muted);
	font-size: 14px;
	font-style: normal;
}

.co #edd_checkout_cart .eddr-notice em {
	font-style: normal;
}

.co .edd_cart_discount .edd_discount {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
}

.co .edd_discount_label {
	flex: 1;
	color: #3b3352;
}

.co .edd_discount_amount {
	color: var(--accent-dark);
	font-weight: 700;
}

.co .edd_discount_remove {
	flex: 1 1 100%;
	color: var(--muted);
	font-size: 13px;
}

.co .edd_cart_total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.co #edd_checkout_cart .edd_cart_total {
	display: table-cell;
}

.co .co-total__label {
	color: var(--ink);
	font-weight: 700;
}

.co #edd_checkout_cart .edd_cart_amount {
	float: right;
	color: var(--ink);
	font-family: var(--font-serif);
	font-variation-settings: "SOFT" 100, "WONK" 0;
	font-size: clamp(30px, 3vw, 38px);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.02em;
}

.co #edd_checkout_cart .edd-no-js {
	display: none;
}

.co-renew {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 14px 0 0;
	padding: 12px 14px;
	border-radius: var(--r-input);
	background: var(--sand);
	color: #3b3352;
	font-size: 14px;
	line-height: 1.5;
}

.co-renew svg {
	flex: none;
	margin-top: 1px;
}

.co-code {
	margin-top: 10px;
}

.co-code__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--accent-dark);
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.co-code__toggle svg {
	transition: transform 160ms ease;
}

.co-code__toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.co-code .edd-cart-discount-code {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.co-code .edd-cart-discount-code[hidden] {
	display: none;
}

.co-code label {
	color: #3b3352;
	font-size: 14px;
	font-weight: 700;
}

.co-code .edd-discount-code-field-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.co-code #edd-discount {
	flex: 1 1 140px;
	min-width: 0;
	min-height: 48px;
	padding: 0 14px;
	border: 1.5px solid rgba(35, 26, 58, 0.16);
	border-radius: var(--r-input);
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 16px;
	text-transform: uppercase;
}

.co-code .edd-apply-discount {
	width: auto;
}

.co-code .edd-alert-error {
	margin: 4px 0 0;
	padding: 10px 14px;
	font-size: 14px;
}

.co-trust {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 20px 22px;
	border-radius: 22px;
	background: var(--mint);
	list-style: none;
}

.co-trust li {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--success);
	font-size: 15px;
	font-weight: 600;
}

.co-trust svg {
	flex: none;
}

@media (max-width: 1000px) {
	.co #edd_checkout_wrap {
		grid-template-columns: minmax(0, 1fr);
	}

	.co #edd_checkout_cart_form,
	.co #edd_checkout_form_wrap {
		grid-column: 1;
		grid-row: auto;
		position: static;
	}
}

/* ---------- Account ---------- */
.store-install {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 24px;
	padding: clamp(18px, 3vw, 26px);
	border-radius: 22px;
	background: var(--cream);
}

.store-install__title {
	margin: 0;
	color: var(--ink);
	font-size: 22px;
	font-weight: 600;
}

.store-install .steps strong {
	font-size: 16px;
}

.edd_download_file a,
.edd_purchase_receipt_files a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	font-weight: 700;
}

.edd_purchase_receipt_files {
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}

/* Profile editor and invoice form */
.store-profile form {
	display: flex;
	flex-direction: column;
	gap: 28px;
	margin: 0;
}

.store-profile fieldset {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.store-profile fieldset + fieldset {
	padding-top: 28px;
	border-top: 1px solid var(--line);
}

.store-profile legend {
	margin: 0 0 16px;
	padding: 0;
	color: var(--ink);
	font-family: var(--font-serif);
	font-variation-settings: "SOFT" 100, "WONK" 0;
	font-size: 22px;
	font-weight: 600;
}

.store-profile fieldset > p,
.store-profile fieldset > div {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 100%;
	min-width: 0;
	margin: 0;
}

.store-profile .edd_profile_first_name_wrap,
.store-profile .edd_profile_last_name_wrap,
.store-profile .edd_profile_password_wrap,
.store-profile .edd_profile_confirm_password_wrap,
.store-profile .edd_profile_billing_address_city_wrap,
.store-profile .edd_profile_billing_address_postal_wrap,
.store-profile .edd_profile_billing_address_country_wrap,
.store-profile .edd_profile_billing_address_state_wrap {
	flex: 1 1 240px;
}

.store-profile label {
	color: #3b3352;
	font-size: 14px;
	font-weight: 700;
}

.store-profile input[type="text"],
.store-profile input[type="email"],
.store-profile input[type="password"],
.store-profile input[type="tel"],
.store-profile select,
.store-profile textarea {
	width: 100%;
	min-height: 50px;
	padding: 0 16px;
	border: 1.5px solid rgba(35, 26, 58, 0.16);
	border-radius: var(--r-input);
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 16px;
}

.store-profile textarea {
	padding: 12px 16px;
}

.store-profile input:focus,
.store-profile select:focus,
.store-profile textarea:focus,
.edd_sl_form .edd-input:focus {
	border-color: var(--accent);
	outline: 3px solid rgba(210, 64, 31, 0.18);
	outline-offset: 0;
}

.store-profile input[type="submit"],
.store .edd-submit,
.store .edd-recurring-update-submit,
.edd_sl_form input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 0 26px;
	border: 0;
	border-radius: var(--pill);
	background: var(--accent);
	color: var(--white);
	font-family: var(--font-sans);
	font-size: 17px;
	font-weight: 700;
	box-shadow: 0 16px 30px -14px var(--accent-shadow);
	cursor: pointer;
}

.edd_profile_emails_wrap ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Receipt */
.store-split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
	gap: 24px;
	align-items: start;
}

.store-next .steps {
	margin: 18px 0 22px;
}

.store-receipt h3 {
	margin: 24px 0 12px;
	color: var(--ink);
	font-size: 22px;
	font-weight: 600;
}

.store-receipt .edd-table {
	min-width: 0;
}

/* ---------- About ---------- */
.fact-rows {
	margin: 0;
}

.fact-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 24px;
	padding: 18px 0;
}

.fact-row strong {
	flex: 0 0 190px;
	color: var(--ink);
	font-size: 16px;
}

.fact-row span {
	flex: 1 1 260px;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.55;
}

.dark-rows {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.dark-rows li {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 22px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.dark-rows__icon {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--on-dark-accent);
}

.dark-rows strong {
	display: block;
	color: var(--on-dark);
	font-size: 17px;
}

.dark-rows li > span > span {
	display: block;
	margin-top: 4px;
	color: var(--on-dark-muted);
	font-size: 15px;
	line-height: 1.55;
}

.dark-rows a {
	color: var(--on-dark-accent);
	font-weight: 700;
}

.dark-quote {
	margin: 0;
	padding: 24px;
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.05);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.dark-quote blockquote {
	margin: 0;
}

.dark-quote blockquote p {
	margin: 0;
	color: var(--on-dark);
	font-family: var(--font-serif);
	font-variation-settings: "SOFT" 100, "WONK" 0;
	font-size: 20px;
	font-weight: 450;
	line-height: 1.45;
}

.dark-quote figcaption {
	margin-top: 14px;
	color: var(--on-dark-muted);
	font-size: 14px;
}

.dark-quote figcaption strong {
	color: var(--on-dark);
}

.family li {
	display: flex;
}

.family__card {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 28px;
	border-radius: var(--r-card);
	background: var(--white);
	box-shadow: 0 0 0 1px rgba(35, 26, 58, 0.06), var(--shadow-card);
	color: var(--ink);
	text-decoration: none;
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.family__card:hover {
	color: var(--ink);
	transform: translateY(-2px);
}

.family__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 16px;
	color: var(--ink);
}

.family__desc {
	flex: 1;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.55;
}

.family__host {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--accent-dark);
	font-size: 15px;
	font-weight: 700;
}

/* ---------- Contact ---------- */
.contact {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: clamp(24px, 3vw, 40px);
}

.contact__form {
	flex: 999 1 560px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	overflow: visible;
}

.contact__side {
	flex: 1 1 320px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.contact__links {
	padding: 24px;
	box-shadow: 0 0 0 1px rgba(35, 26, 58, 0.06), var(--shadow-card);
}

.contact__links .rows {
	margin-top: 14px;
}

.contact__links .row-link {
	gap: 14px;
	padding: 12px 0;
}

.row-link__stack {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.row-link__stack strong {
	font-size: 16px;
}

.row-link__stack span {
	color: var(--muted);
	font-size: 14px;
}

.contact__reach {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px;
	border-radius: var(--r-card);
}

.contact__line {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	color: var(--ink);
	text-decoration: none;
}

a.contact__line:hover {
	color: var(--ink);
}

.contact__line > span:last-child {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.contact__label {
	color: var(--muted);
	font-size: 14px;
}

.contact__line strong {
	font-size: 16px;
	overflow-wrap: anywhere;
}

.contact__address {
	color: var(--ink);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.45;
}

/* Gravity Forms (form 1) */
.gform_wrapper .gform_fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
	gap: 18px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gform_wrapper .gfield {
	grid-column: 1 / -1;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.gform_wrapper .gfield--width-half {
	grid-column: auto;
}

.gform_wrapper .gfield_label,
.gform_wrapper legend.gfield_label {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
	margin: 0 0 6px;
	padding: 0;
}

.gform_wrapper .gfield_required {
	color: var(--muted-2);
	font-size: 13px;
	font-weight: 500;
}

.gform_wrapper .gfield_required .gfield_required_text {
	font-style: normal;
}

.gform_wrapper .ginput_complex {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.gform_wrapper .ginput_complex > span {
	flex: 1 1 200px;
	display: flex;
	flex-direction: column-reverse;
	gap: 6px;
}

.gform_wrapper .ginput_complex label,
.gform_wrapper .gfield_description {
	color: var(--muted-2);
	font-size: 13px;
	font-weight: 500;
}

.gform_wrapper .gfield_error input,
.gform_wrapper .gfield_error textarea {
	border-color: var(--error);
}

.gform_wrapper .validation_message,
.gform_wrapper .gfield_validation_message {
	margin-top: 6px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--error);
	font-size: 14px;
	font-weight: 600;
}

.gform_wrapper .gform_validation_errors {
	margin: 0 0 18px;
	padding: 14px 18px;
	border: 0;
	border-radius: var(--r-md);
	background: #fde8e6;
	box-shadow: none;
	color: var(--error);
}

.gform_wrapper .gform_validation_errors h2 {
	margin: 0;
	color: var(--error);
	font-family: var(--font-sans);
	font-size: 15px;
	font-weight: 700;
}

.gform_wrapper .gform_footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	margin: 24px 0 0;
	padding: 0;
}

.gform_wrapper .gform_ajax_spinner,
.gform_wrapper .gform-loader {
	display: none !important;
}

.gform_wrapper button.gform_button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.gform_confirmation_message {
	padding: clamp(20px, 3vw, 28px);
	border-radius: 22px;
	background: var(--success-bg);
	color: var(--success);
	font-size: 17px;
	line-height: 1.6;
}

@media (max-width: 520px) {
	.store-nav {
		width: 100%;
	}

	.store-nav__track {
		width: 100%;
	}

	.store-nav__track li {
		flex: 1 1 auto;
	}

	.store-nav__track .seg__btn {
		flex: 1;
		justify-content: center;
		padding: 0 12px;
		font-size: 14px;
	}

	.co-plan {
		padding-left: 46px;
	}

	.store .edd-table,
	.store-table {
		min-width: 460px;
	}
}

/* ---------- Overrides for EDD's own stylesheet (edd.min.css uses double-id selectors) ---------- */
.co #edd_checkout_wrap #edd_checkout_cart,
.co #edd_checkout_wrap #edd_checkout_cart th,
.co #edd_checkout_wrap #edd_checkout_cart td {
	border: 0;
	background: none;
	box-shadow: none;
}

.co #edd_checkout_wrap #edd_checkout_cart th,
.co #edd_checkout_wrap #edd_checkout_cart td {
	padding: 14px 0;
}

.co #edd_checkout_wrap #edd_checkout_cart tbody td {
	padding-top: 0;
}

.co #edd_checkout_wrap #edd_checkout_cart .edd_cart_item_price {
	padding-left: 12px;
}

.co #edd_checkout_wrap #edd_checkout_cart tfoot tr:not([style*="none"]) > * {
	border-top: 1px solid var(--line);
}

.co #edd_checkout_wrap .edd_cart_discount .edd_discount_remove {
	position: static;
	display: inline;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0;
	background: none;
	text-indent: 0;
	overflow: visible;
}

.co #edd_checkout_wrap .edd_cart_discount .edd_discount_remove::before,
.co #edd_checkout_wrap .edd_cart_discount .edd_discount_remove::after {
	content: none;
}

.co #edd_checkout_form_wrap #edd_final_total_wrap {
	margin: 6px 0 0;
	padding: 14px 0 0;
	border: 0;
	border-top: 1px solid var(--line);
	border-radius: 0;
	background: none;
}

.co #edd_checkout_form_wrap #edd_purchase_form select,
.co #edd_checkout_form_wrap #edd_purchase_form input[type="text"],
.co #edd_checkout_form_wrap #edd_purchase_form input[type="email"],
.co #edd_checkout_form_wrap #edd_purchase_form input[type="password"] {
	width: 100%;
	max-width: none;
}

.co #edd_purchase_form > #edd_cc_fields {
	display: block;
}

.co #edd_checkout_form_wrap .edd-stripe-new-card,
.co #edd_checkout_form_wrap #edd-card-wrap,
.co #edd_checkout_form_wrap #edd-stripe-payment-element {
	width: 100%;
	max-width: none;
}

.co #edd_checkout_form_wrap #edd_purchase_form fieldset,
.co #edd_checkout_form_wrap #edd_purchase_form legend {
	background: none;
	box-shadow: none;
}

.co #edd_checkout_form_wrap #edd_purchase_form > fieldset {
	border-left: 0;
	border-right: 0;
	border-bottom: 0;
}

/* Gravity Forms' own theme colours the "(Required)" note red; keep it quiet. */
.gform_wrapper.gravity-theme .gfield_required,
.gform_wrapper .gfield_label .gfield_required {
	color: var(--muted-2);
	font-style: normal;
}

/* "Need a hand?" cards under the account pages */
.store-help__card {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 24px;
	border-radius: var(--r-card);
	color: var(--ink);
	text-decoration: none;
	transition: transform 160ms ease;
}

.store-help__card:hover {
	color: var(--ink);
	transform: translateY(-2px);
}

.store-help__text {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.store-help__text strong {
	font-size: 18px;
}

.store-help__text span {
	color: var(--body);
	font-size: 15px;
	line-height: 1.5;
}

.store-help__card > svg:last-child {
	flex: none;
	color: var(--accent-dark);
}

/* Legends out of the fieldset's border notch, so a divider never runs beside a heading. */
.store-profile legend,
.co #edd_checkout_user_info > legend,
.co #edd_cc_address > legend,
.co #edd_login_fields > legend,
.co #edd_cc_fields > legend {
	float: left;
	width: 100%;
}

/* Whatever follows a floated legend starts below it. Without this, a flex row (the Stripe "secure connection" note)
   shrinks to zero width beside the float; EDD's own stylesheet used to hide that, and it is switched off. */
.store-profile legend + *,
.co #edd_checkout_user_info > legend + *,
.co #edd_cc_address > legend + *,
.co #edd_login_fields > legend + *,
.co #edd_cc_fields > legend + * {
	clear: both;
}
