/*
 * EDD/checkout/account styles for ZD Soft theme.
 * Loaded conditionally to keep global payload smaller on non-commerce pages.
 */

/* EDD compatibility */
.edd_download,
.edd-cart-added-alert,
.edd_errors,
.edd_success,
#edd_checkout_wrap,
#edd_purchase_receipt,
table.edd-table,
table.edd_purchase_history,
#edd_checkout_cart {
  border-radius: var(--zd-radius);
  border: 1px solid var(--zd-border);
  background: #fff;
  box-shadow: var(--zd-shadow);
}

.edd_download { padding: 18px; margin-bottom: 14px; }
.edd_download_title a { color: var(--zd-text); font-weight: 800; }
.edd_download_price { font-weight: 800; }

.edd_errors,
.edd_success {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 10px 18px;
}

.edd_errors p,
.edd_errors ul,
.edd_success p,
.edd_success ul {
  margin: 0;
  padding: 0;
}

.edd_errors li,
.edd_success li {
  list-style: none;
  margin: 0;
}

.edd_errors a {
  color: var(--zd-state-danger-text-link);
  text-decoration: underline;
}

.edd_success a {
  color: var(--zd-state-success-text-soft);
  text-decoration: underline;
}

.edd_errors {
  margin: 0 0 14px;
  border-color: var(--zd-state-danger-border);
  background: var(--zd-gradient-state-danger);
  color: var(--zd-state-danger-text);
}

.edd_success {
  margin: 0 0 18px;
  border-color: var(--zd-state-success-border);
  background: var(--zd-gradient-state-success);
  color: var(--zd-state-success-text-soft);
}

.edd_success strong {
  margin-right: 0.28em;
}

body.edd-checkout #edd_checkout_wrap a.edd-submit,
body.edd-checkout #edd_checkout_wrap input.edd-submit,
body.edd-checkout #edd_checkout_wrap button.edd-submit,
body.edd-checkout #edd_checkout_wrap .edd-add-to-cart,
body.edd-checkout #edd_checkout_wrap .edd_go_to_checkout,
body.edd-checkout #edd_checkout_wrap #edd-purchase-button,
body.edd-checkout #edd_checkout_wrap .edd_checkout a,
.zd-edd-primary,
.zd-edd-form .edd-submit {
  font-family: var(--zd-font-ui);
  background: var(--zd-gradient-primary-soft);
  color: #fff !important;
  border: 0;
  border-radius: var(--zd-btn-radius);
  font-weight: var(--zd-btn-font-weight);
}

body.edd-checkout #edd_checkout_wrap a.edd-submit,
body.edd-checkout #edd_checkout_wrap input.edd-submit,
body.edd-checkout #edd_checkout_wrap button.edd-submit,
body.edd-checkout #edd_checkout_wrap .edd-add-to-cart,
body.edd-checkout #edd_checkout_wrap .edd_go_to_checkout,
body.edd-checkout #edd_checkout_wrap #edd-purchase-button,
body.edd-checkout #edd_checkout_wrap .edd_checkout a {
  padding: 11px 14px;
}

#edd_checkout_cart th,
table.edd-table th,
table.edd_purchase_history th,
#edd_user_history th {
  background: var(--zd-table-head-bg-strong);
  color: var(--zd-text);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

#edd_checkout_cart td,
#edd_checkout_cart th,
table.edd-table td,
table.edd-table th,
table.edd_purchase_history td,
table.edd_purchase_history th,
#edd_user_history td,
#edd_user_history th {
  padding: 10px 12px;
  border-color: var(--zd-border);
}

#edd_sl_license_keys .edd_sl_key_value {
  min-width: 220px;
}

#edd_sl_license_keys .edd_sl_license_key_plain {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#edd_sl_license_add_site_form {
  margin-top: 44px;
}

#edd_sl_license_add_site_form > div {
  display: grid;
  gap: 12px;
}

#edd_sl_license_add_site_form > div > span {
  display: block;
  color: var(--zd-text);
}

#edd_sl_license_add_site_form .edd-input {
  min-height: 52px;
}

#edd_sl_license_add_site_form .zd-edd-primary {
  width: fit-content;
  min-width: 138px;
}

.edd-sl-manage-license-details {
  display: grid;
  gap: 6px;
}

.edd-sl-manage-license-details .edd-sl-manage-license-product,
.edd-sl-manage-license-details .edd-sl-manage-license-key {
  display: block;
}

.edd-sl-manage-license-details .edd-sl-manage-license-key code {
  font-weight: 700;
}

#edd_purchase_receipt {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--zd-border);
  border-radius: 12px;
  overflow: hidden;
}

#edd_purchase_receipt thead tr:first-child th:first-child {
  border-top-left-radius: 12px;
}

#edd_purchase_receipt thead tr:first-child th:last-child {
  border-top-right-radius: 12px;
}

#edd_purchase_receipt tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

#edd_purchase_receipt tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

#edd_purchase_receipt td,
#edd_purchase_receipt th {
  vertical-align: middle;
}

#edd_purchase_receipt,
#edd_sl_license_keys,
#edd_sl_license_sites,
#edd_sl_license_upgrades,
table.edd_purchase_history,
#edd_user_history {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--zd-border);
  border-radius: 12px;
  overflow: hidden;
}

#edd_sl_license_keys thead tr:first-child th:first-child,
#edd_sl_license_sites thead tr:first-child th:first-child,
#edd_sl_license_upgrades thead tr:first-child th:first-child,
table.edd_purchase_history thead tr:first-child th:first-child,
#edd_user_history thead tr:first-child th:first-child {
  border-top-left-radius: 12px;
}

#edd_sl_license_keys thead tr:first-child th:last-child,
#edd_sl_license_sites thead tr:first-child th:last-child,
#edd_sl_license_upgrades thead tr:first-child th:last-child,
table.edd_purchase_history thead tr:first-child th:last-child,
#edd_user_history thead tr:first-child th:last-child {
  border-top-right-radius: 12px;
}

#edd_sl_license_keys tbody tr:last-child td:first-child,
#edd_sl_license_sites tbody tr:last-child td:first-child,
#edd_sl_license_upgrades tbody tr:last-child td:first-child,
table.edd_purchase_history tbody tr:last-child td:first-child,
#edd_user_history tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

#edd_sl_license_keys tbody tr:last-child td:last-child,
#edd_sl_license_sites tbody tr:last-child td:last-child,
#edd_sl_license_upgrades tbody tr:last-child td:last-child,
table.edd_purchase_history tbody tr:last-child td:last-child,
#edd_user_history tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

.zd-edd-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: var(--zd-card-border);
  border-radius: var(--zd-card-soft-radius);
  background: var(--zd-card-bg);
  overflow: hidden;
}

.zd-edd-table-wrap > table.edd_purchase_history,
.zd-edd-table-wrap > table#edd_user_history,
.zd-edd-table-wrap > table.edd-recurring-subscription-transactions {
  border: 0;
  border-radius: 0;
  margin: 0;
}

#edd_user_history,
.edd-recurring-subscription-transactions {
  width: 100%;
}

#edd_user_history .edd_subscription_name {
  font-weight: 700;
}

#edd_user_history .edd_subscription_billing_cycle {
  color: var(--zd-muted);
}


body.edd-checkout #edd_checkout_wrap #edd_checkout_cart .edd_cart_actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.edd-checkout #edd_checkout_wrap #edd_checkout_cart .edd_cart_actions .edd-item-quantity {
  width: 88px;
  min-width: 88px;
  margin: 0;
}

body.edd-checkout #edd_checkout_wrap #edd_checkout_cart .edd_cart_remove_item_btn:not(.edd-blocks-cart__action-remove) {
  background: transparent;
  color: var(--zd-accent) !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.edd-checkout .wp-block-edd-checkout #edd_checkout_cart .edd_cart_item_name .edd_cart_actions input.edd-item-quantity {
  width: 88px !important;
  min-width: 88px;
}

body.edd-checkout #edd_checkout_wrap a.edd_discount_remove {
  background-color: transparent !important;
  color: var(--zd-text) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-left: 8px;
  display: inline-block;
  width: 14px;
  height: 14px;
  text-decoration: none !important;
  opacity: 0.7;
  vertical-align: middle;
}

body.edd-checkout #edd_checkout_wrap a.edd_discount_remove:hover {
  opacity: 1;
}

body.edd-checkout .wp-block-edd-checkout #edd_checkout_cart .edd-blocks-cart__action-remove.edd_cart_remove_item_btn {
  color: var(--zd-text) !important;
  background-position: 50% 50% !important;
  background-size: 1em !important;
  width: 1em !important;
  height: 1em !important;
  display: inline-block !important;
  text-decoration: none !important;
  opacity: 0.7;
}

body.edd-checkout .wp-block-edd-checkout #edd_checkout_cart .edd-blocks-cart__action-remove.edd_cart_remove_item_btn:hover {
  opacity: 1;
}

/* Recover classic EDD cart table semantics when third-party CSS overrides table elements. */
body.edd-checkout table#edd_checkout_cart {
  display: table !important;
  width: 100% !important;
  table-layout: auto !important;
  border-collapse: collapse !important;
}

body.edd-checkout table#edd_checkout_cart thead {
  display: table-header-group !important;
}

body.edd-checkout table#edd_checkout_cart tbody {
  display: table-row-group !important;
}

body.edd-checkout table#edd_checkout_cart tfoot {
  display: table-footer-group !important;
}

body.edd-checkout table#edd_checkout_cart tr {
  display: table-row !important;
}

body.edd-checkout table#edd_checkout_cart th,
body.edd-checkout table#edd_checkout_cart td {
  display: table-cell !important;
  vertical-align: middle !important;
}

body.edd-checkout table#edd_checkout_cart td.edd_cart_actions,
body.edd-checkout table#edd_checkout_cart th.edd_cart_actions,
body.edd-checkout table#edd_checkout_cart th.edd_cart_total {
  white-space: nowrap;
  text-align: right;
}

body.edd-checkout table#edd_checkout_cart td.edd_cart_actions .edd_cart_remove_item_btn {
  display: inline !important;
  margin-left: 8px;
}

body.edd-checkout #edd_checkout_wrap {
  display: grid;
  gap: 16px;
  align-items: start;
}

body.edd-checkout #edd_checkout_cart_form,
body.edd-checkout #edd_checkout_form_wrap {
  margin: 0;
}

@media (min-width: 1100px) {
  body.edd-checkout #edd_checkout_wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  body.edd-checkout #edd_checkout_cart_form {
    position: sticky;
    top: 88px;
  }
}

@media (max-width: 1099px) {
  body.edd-checkout #edd_checkout_wrap {
    grid-template-columns: 1fr;
  }
}

body.edd-checkout #edd_checkout_wrap .edd-blocks-form__cart .edd-discount-code-field-wrap {
  display: flex !important;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

body.edd-checkout #edd_checkout_wrap .edd-blocks-form__cart .edd-discount-code-field-wrap .edd-input {
  width: auto !important;
  flex: 1 1 auto;
  min-width: 220px;
}

body.edd-checkout #edd_checkout_wrap .edd-blocks-form__cart .edd-discount-code-field-wrap .edd-apply-discount {
  width: auto !important;
  flex: 0 0 auto;
}

body.edd-checkout #edd_checkout_wrap .edd-apply-discount {
  font-family: var(--zd-font-ui);
  padding: 8px 14px;
  min-height: 42px;
  font-size: 0.95rem;
  line-height: 1.1;
}

body.edd-checkout #edd_checkout_wrap .edd_empty_cart,
body.edd-checkout #edd_checkout_wrap .zd-empty-checkout {
  display: block;
  border: var(--zd-card-border);
  border-radius: 16px;
  background: var(--zd-gradient-panel-soft);
  box-shadow: var(--zd-card-elevated-shadow);
  padding: 20px;
}

body.edd-checkout #edd_checkout_wrap:has(.zd-empty-checkout) {
  grid-template-columns: 1fr !important;
}

body.edd-checkout #edd_checkout_wrap:has(.zd-empty-checkout) #edd_checkout_cart_form,
body.edd-checkout #edd_checkout_wrap:has(.zd-empty-checkout) #edd_checkout_form_wrap {
  grid-column: 1 / -1 !important;
}

body.edd-checkout #edd_checkout_wrap .zd-empty-checkout {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

body.edd-checkout #edd_checkout_wrap .zd-empty-checkout__icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.edd-checkout #edd_checkout_wrap .zd-empty-checkout__icon img {
  width: 72px;
  height: 72px;
  display: block;
}

body.edd-checkout #edd_checkout_wrap .zd-empty-checkout__body {
  min-width: 0;
}

body.edd-checkout #edd_checkout_wrap .zd-empty-checkout__title {
  display: block;
  margin: 0 0 8px;
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--zd-text);
}

body.edd-checkout #edd_checkout_wrap .zd-empty-checkout__desc {
  display: block;
  margin: 0;
  color: var(--zd-muted);
}

body.edd-checkout #edd_checkout_wrap .zd-empty-checkout__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

@media (max-width: 700px) {
  body.edd-checkout #edd_checkout_wrap .zd-empty-checkout {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

body.edd-checkout #edd_checkout_form_wrap #edd_purchase_form {
  display: grid;
  gap: 14px;
}

body.edd-checkout #edd_checkout_form_wrap #edd_purchase_form .edd-payment-icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin: 0;
  background: #ffffff;
  border: 1px solid var(--zd-border);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(13, 44, 92, 0.08);
  order: 30;
  justify-self: center;
  align-self: end;
}

body.edd-checkout #edd_checkout_form_wrap #edd_purchase_form .edd-payment-icons .payment-icon {
  margin: 0 !important;
}

body.edd-checkout #edd_checkout_form_wrap #edd_purchase_form fieldset,
.zd-edd-section {
  margin: 0;
  padding: var(--zd-card-panel-padding);
  border: var(--zd-card-border);
  border-radius: var(--zd-card-panel-radius);
  background: var(--zd-card-panel-bg);
  box-shadow: var(--zd-card-panel-shadow);
}

body.edd-checkout #edd_checkout_form_wrap #edd_purchase_form fieldset legend {
  padding: 0 10px;
  margin-left: 8px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--zd-text);
  background: #ffffff;
  border-radius: 999px;
}

body.edd-checkout #edd_checkout_form_wrap #edd_checkout_user_info legend {
  display: none;
}

body.edd-checkout #edd_checkout_form_wrap #edd_checkout_user_info p {
  margin: 0 0 12px;
}

body.edd-checkout #edd_checkout_form_wrap #edd_checkout_user_info #zd-checkout-signin-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--zd-muted);
  font-size: 0.94rem;
}

body.edd-checkout #edd_checkout_form_wrap #edd_checkout_user_info .zd-checkout-signin-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--zd-accent);
  font: inherit;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.edd-checkout #edd_checkout_form_wrap #edd_checkout_user_info .zd-checkout-signin-link:hover {
  color: #0a46c9;
}

body.edd-checkout #edd_checkout_form_wrap #edd_checkout_user_info p:last-child {
  margin-bottom: 0;
}

@media (min-width: 860px) {
  body.edd-checkout #edd_checkout_form_wrap #edd_checkout_user_info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
    align-items: start;
  }

  body.edd-checkout #edd_checkout_form_wrap #edd_checkout_user_info #edd-email-wrap {
    grid-column: 1 / -1;
  }

  body.edd-checkout #edd_checkout_form_wrap #edd_checkout_user_info #zd-checkout-signin-wrap {
    grid-column: 1 / -1;
  }

  body.edd-checkout #edd_checkout_form_wrap #edd_checkout_user_info #edd-first-name-wrap,
  body.edd-checkout #edd_checkout_form_wrap #edd_checkout_user_info #edd-last-name-wrap {
    grid-column: auto;
    margin-bottom: 0;
  }
}

body.edd-checkout #edd_checkout_form_wrap #edd_checkout_user_info .edd-label {
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 4px;
}

body.edd-checkout #edd_checkout_form_wrap #edd_checkout_user_info #edd-email-wrap .edd-label::after {
  content: " (License key will be sent to this email address.)";
  margin-left: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--zd-muted);
}

html[lang^="zh"] body.edd-checkout #edd_checkout_form_wrap #edd_checkout_user_info #edd-email-wrap .edd-label::after {
  content: "（许可证密钥将发送到此邮箱地址。）";
}

body.edd-checkout #edd_checkout_form_wrap #edd_checkout_user_info #edd-email.is-locked {
  background: #f2f6ff;
  border-color: #c9d8f9;
  color: #3d4b69;
  cursor: not-allowed;
}

body.edd-checkout #edd_checkout_form_wrap #edd_checkout_user_info .edd-description {
  display: none;
}

body.edd-checkout #edd_checkout_form_wrap .edd_errors {
  margin: 0;
}

body.edd-checkout #edd_checkout_form_wrap .edd_errors + #edd_purchase_submit {
  padding-top: 0;
}

.zd-checkout-signin-modal[hidden] {
  display: none !important;
}

.zd-checkout-signin-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(7, 20, 44, 0.6);
}

.zd-checkout-signin-modal__panel {
  width: min(440px, 100%);
  border-radius: 16px;
  border: 1px solid var(--zd-border);
  background: #fff;
  box-shadow: 0 24px 60px rgba(10, 24, 49, 0.35);
  padding: 18px 18px 16px;
  position: relative;
}

.zd-checkout-signin-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--zd-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.zd-checkout-signin-modal__close:hover {
  background: var(--zd-table-head-bg);
  color: var(--zd-text);
}

.zd-checkout-signin-modal__title {
  margin: 0 0 12px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.zd-checkout-signin-form__row {
  margin: 0 0 12px;
}

.zd-checkout-signin-form__message {
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.zd-checkout-signin-form__message.is-error {
  background: #fff1f1;
  border: 1px solid #ffd5d5;
  color: #8f1f1f;
}

.zd-checkout-signin-form__message.is-success {
  background: #eefaf4;
  border: 1px solid #cbeedc;
  color: #14613a;
}

.zd-checkout-signin-form__row label {
  display: block;
  margin-bottom: 5px;
  font-weight: 700;
}

.zd-checkout-signin-form__row .edd-input {
  width: 100%;
}

.zd-checkout-signin-form__remember {
  margin: 0 0 14px;
}

.zd-checkout-signin-form__actions {
  margin: 0;
}

.zd-checkout-signin-form__actions .edd-submit {
  min-width: 130px;
}

.zd-checkout-signin-form__lost {
  margin: 18px 0 0;
  font-size: 0.9rem;
}

body.edd-checkout #edd_checkout_form_wrap #edd_purchase_submit {
  padding-top: 16px;
  order: 20;
}

body.edd-checkout #edd_checkout_form_wrap #edd_purchase_submit #edd-paypal-container,
body.edd-checkout #edd_checkout_form_wrap #edd_purchase_submit #edd-purchase-button {
  margin-top: 8px;
}

body.edd-checkout #edd_checkout_form_wrap #edd_purchase_submit #edd-purchase-button {
  min-width: 170px;
  min-height: 54px;
  padding: 12px 22px;
  font-size: 1.2rem;
  line-height: 1.1;
}

.zd-edd-card {
  background: var(--zd-card-bg);
  border: var(--zd-card-border);
  border-radius: var(--zd-card-radius);
  box-shadow: var(--zd-card-shadow);
  padding: var(--zd-card-compact-padding);
  margin-bottom: 14px;
}

.zd-account-shortcuts {
  padding-top: 0;
}

.zd-account-shortcut-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.zd-account-shortcut-card h3 {
  margin-bottom: 8px;
}

.zd-account-shortcut-card p {
  margin: 0 0 14px;
  color: var(--zd-muted);
}

.zd-account-shortcut-card .zd-actions {
  margin-top: auto;
}

.zd-edd-title-sm { margin: 0 0 6px; font-size: 1.2rem; }
.zd-edd-subtitle { margin: 0 0 12px; color: var(--zd-muted); }

.zd-edd-account-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.zd-edd-form {
  display: grid;
  gap: 14px;
}

.zd-edd-section { min-inline-size: 0; }

.zd-edd-section legend {
  margin-left: 6px;
  padding: 0 10px;
  border: 1px solid #e2eafb;
  border-radius: 999px;
  background: #fff;
  color: var(--zd-text);
  font-size: 0.96rem;
  font-weight: 800;
}

.zd-edd-grid-sm {
  display: grid;
  gap: 10px 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.zd-edd-field {
  margin: 0 0 12px;
}

.zd-edd-field:last-child {
  margin-bottom: 0;
}

.zd-edd-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--zd-text);
}

.zd-edd-form .edd-select,
.zd-edd-form .edd-input {
  width: 100%;
}

.zd-edd-form .edd-profile-emails {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.zd-edd-form .edd-profile-email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--zd-border);
  border-radius: 10px;
  background: var(--zd-surface-soft);
}

.zd-edd-form .edd-profile-email .delete {
  font-size: 0.86rem;
  font-weight: 700;
}

.zd-edd-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: #e8f2ff;
  color: var(--zd-accent-strong);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.zd-edd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.zd-edd-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--zd-muted);
}

.zd-edd-checkbox input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.zd-edd-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.zd-edd-cell-strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--zd-text);
}

.zd-edd-receipt-products {
  display: grid;
  gap: 10px;
}

.zd-edd-receipt-product {
  border: var(--zd-card-border);
  border-radius: var(--zd-card-soft-radius);
  background: var(--zd-surface-soft);
  padding: var(--zd-card-soft-padding);
}

.zd-edd-receipt-product .zd-edd-subtitle {
  margin: 0;
}

.zd-edd-receipt-files {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

.zd-edd-primary,
.zd-edd-form .edd-submit {
  padding: var(--zd-btn-padding);
}

.zd-edd-primary:hover,
.zd-edd-form .edd-submit:hover {
  filter: brightness(1.02);
}

.zd-edd-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

#edd_profile_submit_fieldset .zd-edd-actions {
  min-height: 100%;
  align-items: center;
  justify-content: flex-start;
}

.edd_purchase_status,
.edd_receipt_payment_status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--zd-state-info-bg);
  color: var(--zd-state-info-text);
}

.edd_purchase_status.complete,
.edd_receipt_payment_status.complete {
  background: var(--zd-state-success-bg);
  color: var(--zd-state-success-text);
}

.edd_purchase_status.pending,
.edd_receipt_payment_status.pending,
.edd_purchase_status.processing,
.edd_receipt_payment_status.processing {
  background: var(--zd-state-warn-bg);
  color: var(--zd-state-warn-text);
}

.edd_purchase_status.failed,
.edd_receipt_payment_status.failed,
.edd_purchase_status.abandoned,
.edd_receipt_payment_status.abandoned,
.edd_purchase_status.cancelled,
.edd_receipt_payment_status.cancelled,
.edd_purchase_status.canceled,
.edd_receipt_payment_status.canceled {
  background: var(--zd-state-danger-bg-strong);
  color: var(--zd-state-danger-text-strong);
}

.edd_purchase_status.refunded,
.edd_receipt_payment_status.refunded,
.edd_purchase_status.partially_refunded,
.edd_receipt_payment_status.partially_refunded,
.edd_purchase_status.revoked,
.edd_receipt_payment_status.revoked {
  background: var(--zd-state-neutral-bg);
  color: var(--zd-state-neutral-text);
}

.zd-edd-link {
  display: inline-flex;
  margin-top: 8px;
  font-weight: 700;
}

.zd-edd-back-link {
  margin-top: 0;
  margin-bottom: 26px;
  font-weight: 500;
}

.zd-edd-order-actions {
  margin-top: 8px;
  display: grid;
  gap: 4px;
}

.zd-edd-order-actions .zd-edd-link {
  margin-top: 0;
}

#edd_user_history td .zd-edd-order-actions {
  margin-top: 0;
}

.zd-edd-aside-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 5px;
}

.zd-edd-aside-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.zd-edd-empty {
  border: 1px dashed var(--zd-border);
  border-radius: 12px;
  padding: 12px;
  color: var(--zd-muted);
}

@media (max-width: 860px) {
  .zd-edd-grid-sm {
    grid-template-columns: 1fr;
  }
}

