/**
 * This file contains global styles for the CiviCRM UI.
 * This extends the CiviCRM theme (e.g. Shoreditch/Thames) to hide elements that are not supported by the product.
 * As well as other minor UX improvements.
 *
 * Before updating this file, consider if the issue should instead be fixed at the theme level or in CiviCRM core.
 */

/***********************************************
* Events
***********************************************/
.crm-event-manage-eventinfo-form-block-description {
	/* The main description comes from the WordPress listing */
	display: none;
}
.crm-event-manage-eventinfo-form-block-participant_listing_id {
	/* We don't currently support the pages to show participant listings, so don't allow it to be turned on */
	display: none;
}
.crm-event-manage-eventinfo-form-block-is_share {
	/* This setting (show social icons) isn't supported by our theme */
	display: none;
}
.crm-event-manage-eventinfo-form-block-info_link {
	/* This setting (info link) isn't supported by our theme - instead we add our own links using Javascript */
	display: none;
}

.crm-event-manage-tab-actions-ribbon .helpicon {
	/* This is kinda a shame to hide, but it references functionality we've hidden */
	display: none!important;
}

.crm-event-manage-eventinfo-form-block-is_map {
	/* This setting (show map) isn't supported by our theme */
	display: none;
}

.crm-event-manage-eventinfo-form-block-is_show_calendar_links {
	/* This setting (show calendar links) isn't supported by our theme */
	display: none;
}

.crm-event-manage-location-form-block #Address_Block_1 > table:last-of-type {
	/* This is the email/phone details on the location tab. These are not used anywhere in our theme, so it doesn't seem useful */
	/* This selector is horrible, but it's the only way to target this specific table */
	display: none;
}
.crm-event-manage-location-form-block .helpicon {
	/* The help on this page isn't that useful - let's hide it */
	display: none!important;
}

.crm-event-manage-registration-form-block-selfcancelxfer {
	/* Even if self-service cancellation is enabled, we don't make the page available from within our theme */
	display: none;
}

/* Fixes styles clashing between Civi and ACF in the Event Resources tab where they both the ACF button */
.crm-container a.acf-button.button {
	display: inline-flex !important;
}

/***********************************************
* Contribution pages
***********************************************/
.toplevel_page_CiviCRM form#SearchContribution a[href="/wp/wp-admin/admin.php?page=CiviCRM&q=civicrm%2Fadmin%2Fpcp&reset=1"],
.toplevel_page_CiviCRM form#SearchContribution a.helpicon ,
.toplevel_page_CiviCRM .crm-actions-ribbon.crm-contribpage-tab-actions-ribbon .helpicon,
.crm-contribution-contributionpage-settings-form-block-goal_amount,
.crm-contribution-contributionpage-settings-form-block-is_share {
	display: none!important;
}
