/**
 * BIZ Calgary community integration presentation layer.
 */
.biz-integration-shell {
	padding: clamp(1.25rem, 2vw, 2rem);
	border: 1px solid var(--biz-color-border);
	border-radius: var(--biz-radius-large);
	background: var(--biz-color-surface);
	box-shadow: var(--biz-shadow-small);
}

.biz-integration-shell > :first-child {
	margin-top: 0;
}

.biz-integration-shell > :last-child {
	margin-bottom: 0;
}

.biz-integration-placeholder {
	padding: clamp(1.25rem, 3vw, 2.25rem);
	border: 2px dashed color-mix(in srgb, var(--biz-color-primary) 38%, transparent);
	border-radius: var(--biz-radius-medium);
	background: color-mix(in srgb, var(--biz-color-primary) 5%, var(--biz-color-surface));
	text-align: center;
}

.biz-integration-placeholder strong,
.biz-integration-placeholder span {
	display: block;
}

.biz-integration-placeholder span {
	margin-top: 0.4rem;
	color: var(--biz-color-text-muted);
}

.biz-prayer-times-table,
.biz-integrations-prayer-times :where(.prayer-times, .prayer-times-table, .mptt-shortcode-wrapper, .masjid-prayer-times) table {
	width: 100%;
	margin: 0;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	border: 1px solid var(--biz-color-border);
	border-radius: var(--biz-radius-medium);
	background: var(--biz-color-surface);
}

.biz-prayer-times-table th,
.biz-prayer-times-table td,
.biz-integrations-prayer-times :where(.prayer-times, .prayer-times-table, .mptt-shortcode-wrapper, .masjid-prayer-times) th,
.biz-integrations-prayer-times :where(.prayer-times, .prayer-times-table, .mptt-shortcode-wrapper, .masjid-prayer-times) td {
	padding: 0.9rem 1rem;
	border: 0;
	border-bottom: 1px solid var(--biz-color-border);
	text-align: start;
}

.biz-prayer-times-table thead th,
.biz-integrations-prayer-times :where(.prayer-times, .prayer-times-table, .mptt-shortcode-wrapper, .masjid-prayer-times) thead th {
	background: var(--biz-color-primary);
	color: #fff;
	font-weight: 700;
}

.biz-prayer-times-table tbody tr:last-child > *,
.biz-integrations-prayer-times :where(.prayer-times, .prayer-times-table, .mptt-shortcode-wrapper, .masjid-prayer-times) tbody tr:last-child > * {
	border-bottom: 0;
}

.biz-prayer-times-table .is-current,
.biz-integrations-prayer-times :where(.current, .active, .next-prayer, .is-current) {
	background: color-mix(in srgb, var(--biz-color-primary) 10%, var(--biz-color-surface));
	font-weight: 700;
}

/* The Events Calendar. */
.biz-integrations-events :where(.tribe-common, .tribe-events, .tribe-events-view) {
	font-family: inherit;
	color: var(--biz-color-text);
}

.biz-integrations-events :where(.tribe-events-calendar-list__event-row, .tribe-events-calendar-day__event, .tribe-events-pro-photo__event, .tribe-events-single) {
	padding: clamp(1rem, 2vw, 1.5rem);
	border: 1px solid var(--biz-color-border);
	border-radius: var(--biz-radius-medium);
	background: var(--biz-color-surface);
	box-shadow: var(--biz-shadow-small);
}

.biz-integrations-events :where(.tribe-events-calendar-list__event-title-link, .tribe-events-calendar-day__event-title-link, .tribe-events-single-event-title) {
	color: var(--biz-color-text);
	text-decoration: none;
}

.biz-integrations-events :where(.tribe-events-calendar-list__event-title-link, .tribe-events-calendar-day__event-title-link):hover {
	color: var(--biz-color-primary);
}

.biz-integrations-events :where(.tribe-common-c-btn, .tribe-common-c-btn-border, .tribe-events-c-subscribe-dropdown__button, .tribe-events-button) {
	min-height: 2.75rem;
	padding: 0.7rem 1rem;
	border: 1px solid var(--biz-color-primary);
	border-radius: var(--biz-radius-small);
	background: var(--biz-color-primary);
	color: #fff;
	font: inherit;
	font-weight: 700;
}

.biz-integrations-events :where(.tribe-common-c-btn-border, .tribe-events-c-subscribe-dropdown__button) {
	background: transparent;
	color: var(--biz-color-primary);
}

/* Donation systems, including GiveWP classic and block forms. */
.biz-integrations-donations :where(.give-form-wrap, .give-form, .givewp-donation-form, .givewp-layouts, .give-donation-grid-item) {
	border-radius: var(--biz-radius-medium);
}

.biz-integrations-donations :where(.give-form, .givewp-donation-form, .givewp-layouts) {
	padding: clamp(1rem, 2vw, 1.75rem);
	border: 1px solid var(--biz-color-border);
	background: var(--biz-color-surface);
	box-shadow: var(--biz-shadow-small);
}

.biz-integrations-donations :where(.give-donation-amount, .give-total-wrap, .givewp-fields-amount) {
	border-radius: var(--biz-radius-small);
	background: var(--biz-color-surface-subtle);
}

.biz-integrations-donations :is(.give-form-wrap, .give-form, .givewp-donation-form, .givewp-layouts) :where(.give-btn, .give-submit, button[type="submit"]) {
	min-height: 2.75rem;
	border-radius: var(--biz-radius-small);
	font-weight: 700;
}

.biz-integrations-donations :is(.give-form-wrap, .give-form, .givewp-donation-form, .givewp-layouts) :where(.give_error, .give_warning, .give_success) {
	padding: 0.9rem 1rem;
	border-radius: var(--biz-radius-small);
}

/* Common form plugins. */
.biz-integrations-forms :where(.wpforms-container, .wpcf7, .gform_wrapper, .forminator-ui, .nf-form-cont) {
	--biz-form-gap: 1rem;
	color: var(--biz-color-text);
}

.biz-integrations-forms :is(.wpforms-container, .wpcf7, .gform_wrapper, .forminator-ui, .nf-form-cont) :where(.wpforms-field, .wpcf7-form-control-wrap, .gfield, .forminator-field, .nf-field-container) {
	margin-bottom: var(--biz-form-gap);
}

.biz-integrations-forms :is(.wpforms-container, .wpcf7, .gform_wrapper, .forminator-ui, .nf-form-cont) :where(label, .wpforms-field-label, .gfield_label, .forminator-label, .nf-field-label) {
	color: var(--biz-color-text);
	font-weight: 700;
}

.biz-integrations-forms :is(.wpforms-container, .wpcf7, .gform_wrapper, .forminator-ui, .nf-form-cont) :where(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), select, textarea) {
	width: 100%;
	min-height: 2.8rem;
	padding: 0.7rem 0.8rem;
	border: 1px solid var(--biz-color-border);
	border-radius: var(--biz-radius-small);
	background: var(--biz-color-surface);
	color: var(--biz-color-text);
	font: inherit;
}

.biz-integrations-forms :is(.wpforms-container, .wpcf7, .gform_wrapper, .forminator-ui, .nf-form-cont) :where(input, select, textarea):focus {
	border-color: var(--biz-color-primary);
	outline: 3px solid color-mix(in srgb, var(--biz-color-primary) 22%, transparent);
	outline-offset: 1px;
}

.biz-integrations-forms :is(.wpforms-container, .wpcf7, .gform_wrapper, .forminator-ui, .nf-form-cont) :where(button[type="submit"], input[type="submit"], .wpforms-submit, .gform_button, .forminator-button, .nf-element[type="button"]) {
	min-height: 2.8rem;
	padding: 0.7rem 1.15rem;
	border: 1px solid var(--biz-color-primary);
	border-radius: var(--biz-radius-small);
	background: var(--biz-color-primary);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.biz-integrations-forms :is(.wpforms-container, .wpcf7, .gform_wrapper, .forminator-ui, .nf-form-cont) :where(.wpforms-error, .wpcf7-not-valid-tip, .gfield_validation_message, .forminator-error-message, .nf-error-msg) {
	color: #a12626;
	font-size: 0.9rem;
}

.biz-integrations-forms :is(.wpforms-container, .wpcf7, .gform_wrapper, .forminator-ui, .nf-form-cont) :where(.wpforms-confirmation-container, .wpcf7-response-output, .gform_confirmation_message, .forminator-response-message) {
	padding: 0.9rem 1rem;
	border-radius: var(--biz-radius-small);
	background: var(--biz-color-surface-subtle);
}

/* WooCommerce member/account and transaction surfaces. */
.biz-integrations-commerce-account.woocommerce-account .woocommerce-MyAccount-navigation {
	width: 29%;
}

.biz-integrations-commerce-account.woocommerce-account .woocommerce-MyAccount-content {
	width: 67%;
}

.biz-integrations-commerce-account :where(.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content, .woocommerce-cart-form, .cart_totals, .woocommerce-checkout-review-order) {
	padding: clamp(1rem, 2vw, 1.5rem);
	border: 1px solid var(--biz-color-border);
	border-radius: var(--biz-radius-medium);
	background: var(--biz-color-surface);
}

.biz-integrations-commerce-account .woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.biz-integrations-commerce-account .woocommerce-MyAccount-navigation li + li {
	border-top: 1px solid var(--biz-color-border);
}

.biz-integrations-commerce-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 0.75rem 0;
	color: var(--biz-color-text);
	font-weight: 700;
	text-decoration: none;
}

.biz-integrations-commerce-account .woocommerce-MyAccount-navigation .is-active a,
.biz-integrations-commerce-account .woocommerce-MyAccount-navigation a:hover {
	color: var(--biz-color-primary);
}

.biz-integrations-commerce-account :where(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
	padding: 1rem 1rem 1rem 1.15rem;
	border-radius: var(--biz-radius-small);
	background: var(--biz-color-surface-subtle);
}

@media (max-width: 720px) {
	.biz-prayer-times-table,
	.biz-integrations-prayer-times :where(.prayer-times, .prayer-times-table, .mptt-shortcode-wrapper, .masjid-prayer-times) {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}

	.biz-integrations-commerce-account.woocommerce-account .woocommerce-MyAccount-navigation,
	.biz-integrations-commerce-account.woocommerce-account .woocommerce-MyAccount-content {
		float: none;
		width: 100%;
	}

	.biz-integrations-commerce-account.woocommerce-account .woocommerce-MyAccount-navigation {
		margin-bottom: 1rem;
	}
}
