/**
 * Apply Dana (FontIran) to WooCommerce Subscriptions UI.
 */

/* Admin */
body.post-type-shop_subscription,
body.woocommerce_page_wc-orders--shop_subscription,
body.woocommerce_page_wc-reports.woocommerce_page_wc-reports,
body.woocommerce_page_wc-status,
body.woocommerce_page_wc-settings .woocommerce-subscriptions-settings-tab,
body.post-type-product #wcsatt_data,
body.post-type-product .components-modal__frame:has([class*="wcsatt-"]),
body.woocommerce_page_wc-settings .wcsatt-plans-app,
.woocommerce-subscriptions-activated,
.woocommerce-subscriptions-announcement,
.woocommerce-subscriptions-announcement__container,
.woocommerce-subscriptions-health-check-tab,
.wcs-modal,
.wcs-modal__content,
.wcsatt-options,
.wcsatt-product-subscription-options,
#wcsatt_data,
#wcsatt-product-plans-root,
#wcsatt-storewide-plans-root,
#woocommerce_subscriptions_gifting,
.wcs-upgrade-notice,
[class*="wcs-"],
[class*="wcsatt"],
[class*="wcsg-"],
[class*="woocommerce-subscription"] {
	font-family: dana, Tahoma, Arial, sans-serif;
}

body.post-type-shop_subscription *,
body.woocommerce_page_wc-orders--shop_subscription *,
body.woocommerce_page_wc-settings .woocommerce-subscriptions-settings-tab *,
body.post-type-product #wcsatt_data *,
body.post-type-product .components-modal__frame:has([class*="wcsatt-"]) *,
body.woocommerce_page_wc-settings .wcsatt-plans-app *,
.woocommerce-subscriptions-health-check-tab *,
.wcs-modal *,
.wcs-modal__content *,
#wcsatt_data *,
#wcsatt-product-plans-root *,
#wcsatt-storewide-plans-root *,
.wcsatt-product-plans-app *,
.wcsatt-plans-app *,
.wcsatt-plan-modal * {
	font-family: inherit;
}

/* Override wp-components defaults inside subscription admin UI */
body.post-type-product #wcsatt_data .components-base-control,
body.post-type-product #wcsatt_data .components-base-control__label,
body.post-type-product #wcsatt_data .components-base-control__help,
body.post-type-product #wcsatt_data .components-text-control__input,
body.post-type-product #wcsatt_data .components-select-control__input,
body.post-type-product #wcsatt_data .components-button,
body.post-type-product #wcsatt_data .components-notice__content,
body.post-type-product .components-modal__frame:has([class*="wcsatt-"]) .components-base-control,
body.post-type-product .components-modal__frame:has([class*="wcsatt-"]) .components-base-control__label,
body.post-type-product .components-modal__frame:has([class*="wcsatt-"]) .components-base-control__help,
body.post-type-product .components-modal__frame:has([class*="wcsatt-"]) .components-text-control__input,
body.post-type-product .components-modal__frame:has([class*="wcsatt-"]) .components-select-control__input,
body.post-type-product .components-modal__frame:has([class*="wcsatt-"]) .components-button,
body.post-type-product .components-modal__frame:has([class*="wcsatt-"]) .components-modal__header-heading,
body.woocommerce_page_wc-settings .wcsatt-plans-app .components-base-control,
body.woocommerce_page_wc-settings .wcsatt-plans-app .components-base-control__label,
body.woocommerce_page_wc-settings .wcsatt-plans-app .components-base-control__help,
body.woocommerce_page_wc-settings .wcsatt-plans-app .components-text-control__input,
body.woocommerce_page_wc-settings .wcsatt-plans-app .components-select-control__input,
body.woocommerce_page_wc-settings .wcsatt-plans-app .components-button,
body.woocommerce_page_wc-settings .components-modal__frame:has([class*="wcsatt-"]) .components-base-control,
body.woocommerce_page_wc-settings .components-modal__frame:has([class*="wcsatt-"]) .components-base-control__label,
body.woocommerce_page_wc-settings .components-modal__frame:has([class*="wcsatt-"]) .components-base-control__help,
body.woocommerce_page_wc-settings .components-modal__frame:has([class*="wcsatt-"]) .components-text-control__input,
body.woocommerce_page_wc-settings .components-modal__frame:has([class*="wcsatt-"]) .components-select-control__input,
body.woocommerce_page_wc-settings .components-modal__frame:has([class*="wcsatt-"]) .components-button,
body.woocommerce_page_wc-settings .components-modal__frame:has([class*="wcsatt-"]) .components-modal__header-heading,
.wcsatt-plan-modal .components-base-control,
.wcsatt-plan-modal .components-base-control__label,
.wcsatt-plan-modal .components-base-control__help,
.wcsatt-plan-modal .components-text-control__input,
.wcsatt-plan-modal .components-select-control__input,
.wcsatt-plan-modal .components-button,
.wcsatt-plan-modal .components-modal__header-heading {
	font-family: dana, Tahoma, Arial, sans-serif !important;
}

/* Fallback for any remaining modal text nodes */
.wcsatt-plan-modal,
.wcsatt-plan-modal input,
.wcsatt-plan-modal select,
.wcsatt-plan-modal button,
.wcsatt-plan-modal label,
.wcsatt-plan-modal p,
.wcsatt-plan-modal span,
.wcsatt-plan-modal legend {
	font-family: dana, Tahoma, Arial, sans-serif !important;
}

/* React / wp-components admin screens */
.components-modal__frame[class*="woocommerce-subscription"],
.components-popover[class*="wcs"],
#wcs-admin-root,
.wcs-admin-root {
	font-family: dana, Tahoma, Arial, sans-serif;
}

#wcs-admin-root *,
.wcs-admin-root * {
	font-family: inherit;
}

/* Storefront */
.woocommerce [class*="wcs-"],
.woocommerce [class*="wcsatt"],
.woocommerce [class*="wcsg-"],
.woocommerce .subscription-details,
.woocommerce .wcs-recurring-totals-panel,
.woocommerce .wcsatt-options-wrapper,
.woocommerce .wcsatt-subscription-plans,
.woocommerce-account .shop_table.subscription_details,
.woocommerce-order-details .subscription-order-details {
	font-family: dana, Tahoma, Arial, sans-serif;
}

.woocommerce [class*="wcs-"] *,
.woocommerce [class*="wcsatt"] *,
.woocommerce [class*="wcsg-"] *,
.woocommerce .wcs-recurring-totals-panel *,
.woocommerce .wcsatt-options-wrapper * {
	font-family: inherit;
}

/* Block checkout / cart */
.wc-block-checkout [class*="wcs-"],
.wc-block-cart [class*="wcs-"],
.wc-block-components-totals-wrapper [class*="wcs-"] {
	font-family: dana, Tahoma, Arial, sans-serif;
}

.wc-block-checkout [class*="wcs-"] *,
.wc-block-cart [class*="wcs-"] *,
.wc-block-components-totals-wrapper [class*="wcs-"] * {
	font-family: inherit;
}
