/* ==========================================================================
   Easy Digital Downloads: checkout, cart, receipts, account tables,
   profile editor, license keys, purchase buttons.
   Loaded only where EDD markup is present (see inc/assets.php).
   ========================================================================== */

/* Buttons --------------------------------------------------------------- */
.edd-submit,
.edd-submit.button,
#edd-purchase-button,
#edd_login_form input[type="submit"],
#edd_register_form input[type="submit"],
#edd_profile_editor_submit,
.edd-apply-discount,
a.edd_go_to_checkout,
.edd-sl-renew-license,
input.edd_sl_upgrade_link {
	/* No !important on display: EDD hides some buttons with inline styles and .edd-no-js. */
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 52px; padding: 0 24px !important; margin: 0;
	border: 1.5px solid var(--cp-ink) !important; border-radius: var(--cp-r-btn) !important;
	background: var(--cp-ink) !important; color: #fff !important; box-shadow: none !important;
	font: 600 15px/1.2 var(--cp-font-body) !important; text-decoration: none !important; text-shadow: none !important;
	cursor: pointer; transition: background var(--cp-ease), border-color var(--cp-ease);
}
.edd-submit:hover, #edd-purchase-button:hover, a.edd_go_to_checkout:hover, .edd-apply-discount:hover { background: var(--cp-mint-deep) !important; border-color: var(--cp-mint-deep) !important; color: #fff !important; }
.edd-submit[disabled], #edd-purchase-button[disabled] { opacity: .6; cursor: wait; }
#edd-purchase-button { width: 100%; min-height: 58px; font-size: 17px !important; }
.edd-apply-discount { min-height: 48px; }
.edd_purchase_submit_wrapper { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
/* EDD shows the no-JS button only to visitors without JavaScript (body.edd-js is set by EDD's script). */
body.edd-js .edd-no-js { display: none !important; }
a.edd_go_to_checkout[style*="display: none"], a.edd_go_to_checkout[style*="display:none"] { display: none !important; }
.edd-cart-ajax-alert { margin-top: 8px; font-size: 14px; }
.edd-loading-ajax, .edd-loading { margin-left: 8px; }

/* [downloads] shortcode: card grid (theme overrides in edd_templates/) */
.edd_downloads_list { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 28px 24px; margin: 0 0 32px; }
.edd_downloads_list::before, .edd_downloads_list::after { content: none !important; display: none !important; }
.edd_downloads_list .edd_download { float: none !important; width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.edd_downloads_list .edd_download_inner { height: 100%; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 12px 12px 18px; border: 1px solid var(--cp-line); border-radius: var(--cp-r-card); background: #fff; text-align: left; transition: transform var(--cp-ease), box-shadow var(--cp-ease); }
.edd_downloads_list .edd_download_inner:hover { transform: translateY(-3px); box-shadow: var(--cp-shadow-card); }
.edd_downloads_list .edd_download_inner > :not(.cp-preview) { margin: 0 6px; }
.edd_downloads_list .cp-preview { margin-bottom: 4px; }
.edd_downloads_list .edd_download_title { margin: 4px 6px 0 !important; font-size: 22px; letter-spacing: -.03em; }
.edd_downloads_list .edd_download_title a { color: var(--cp-ink); text-decoration: none; }
.edd_downloads_list .edd_download_title a:hover { text-decoration: underline; }
.edd_downloads_list .cp-theme-card__tagline { margin-top: 0 !important; }
.edd_downloads_list .edd_download_buttons { margin-top: auto !important; padding-top: 8px; }
.edd_downloads_list .edd_price { font: 700 18px var(--cp-font-display); color: var(--cp-ink); }
.edd_downloads_list .edd_download_buy_button { margin-top: 4px; }
.edd_downloads_list .edd_download_buy_button .edd-submit { min-height: 44px; font-size: 14px !important; }
.edd_pagination { display: flex; justify-content: center; gap: 8px; margin: 24px 0; }

/* Price options of [purchase_link] */
.edd_price_options { margin: 0 0 16px; }
.edd_price_options ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.edd_price_options li label { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; border-radius: 12px; border: 1.5px solid var(--cp-line-strong); cursor: pointer; }
.edd_price_options li label:has(input:checked) { border-color: var(--cp-ink); background: var(--cp-mint-wash); }
.edd_price_options input { accent-color: var(--cp-ink); }

/* Fields ---------------------------------------------------------------- */
#edd_checkout_form_wrap input.edd-input,
#edd_checkout_form_wrap select.edd-select,
#edd_checkout_form_wrap select,
#edd_checkout_form_wrap textarea,
#edd_profile_editor_form input.edd-input,
#edd_profile_editor_form select,
#edd_login_form input.edd-input,
#edd_register_form input.edd-input,
.edd-input, .edd-select {
	width: 100%; min-height: 48px; padding: 10px 14px; margin: 0;
	border: 1.5px solid var(--cp-line-strong); border-radius: 12px; background-color: #fff; box-shadow: none;
	font-size: 15px; color: var(--cp-ink); transition: border-color var(--cp-ease), box-shadow var(--cp-ease);
}
#edd_checkout_form_wrap input.edd-input:hover, #edd_checkout_form_wrap select:hover { border-color: #C5D1CB; }
#edd_checkout_form_wrap input.edd-input:focus,
#edd_checkout_form_wrap select:focus,
#edd_checkout_form_wrap textarea:focus,
.edd-input:focus, .edd-select:focus { border-color: var(--cp-ink); outline: none; box-shadow: 0 0 0 3px rgba(11, 115, 86, .18); }
/* Error state only after the visitor has filled in and left a field (or tried to pay),
   not while typing. .error is the class EDD adds after a failed purchase. */
#edd_checkout_form_wrap input.edd-input.error { border-color: #A33D60; }
#edd_checkout_form_wrap :is(input, select, textarea).edd-input:user-invalid { border-color: #A33D60; background-color: #FDF3F6; } /* .edd-input: same weight as the :hover/:focus rules above, so it wins by order. */
#edd_checkout_form_wrap select { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230F1A17' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center; }
#edd_checkout_form_wrap label.edd-label,
#edd_profile_editor_form label,
#edd_login_form label,
#edd_register_form label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--cp-ink); }
#edd_checkout_form_wrap .edd-description { display: block; margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--cp-muted); }
.edd-required-indicator { margin-left: 2px; color: #A33D60; }
#edd_checkout_form_wrap input[type="checkbox"], #edd_checkout_form_wrap input[type="radio"] { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--cp-ink); }

/* Checkout -------------------------------------------------------------- */
/* Classic [download_checkout] markup (the one used on the live site, with
   Checkout Fields Manager) and the EDD 3 checkout block share these rules:
   form on the left, a sticky order summary on the right. */
#edd_checkout_wrap { display: flex; flex-direction: column; gap: 24px; font-size: 15px; color: var(--cp-ink-2); }
#edd_checkout_form_wrap, #edd_purchase_form, #edd_purchase_form_wrap, .edd-blocks__user-details, .edd-blocks__checkout-user { display: flex; flex-direction: column; gap: 20px; }
#edd_checkout_form_wrap::before, #edd_checkout_form_wrap::after { content: none; }
#edd_checkout_form_wrap p { margin: 0; }

/* Cards */
#edd_checkout_form_wrap fieldset,
#edd_profile_editor_form fieldset,
#edd_login_form fieldset,
#edd_register_form fieldset {
	min-width: 0; margin: 0; padding: 26px; border: 1px solid var(--cp-line); border-radius: var(--cp-r-card); background: #fff;
}
#edd_checkout_form_wrap fieldset fieldset { padding: 0; border: 0; border-radius: 0; background: none; }
#edd_checkout_form_wrap legend,
#edd_profile_editor_form legend,
#edd_login_form legend,
#edd_register_form legend {
	float: left; width: 100%; margin: 0 0 18px; padding: 0; white-space: normal;
	font: 700 22px/1.2 var(--cp-font-display); letter-spacing: -.02em; color: var(--cp-ink);
}
#edd_checkout_form_wrap legend.screen-reader-text { float: none; position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#edd_checkout_form_wrap legend + *, #edd_profile_editor_form legend + * { clear: left; }
#edd_profile_editor_form p, #edd_profile_editor_form fieldset > div { margin: 0 0 16px; }
#edd_checkout_form_wrap fieldset > div, #edd_checkout_form_wrap > p { margin: 0; }
#edd_checkout_form_wrap #edd_cc_fields { display: flex; flex-direction: column; gap: 16px; }

/* Two-column field grids: pairs sit side by side (street | city, ZIP | state,
   first | last name, company | EU VAT number); long fields span both columns. */
#edd_checkout_user_info,
#edd_cc_address,
#edd_register_account_fields {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; align-items: start;
}
/* Legends stay floated: a floated legend is a normal grid item, not drawn on the border. */
#edd_checkout_user_info > legend, #edd_cc_address > legend, #edd_register_account_fields > legend { grid-column: 1 / -1; margin: 0 0 2px; }
#edd_checkout_user_info > *, #edd_cc_address > *, #edd_register_account_fields > * { margin: 0 !important; min-width: 0; }
#edd_checkout_user_info > div, #edd_cc_address > div, #edd_register_account_fields > div { display: flex; flex-direction: column; }
#edd_checkout_user_info > div > .edd-description, #edd_cc_address > div > .edd-description, #edd_register_account_fields > div > .edd-description { order: 3; }
#edd_checkout_user_info > div > input, #edd_checkout_user_info > div > select, #edd_register_account_fields > div > input { order: 2; }
#edd-email-wrap,
#edd_checkout_user_info > .codice_sdi_o_indirizzo_pec,
#edd_checkout_user_info > .cfm-el.html,
#edd_checkout_user_info > .cfm-el.textarea,
#edd_checkout_user_info > .cfm-el.checkbox,
#edd_checkout_user_info > .cfm-el.radio,
#edd_checkout_user_info > p,
#edd-user-login-wrap { grid-column: 1 / -1; }
/* The checkout block makes every address group span 2 columns: undo it, keep the long ones full. */
#edd_cc_address > div { grid-column: auto; }
#edd_cc_address > #edd-card-address-2-wrap, #edd_cc_address > #edd-card-country-wrap { grid-column: 1 / -1; }
/* "Codice fiscale" (Italy) takes the place next to the country: the
   private/company select then gets its own row, keeping company | VAT paired. */
#edd_checkout_user_info:has(> .codice_fiscale:not([style*="none"])) > .are_you_a_private_person_or_a_company,
#edd_checkout_user_info:has(> .eu_vat_number[style*="none"]) > .company_name { grid-column: 1 / -1; }
#edd_checkout_user_info > .cfm-el.html { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--cp-wash); font-size: 13px; color: var(--cp-muted); }
#edd_checkout_user_info > .cfm-el.html label:empty { display: none; }
#edd_checkout_user_info > .cfm-el.html span[style] { color: #A33D60 !important; }
#edd_checkout_form_wrap .edd-cfm-checkbox-field label, #edd_checkout_form_wrap .edd-cfm-radio-field label,
#edd_checkout_user_info .cfm-el.checkbox label:not(.edd-label), #edd_checkout_user_info .cfm-el.radio label:not(.edd-label) { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; }

/* Small adjustments: discount code and license renewal, drawn as dashed
   "notes" so they don't compete with the main form. */
#edd_purchase_form > #edd_discount_code,
#edd_checkout_form_wrap #edd_sl_renewal_fields {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 18px;
	border: 1.5px dashed rgba(15, 26, 23, .22); border-radius: 16px; background: transparent; font-size: 14px;
}
#edd_purchase_form > #edd_discount_code:focus-within,
#edd_checkout_form_wrap #edd_sl_renewal_fields:focus-within { border-color: rgba(15, 26, 23, .35); }
#edd_sl_renewal_form { margin: 0; }
#edd_sl_renewal_fields > *, #edd_purchase_form > #edd_discount_code > * { margin: 0 !important; }
#edd_sl_renewal_fields::before, #edd_purchase_form > #edd_discount_code::before { content: ""; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--cp-lemon-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230F1A17' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-2.64-6.36'/%3E%3Cpath d='M21 4v5h-5'/%3E%3C/svg%3E") no-repeat center; }
#edd_purchase_form > #edd_discount_code::before { background: var(--cp-mint-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230F1A17' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4 13.4 20.6a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8z'/%3E%3Ccircle cx='8' cy='8' r='1.5'/%3E%3C/svg%3E") no-repeat center; }
#edd_purchase_form > #edd_discount_code:has(#edd-discount-code-wrap:not([style*="none"]))::before { align-self: flex-start; }
#edd_checkout_form_wrap #edd_sl_show_renewal_form,
#edd_checkout_form_wrap .edd_discount_link,
#edd_checkout_form_wrap #edd-cancel-license-renewal {
	display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px !important; border: 1.5px solid var(--cp-ink) !important; border-radius: 999px !important;
	background: transparent !important; color: var(--cp-ink) !important; font: 600 13px/1 var(--cp-font-body) !important; text-decoration: none !important; cursor: pointer;
}
#edd_checkout_form_wrap #edd_sl_show_renewal_form:hover, #edd_checkout_form_wrap .edd_discount_link:hover { background: var(--cp-ink) !important; color: #fff !important; }
#edd_checkout_form_wrap #edd-cancel-license-renewal { border-color: transparent !important; color: var(--cp-muted) !important; }
#edd_checkout_form_wrap .edd-sl-renewal-form-fields { flex: 1 1 100%; flex-direction: column; gap: 10px; }
#edd_checkout_form_wrap .edd-sl-renewal-form-fields:not([style*="none"]) { display: flex; }
#edd_checkout_form_wrap .edd-sl-renewal-form-fields > * { margin: 0 !important; }
#edd_checkout_form_wrap .edd-sl-renewal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#edd_checkout_form_wrap .edd-sl-renewal-form-fields .edd-description { margin: 0 0 6px; font-size: 13px; }
#edd_checkout_form_wrap #edd_show_discount { padding: 0; border: 0; background: none; color: var(--cp-ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; }
#edd_checkout_form_wrap .edd-cart-adjustment { padding: 0; background: none; color: inherit; }
#edd_checkout_form_wrap #edd-discount-code-wrap { flex: 1 1 100%; margin: 0; padding: 0; border: 0; background: none; }
#edd_checkout_form_wrap #edd-discount-code-wrap:not([style*="none"]) { display: flex; flex-wrap: wrap; gap: 8px; }
#edd-discount-code-wrap .edd-label, #edd-discount-code-wrap .edd-description { flex: 1 1 100%; margin: 0; }
#edd-discount-code-wrap .edd-discount-code-field-wrap { display: flex; flex: 1 1 260px; gap: 8px; }
#edd-discount-code-wrap .edd-apply-discount { min-height: 48px; padding: 0 18px !important; }
#edd-discount-error-wrap { flex: 1 1 100%; }
#edd-discount-error-wrap:empty { display: none !important; }

/* Account / log in */
#edd_checkout_form_wrap #edd_register_fields, #edd_checkout_form_wrap #edd_login_fields { display: flex; flex-direction: column; gap: 18px; }
#edd_checkout_form_wrap #edd-login-account-wrap, #edd_checkout_form_wrap #edd-new-account-wrap {
	order: -1; border: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 !important; padding: 12px 14px;
	border-radius: 12px; background: var(--cp-mint-wash); font-size: 14px; color: var(--cp-ink);
}
#edd-login-account-wrap a, #edd-new-account-wrap a { font-weight: 600; color: var(--cp-mint-deep); }
#edd_register_account_fields > p, #edd_register_fields > p:not(#edd-login-account-wrap) { margin: 0; }
#edd_login_fields > :not(legend) { margin: 0 !important; }
#edd_login_fields .edd-login-actions, #edd_login_fields #edd-user-login-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Gateways */
#edd_payment_mode_select_wrap { margin: 0; padding: 0; border: 0; }
#edd-payment-mode-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
#edd_checkout_form_wrap #edd-payment-mode-wrap label.edd-gateway-option {
	display: flex; align-items: center; gap: 12px; min-height: 56px; margin: 0; padding: 10px 16px;
	border-radius: 14px; border: 1.5px solid var(--cp-line-strong); background: #fff; font-weight: 600; color: var(--cp-ink); cursor: pointer;
	transition: border-color var(--cp-ease), background var(--cp-ease);
}
#edd_checkout_form_wrap #edd-payment-mode-wrap label.edd-gateway-option:hover { border-color: #C5D1CB; }
#edd_checkout_form_wrap #edd-payment-mode-wrap label.edd-gateway-option-selected,
#edd_checkout_form_wrap #edd-payment-mode-wrap label.edd-gateway-option:has(input:checked) { border-color: var(--cp-ink); background: var(--cp-mint-wash); }
#edd_payment_icons, .edd-payment-icons { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
#edd_checkout_form_wrap > .edd-payment-icons, #edd_purchase_form > .edd-payment-icons, #edd_payment_icons { justify-content: center; margin: 0 4px -8px; opacity: .85; }
.edd-payment-icons img, .edd-payment-icons svg { height: 24px; width: auto; }
/* EDD adds a 10px right margin (with an id selector): the gap spaces them, so the row stays centred. */
#edd_checkout_form_wrap .edd-payment-icons .payment-icon, .edd-payment-icons img, .edd-payment-icons svg { margin: 0; }
#edd-stripe-card-element, .edd-stripe-card-element, #edd-stripe-payment-element { padding: 12px 14px; border: 1.5px solid var(--cp-line-strong); border-radius: 12px; background: #fff; }
#edd-stripe-payment-element { padding: 0; border: 0; }
#edd_secure_site_wrapper { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 600; color: var(--cp-mint-deep); }
#edd_secure_site_wrapper .padlock svg { fill: currentColor; }

/* Terms, total & submit */
#edd_checkout_form_wrap #edd_purchase_submit { display: flex; flex-direction: column; gap: 14px; padding: 0 !important; border: 0 !important; background: none !important; }
#edd_purchase_submit > * { margin: 0 !important; }
#edd_checkout_form_wrap #edd_terms_agreement,
#edd_checkout_form_wrap #edd-privacy-policy-agreement {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
	padding: 14px 18px; border: 1px solid var(--cp-line); border-radius: 16px; background: #fff; font-size: 14px;
}
#edd_terms_agreement .edd-terms-agreement, #edd-privacy-policy-agreement .edd-privacy-policy-agreement { order: 1; display: flex; align-items: center; gap: 10px; flex: 1 1 260px; }
#edd_terms_agreement label, #edd-privacy-policy-agreement label { margin: 0; font-weight: 500; color: var(--cp-ink); cursor: pointer; }
#edd_checkout_form_wrap .edd-show-terms { order: 2; margin: 0; font-size: 13px; }
#edd_checkout_form_wrap .edd-show-terms a { font-weight: 600; color: var(--cp-mint-deep); }
#edd_checkout_form_wrap .edd-terms { order: 3; flex: 1 1 100%; max-height: 240px; overflow: auto; margin: 0; padding: 16px; border-radius: 12px; background: var(--cp-wash); font-size: 13px; line-height: 1.55; }
#edd_checkout_form_wrap .edd-terms h3 { margin: 1em 0 .3em; font-size: 15px; }
#edd_checkout_form_wrap .edd-terms p { margin: 0 0 .8em; }
#edd_checkout_form_wrap #edd_final_total_wrap { border: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; padding: 18px 22px; border-radius: 16px; background: var(--cp-ink); color: rgba(255, 255, 255, .78); font-size: 15px; }
#edd_final_total_wrap strong { color: inherit; font-weight: 500; }
#edd_final_total_wrap .edd_cart_amount { font: 700 30px/1 var(--cp-font-display); letter-spacing: -.03em; color: #fff; }
#edd-purchase-button { width: 100%; min-height: 58px; font-size: 17px !important; }
#edd-paypal-container { margin-top: 2px; }
#edd_terms, #edd_show_terms { font-size: 14px; }

/* Order summary (cart) --------------------------------------------------- */
#edd_checkout_cart_form { margin: 0; }
#edd_checkout_cart_wrap, .edd-blocks__cart .edd-blocks-cart {
	position: relative; border: 1px solid var(--cp-line); border-radius: var(--cp-r-card); background: #fff; overflow: hidden;
}
.cp-summary__title { margin: 0 !important; padding: 22px 22px 6px; font: 700 22px/1.2 var(--cp-font-display); letter-spacing: -.02em; color: var(--cp-ink); }
#edd_checkout_wrap table#edd_checkout_cart { display: block !important; width: 100%; margin: 0; border: 0; border-radius: 0; font-size: 15px; overflow: visible; }
#edd_checkout_wrap table#edd_checkout_cart thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#edd_checkout_wrap table#edd_checkout_cart tbody, #edd_checkout_wrap table#edd_checkout_cart tfoot { display: block; }
#edd_checkout_wrap table#edd_checkout_cart tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 14px; padding: 16px 22px; border-top: 1px solid var(--cp-line); }
#edd_checkout_wrap table#edd_checkout_cart tbody tr:first-child { border-top: 0; }
#edd_checkout_wrap table#edd_checkout_cart tr[style*="none"] { display: none; }
#edd_checkout_wrap table#edd_checkout_cart td, #edd_checkout_wrap table#edd_checkout_cart th { display: block; padding: 0; border: 0; background: none; text-align: left; }
#edd_checkout_wrap table#edd_checkout_cart tr.edd_cart_item, #edd_checkout_wrap table#edd_checkout_cart tr.edd_cart_fee { grid-template-areas: "name price" "name actions"; row-gap: 2px; }
#edd_checkout_wrap table#edd_checkout_cart .edd_cart_item_name { grid-area: name; display: flex; align-items: center; gap: 12px; font-weight: 600; line-height: 1.35; color: var(--cp-ink); }
#edd_checkout_wrap table#edd_checkout_cart .edd_cart_item_image { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--cp-wash); overflow: hidden; }
#edd_checkout_wrap table#edd_checkout_cart .edd_cart_item_image img { width: 48px; height: 48px; margin: 0; border-radius: 0; object-fit: cover; object-position: top center; }
/* Extra lines under the title (e.g. the license being renewed): image on the left, title and details stacked. */
#edd_checkout_wrap table#edd_checkout_cart .edd_cart_item_name:has(> .edd_cart_item_image):has(> :not(.edd_cart_item_image):not(.edd_checkout_cart_item_title)) { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 12px; row-gap: 6px; align-items: center; }
#edd_checkout_wrap table#edd_checkout_cart .edd_cart_item_name:has(> .edd_cart_item_image) > * { grid-column: 2; min-width: 0; }
#edd_checkout_wrap table#edd_checkout_cart .edd_cart_item_name:has(> .edd_cart_item_image) > .edd_cart_item_image { grid-column: 1; grid-row: 1 / span 2; }
#edd_checkout_wrap table#edd_checkout_cart .edd_cart_item_name { flex-wrap: wrap; }
#edd_checkout_wrap .edd_cart_item_name .edd-sl-renewal-details, .edd-blocks__cart .edd-sl-renewal-details {
	flex-basis: 100%; justify-self: start; align-self: start; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; max-width: 100%; margin: 0; padding: 4px 9px;
	border-radius: 8px; background: var(--cp-lemon-wash); font: 500 11px/1.35 var(--cp-font-mono); letter-spacing: 0; color: var(--cp-ink); overflow-wrap: anywhere;
}
#edd_checkout_wrap .edd-sl-renewal-details *, .edd-blocks__cart .edd-sl-renewal-details * { margin: 0; font: inherit; }
#edd_checkout_wrap table#edd_checkout_cart .edd_cart_item_price { grid-area: price; align-self: end; font: 700 17px var(--cp-font-display); color: var(--cp-ink); text-align: right; white-space: nowrap; }
#edd_checkout_wrap table#edd_checkout_cart .edd_cart_actions { grid-area: actions; align-self: start; text-align: right; }
#edd_checkout_wrap .edd_cart_remove_item_btn, .edd-blocks-cart__action-remove { font-size: 13px; font-weight: 500; color: var(--cp-muted) !important; text-decoration: underline; text-underline-offset: 3px; }
#edd_checkout_wrap .edd_cart_remove_item_btn:hover, .edd-blocks-cart__action-remove:hover { color: #A33D60 !important; }
#edd_checkout_wrap table#edd_checkout_cart tfoot th { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; grid-column: 1 / -1; font-weight: 500; color: var(--cp-ink-2); }
#edd_checkout_wrap table#edd_checkout_cart tfoot tr { background: var(--cp-wash); }
#edd_checkout_wrap table#edd_checkout_cart .edd_cart_total { font: 500 15px var(--cp-font-body); text-align: left; }
#edd_checkout_wrap .edd_cart_total .edd_cart_amount { font: 700 26px/1 var(--cp-font-display); letter-spacing: -.03em; color: var(--cp-ink); }
#edd_checkout_wrap .edd_cart_discount { font-weight: 500; color: var(--cp-mint-deep); }
#edd_checkout_wrap .edd_discount_remove { margin-left: 6px; color: #A33D60; }
.edd_cart_item_price, .edd_cart_item_name { overflow-wrap: break-word; } /* Not "anywhere": it would split words in narrow cells. */
.cp-summary__notes { display: flex; flex-direction: column; gap: 8px; margin: 0 !important; padding: 16px 22px 20px !important; border-top: 1px solid var(--cp-line); list-style: none; font-size: 13.5px; color: var(--cp-ink-2); }
.cp-summary__notes li { display: flex; align-items: center; gap: 10px; margin: 0 !important; }
.cp-summary__notes li::before { content: ""; flex: none; width: 18px; height: 18px; background: var(--cp-mint-deep); -webkit-mask: var(--cp-note-icon) no-repeat center / contain; mask: var(--cp-note-icon) no-repeat center / contain; }
.cp-summary__note--lock { --cp-note-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E"); }
.cp-summary__note--refresh { --cp-note-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-2.64-6.36'/%3E%3Cpath d='M21 4v5h-5'/%3E%3C/svg%3E"); }
.cp-summary__note--key { --cp-note-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='M10.8 12.2 20 3M17 6l3 3M14 9l2 2'/%3E%3C/svg%3E"); }

/* EDD 3 checkout block: cart rows */
.edd-blocks__cart .edd-blocks-cart__row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 22px; border: 0; border-top: 1px solid var(--cp-line); }
.edd-blocks__cart .edd-blocks-cart__row-header { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.edd-blocks__cart .edd-blocks-cart__items .edd-blocks-cart__row:first-child { border-top: 0; }
.edd-blocks__cart .edd_cart_item_name { font-weight: 600; color: var(--cp-ink); }
.edd-blocks__cart .edd-blocks-cart__row-item .edd_cart_item_price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font: 700 17px var(--cp-font-display); color: var(--cp-ink); white-space: nowrap; }
.edd-blocks__cart .edd-blocks-cart__row-footer { flex-wrap: wrap; background: var(--cp-wash); }
.edd-blocks__cart .edd_cart_discount_row:has(.edd_cart_discount:empty) { display: none; }
.edd-blocks__cart #edd_discount_code { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.edd-blocks__cart .edd_cart_total { display: flex; justify-content: space-between; align-items: baseline; flex: 1 1 100%; font-size: 15px; }
.edd-blocks__checkout .edd-blocks-form { max-width: none; }

@media (min-width: 1000px) {
	#edd_checkout_wrap:has(> #edd_checkout_cart_form) { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0 36px; align-items: start; }
	#edd_checkout_wrap > * { grid-column: 1; }
	#edd_checkout_wrap > #edd_checkout_cart_form { grid-column: 2; grid-row: 1 / span 8; position: sticky; top: calc(var(--cp-header-h) + 24px); }
	#edd_checkout_form_wrap.edd-blocks__checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0 36px; align-items: start; }
	#edd_checkout_form_wrap.edd-blocks__checkout > .edd-blocks__cart { grid-column: 2; grid-row: 1 / span 4; position: sticky; top: calc(var(--cp-header-h) + 24px); }
	#edd_checkout_form_wrap.edd-blocks__checkout > :not(.edd-blocks__cart) { grid-column: 1; min-width: 0; }
}
@media (max-width: 560px) {
	#edd_checkout_user_info, #edd_cc_address, #edd_register_account_fields { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	#edd_checkout_form_wrap fieldset { padding: 20px 18px; }
	#edd_checkout_form_wrap fieldset fieldset { padding: 0; }
	#edd_checkout_wrap table#edd_checkout_cart tr, .edd-blocks__cart .edd-blocks-cart__row { padding: 14px 18px; }
	.cp-summary__title { padding: 18px 18px 4px; }
	.cp-summary__notes { padding: 14px 18px 18px !important; }
	#edd_final_total_wrap { padding: 16px 18px; }
}


/* Shopify-style checkout (3.0.28) ------------------------------------------- */
/* Focus mode (body.cp-checkout-focus: checkout with something in the cart): no menu, no page
   title, a slim footer; the form on white, the order summary on a grey panel to the edge. */
.cp-header__secure { display: none; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--cp-mint-deep); white-space: nowrap; }
.cp-checkout-focus .cp-header__secure { display: inline-flex; }
.cp-checkout-focus .cp-nav, .cp-checkout-focus .cp-header__actions > :not(.cp-header__secure), .cp-checkout-focus .cp-menu-toggle, .cp-checkout-focus .cp-mobile { display: none !important; }
.cp-checkout-focus .cp-page-head, .cp-checkout-focus .cp-footer__top { display: none; }
.cp-checkout-focus .cp-page > .cp-section { padding: 0; }
.cp-checkout-focus .cp-page > .cp-section > .cp-container { max-width: none; padding: 0; } /* The checkout draws its own margins. */
.cp-checkout-focus .cp-footer { padding: 18px 0 22px; }
.cp-checkout-focus .cp-footer__bottom { margin-top: 0; padding-top: 0; border-top: 0; font-size: 13px; }

/* Sections without cards: a heading, then the fields. */
#edd_checkout_form_wrap, #edd_purchase_form { gap: 34px; }
#edd_checkout_form_wrap fieldset { padding: 0; border: 0; border-radius: 0; background: none; }
#edd_checkout_form_wrap legend { margin: 0 0 14px; font-size: 21px; }
#edd_checkout_user_info, #edd_cc_address, #edd_register_account_fields { gap: 12px; }
#edd_checkout_user_info > legend, #edd_cc_address > legend, #edd_register_account_fields > legend { margin: 0 0 2px; }

/* Fields: one height, a thin border, the label floating inside once there is a value. */
#edd_checkout_form_wrap input.edd-input, #edd_checkout_form_wrap select, #edd_checkout_form_wrap select.edd-select { min-height: 52px; padding: 0 14px; border-width: 1px; border-color: #CCD6D1; border-radius: 10px; font-size: 15px; }
#edd_checkout_form_wrap select, #edd_checkout_form_wrap select.edd-select { padding-right: 40px; }
#edd_checkout_form_wrap input.edd-input:focus, #edd_checkout_form_wrap select:focus, #edd_checkout_form_wrap select.edd-select:focus { border-color: var(--cp-ink); box-shadow: 0 0 0 1px var(--cp-ink); }
#edd_checkout_user_info > div > .edd-description, #edd_cc_address > div > .edd-description, #edd-discount-code-wrap .edd-description {
	position: absolute !important; width: 1px; height: 1px; margin: -1px !important; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; /* Still read by screen readers (aria-describedby). */
}
#edd_checkout_form_wrap fieldset > div:has(> input.edd-input[placeholder]:not([placeholder=""])) { position: relative; }
#edd_checkout_form_wrap fieldset > div:has(> input.edd-input[placeholder]:not([placeholder=""])) > label.edd-label {
	position: absolute; z-index: 1; top: 7px; left: 15px; right: 15px; margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
	font-size: 12px; font-weight: 400; line-height: 1.2; color: var(--cp-muted); pointer-events: none;
}
#edd_checkout_form_wrap fieldset > div:has(> input.edd-input[placeholder]:not([placeholder=""])) > label.edd-label { opacity: 0; translate: 0 4px; transition: opacity .15s ease, translate .15s ease; }
#edd_checkout_form_wrap fieldset > div:has(> input.edd-input[placeholder]:not([placeholder=""]):not(:placeholder-shown)) > label.edd-label { opacity: 1; translate: 0 0; }
#edd_checkout_form_wrap fieldset > div > input.edd-input[placeholder]:not([placeholder=""]):not(:placeholder-shown) { padding-top: 19px; padding-bottom: 3px; }
/* Selects (and fields without a placeholder, e.g. Checkout Fields Manager ones) keep their label above:
   pairs line up on the bottom of the fields, whether the label is above or inside. */
#edd_checkout_user_info, #edd_cc_address { align-items: end; }
#edd_checkout_form_wrap fieldset > div:has(> input.edd-input[placeholder]:not([placeholder=""])) .edd-required-indicator { color: inherit; }

/* Log in / register prompt: a plain line, not a box. */
#edd_checkout_form_wrap #edd-login-account-wrap, #edd_checkout_form_wrap #edd-new-account-wrap { padding: 0; background: none; color: var(--cp-ink-2); }

/* Payment methods: one list, the chosen one outlined. */
#edd-payment-mode-wrap { display: flex; flex-direction: column; gap: 0; }
#edd_checkout_form_wrap #edd-payment-mode-wrap label.edd-gateway-option { min-height: 54px; border-width: 1px; border-color: #CCD6D1; border-radius: 0; margin-top: -1px; }
#edd_checkout_form_wrap #edd-payment-mode-wrap label.edd-gateway-option:first-child { margin-top: 0; border-radius: 10px 10px 0 0; }
#edd_checkout_form_wrap #edd-payment-mode-wrap label.edd-gateway-option:last-child { border-radius: 0 0 10px 10px; }
#edd_checkout_form_wrap #edd-payment-mode-wrap label.edd-gateway-option:only-child { border-radius: 10px; }
#edd_checkout_form_wrap #edd-payment-mode-wrap label.edd-gateway-option:has(input:checked),
#edd_checkout_form_wrap #edd-payment-mode-wrap label.edd-gateway-option-selected { position: relative; z-index: 1; border-color: var(--cp-ink); background: var(--cp-mint-cell); }
#edd-stripe-card-element, .edd-stripe-card-element { border-width: 1px; border-color: #CCD6D1; border-radius: 10px; }

/* Terms, total and the pay button. */
#edd_checkout_form_wrap #edd_terms_agreement, #edd_checkout_form_wrap #edd-privacy-policy-agreement { padding: 0; border: 0; background: none; }
#edd_checkout_form_wrap #edd_final_total_wrap { padding: 16px 0 0; border-top: 1px solid var(--cp-line); border-radius: 0; background: none; color: var(--cp-ink-2); }
#edd_final_total_wrap .edd_cart_amount { font-size: 26px; color: var(--cp-ink); }
#edd-purchase-button { border-radius: 12px !important; }

/* Order summary: no card, a product thumbnail with a frame, the license under the name. */
.cp-checkout-focus #edd_checkout_cart_wrap { border: 0; border-radius: 0; background: none; overflow: visible; }
.cp-checkout-focus .cp-summary__title { padding: 0 0 8px; font-size: 18px; }
.cp-checkout-focus #edd_checkout_wrap table#edd_checkout_cart tr { padding: 14px 0; border-top: 0; }
.cp-checkout-focus #edd_checkout_wrap table#edd_checkout_cart tfoot tr { padding: 10px 0; background: none; }
.cp-checkout-focus #edd_checkout_wrap table#edd_checkout_cart tfoot tr:last-child { padding-top: 14px; }
.cp-checkout-focus #edd_checkout_wrap table#edd_checkout_cart .edd_cart_item_image { width: 64px; height: 64px; border: 1px solid var(--cp-line-strong); border-radius: 12px; background: #fff; }
.cp-checkout-focus #edd_checkout_wrap table#edd_checkout_cart .edd_cart_item_image img { width: 62px; height: 62px; }
.cp-checkout-focus #edd_checkout_wrap table#edd_checkout_cart .edd_cart_item_name:has(> .edd_cart_item_image):has(> :not(.edd_cart_item_image):not(.edd_checkout_cart_item_title)) { grid-template-columns: 64px minmax(0, 1fr); }
.cp-cart-variant { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--cp-muted); }
.cp-checkout-focus #edd_checkout_wrap .edd_cart_total .edd_cart_amount { font-size: 28px; }
/* Discount code in the summary (moved there by checkout.js): a field and "Apply", always open. */
/* Summary order as on Shopify: items, discount code, totals (the cart table is opened up with display: contents). */
.cp-checkout-focus #edd_checkout_cart_wrap { display: flex; flex-direction: column; }
.cp-checkout-focus #edd_checkout_wrap table#edd_checkout_cart { display: contents !important; }
.cp-checkout-focus #edd_checkout_cart tbody { order: 1; }
.cp-checkout-focus #edd_checkout_cart_wrap > #edd_discount_code { order: 2; }
.cp-checkout-focus #edd_checkout_cart tfoot { order: 3; }
.cp-checkout-focus #edd_checkout_cart_wrap > .cp-summary__notes { order: 4; }
#edd_checkout_cart_wrap > #edd_discount_code { margin: 4px 0 6px; padding: 16px 0; border: 0; border-top: 1px solid var(--cp-line-strong); border-bottom: 1px solid var(--cp-line-strong); }
#edd_checkout_cart_wrap #edd_show_discount { display: none !important; }
#edd_checkout_cart_wrap #edd-discount-code-wrap { display: flex !important; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; background: none; }
#edd_checkout_cart_wrap #edd-discount-code-wrap .edd-label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#edd_checkout_cart_wrap .edd-discount-code-field-wrap { display: flex; flex: 1 1 100%; gap: 8px; }
#edd_checkout_cart_wrap #edd-discount { flex: 1; min-width: 0; min-height: 50px; border-width: 1px; border-color: #CCD6D1; border-radius: 10px; background: #fff; }
#edd_checkout_cart_wrap .edd-apply-discount { min-height: 50px; padding: 0 18px !important; border-radius: 10px !important; border-color: #CCD6D1 !important; background: #fff !important; color: var(--cp-ink) !important; }
#edd_checkout_cart_wrap .edd-apply-discount:hover { border-color: var(--cp-ink) !important; background: var(--cp-ink) !important; color: #fff !important; }
#edd_checkout_cart_wrap #edd-discount-error-wrap { flex: 1 1 100%; margin: 0; }
.cp-checkout-focus .cp-summary__notes { padding: 16px 0 0 !important; border-top: 0; }

@media (min-width: 1000px) {
	/* Two halves: the split is the middle of the window, as on Shopify. */
	.cp-checkout-focus #edd_checkout_wrap:has(> #edd_checkout_cart_form) {
		padding: 48px 0 72px; gap: 0;
		grid-template-columns: minmax(var(--cp-gutter), 1fr) minmax(0, 600px) minmax(0, 600px) minmax(var(--cp-gutter), 1fr);
		min-height: calc(100vh - var(--cp-header-h));
		background: linear-gradient(90deg, #fff calc(50% - .5px), var(--cp-line-strong) calc(50% - .5px) calc(50% + .5px), var(--cp-wash) calc(50% + .5px));
	}
	.cp-checkout-focus #edd_checkout_wrap > * { grid-column: 2; padding-right: clamp(32px, 4vw, 56px); }
	.cp-checkout-focus #edd_checkout_wrap > #edd_checkout_cart_form { grid-column: 3; grid-row: 1 / span 8; width: 100%; max-width: 480px; padding: 0 0 0 clamp(32px, 4vw, 48px); top: calc(var(--cp-header-h) + 32px); }
	.cp-checkout-focus #edd_checkout_form_wrap #edd_final_total_wrap { display: none; } /* The summary next to it already shows the total. */
}
@media (max-width: 999px) {
	/* Phones and tablets: the summary first, on a grey band. */
	.cp-checkout-focus #edd_checkout_wrap { --cp-co-pad: max(var(--cp-gutter), calc(50vw - 330px)); padding: 0 var(--cp-co-pad) 48px; }
	.cp-checkout-focus #edd_checkout_cart_form { margin: 0 calc(-1 * var(--cp-co-pad)); padding: 22px var(--cp-co-pad); border-bottom: 1px solid var(--cp-line-strong); background: var(--cp-wash); }
}

/* Account tables ---------------------------------------------------------- */
#edd_user_history, #edd_sl_license_keys, #edd_purchase_receipt, #edd_purchase_receipt_products, table.edd-table, .edd_sl_table {
	display: table !important; width: 100%; margin: 0; border-collapse: separate; border-spacing: 0;
	border: 1px solid var(--cp-line); border-radius: var(--cp-r-card); overflow: hidden; font-size: 15px;
}
#edd_user_history th, #edd_sl_license_keys th, #edd_purchase_receipt th, #edd_purchase_receipt_products th, table.edd-table th, .edd_sl_table th {
	padding: 16px 18px; background: var(--cp-wash); color: var(--cp-ink); font-weight: 600; text-align: left; border: 0;
}
#edd_user_history td, #edd_sl_license_keys td, #edd_purchase_receipt td, #edd_purchase_receipt_products td, table.edd-table td, .edd_sl_table td {
	padding: 16px 18px; border: 0; border-top: 1px solid var(--cp-line); vertical-align: middle; background: #fff;
}
#edd_sl_license_keys .edd_sl_license_key, #edd_sl_license_keys code, .edd_sl_license_key { font-family: var(--cp-font-mono); font-size: 13px; word-break: break-all; }
#edd_user_history .edd_download_file_link, #edd_user_history a { font-weight: 600; }
.edd_sl_license_status, .edd_sl_status { font: 500 12px var(--cp-font-mono); text-transform: uppercase; letter-spacing: .04em; }
.edd-sl-active, .edd_sl_license_status.active { color: var(--cp-mint-deep); }
.edd-sl-expired, .edd_sl_license_status.expired { color: #A33D60; }
.edd_sl_show_key, .edd_sl_hide_key, .edd-sl-manage-sites-link { font-weight: 600; }

/* Alerts ---------------------------------------------------------------- */
.edd-alert, .edd_errors, .edd_success {
	display: flex; flex-direction: column; gap: 6px; margin: 0 0 20px; padding: 16px 20px;
	border: 0; border-radius: 16px; background: var(--cp-wash); color: var(--cp-ink); font-size: 15px;
}
.edd-alert p, .edd_errors p { margin: 0; }
.edd-alert-error, .edd_errors { background: #FBE6EC; }
.edd-alert-success, .edd_success { background: var(--cp-mint-wash); }
.edd-alert-warn { background: var(--cp-lemon-wash); }
.edd-alert-info { background: #E8F1FB; }
.edd_error { margin: 0; }

/* Receipt --------------------------------------------------------------- */
#edd_purchase_receipt { margin-bottom: 24px; }
#edd_purchase_receipt .edd_receipt_payment_status.complete { color: var(--cp-mint-deep); font-weight: 600; }
#edd_purchase_receipt_products .edd_purchase_receipt_product_name { font-weight: 600; color: var(--cp-ink); }
.edd_purchase_receipt_files { margin: 8px 0 0; padding: 0; list-style: none; }
.edd_download_file_link { font-weight: 600; }

/* Login / register / profile -------------------------------------------- */
#edd_login_form, #edd_register_form, #edd_profile_editor_form { max-width: 640px; }
#edd_profile_editor_form { display: flex; flex-direction: column; gap: 20px; }
#edd_profile_editor_form > p { margin: 0; }
#edd_profile_editor_form .edd-profile-emails { margin: 0; padding: 0; list-style: none; }
#edd_profile_editor_form .edd-profile-email { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--cp-line); }
.edd-lost-password { font-size: 14px; }

/* Checkout Fields Manager */
#edd_checkout_form_wrap .edd-cfm-checkbox-field label, #edd_checkout_form_wrap .edd-cfm-radio-field label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; }

/* EDD 3 blocks: order history, receipt, confirmation, forms, user downloads, cart */
.edd-blocks__orders-grid { gap: 16px !important; }
.edd-blocks-orders__order,
.edd-blocks__receipt, .edd-blocks__confirmation, .edd-blocks__user-downloads, .edd-blocks__cart-full {
	border: 1px solid var(--cp-line) !important; border-radius: var(--cp-r-card) !important; background: #fff; box-shadow: none !important; overflow: hidden;
}
.edd-blocks-orders__order { display: flex; flex-direction: column; gap: 12px; padding: 20px !important; }
.edd-blocks-orders__order-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 !important; border: 0 !important; background: none !important; }
.edd-blocks-orders__order-id { font: 700 20px var(--cp-font-display); letter-spacing: -.02em; color: var(--cp-ink); }
.edd-blocks-orders__order-status { padding: 4px 10px; border-radius: 999px; background: var(--cp-wash); font: 500 11px var(--cp-font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--cp-ink-2); }
.edd-blocks-orders__order-status.complete { background: var(--cp-mint-wash); color: var(--cp-mint-deep); }
.edd-blocks-orders__order-data { display: flex; justify-content: space-between; gap: 12px; color: var(--cp-muted); font-size: 14px; padding: 0 !important; }
.edd-blocks-orders__order-amount { font: 700 18px var(--cp-font-display); color: var(--cp-ink); }
.edd-blocks-orders__order-details { padding: 12px 0 0 !important; border-top: 1px solid var(--cp-line); }
.edd-blocks-orders__order-downloads-link a { font-weight: 600; }
.edd-blocks__row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px !important; border: 0 !important; border-top: 1px solid var(--cp-line) !important; font-size: 15px; }
.edd-blocks__row:first-child { border-top: 0 !important; }
.edd-blocks__row-header, .edd-blocks-receipt__row-header { background: var(--cp-wash); font-weight: 600; color: var(--cp-ink); }
.edd-blocks__row-label { color: var(--cp-muted); font-weight: 500; }
.edd-blocks__row-value { color: var(--cp-ink); font-weight: 600; text-align: right; }
.edd-blocks-receipt__items, .edd-blocks-receipt__totals { margin-bottom: 20px; border: 1px solid var(--cp-line); border-radius: var(--cp-r-card); overflow: hidden; }
.edd-blocks-receipt__item-details { display: flex; flex-direction: column; gap: 4px; }
.edd-blocks-receipt__totals .edd-blocks__row:last-child .edd-blocks__row-value { font: 700 22px var(--cp-font-display); }
.edd-blocks-form { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.edd-blocks-form__group label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--cp-ink); }
.edd-blocks-form__control input, .edd-blocks-form__control select, .edd-blocks-form input[type="text"], .edd-blocks-form input[type="email"], .edd-blocks-form input[type="password"] {
	width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--cp-line-strong) !important; border-radius: 12px !important; background: #fff; font-size: 15px;
}
.edd-blocks-form__control input:focus { border-color: var(--cp-ink) !important; outline: none; box-shadow: 0 0 0 3px rgba(11, 115, 86, .18); }
.edd-blocks-form__group-remember label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; }
.edd-blocks-form__group-lost-password { font-size: 14px; }
.edd-blocks-form .edd-submit, .edd-blocks__buy-button .edd-submit, .edd-blocks__button { min-height: 52px; }

@media (max-width: 640px) {
	#edd_user_history, #edd_sl_license_keys, table.edd-table { display: block !important; overflow-x: auto; }
}
