/** ARMD Enhancements styles. @package armd-enhancements */

.affwp-partner-link {
	background-color: #DEF1FD;
	padding-top: 5px;
	padding-bottom: 5px;
}

/* Restore heading border-bottom overridden by theme for client portfolio intro */
#affwp-affiliate-dashboard-lifetime-customers .affwp-table th {
	background-color: #DEF1FD;
}

/* Client Portfolio table: mobile — gradient labels the left (label) column */
@media (max-width: 767px) {
	#affwp-affiliate-dashboard-lifetime-customers .affwp-table-responsive td {
		background: linear-gradient(to right, #DEF1FD 33%, transparent 33%) !important;
	}
}

#affwp-affiliate-dashboard .affwp-tab-content .affwp-client-portfolio-intro h2,
#affwp-affiliate-dashboard .affwp-tab-content .affwp-client-portfolio-intro h3 {
	border-bottom: 2px solid var(--wp--preset--color--accent-1) !important;
}

body .gfield.admin-discounts {
	display:none;
}

body .npo-field .gfield_description{
    font-weight: bold;
    font-size: large !important;
}

.vcex-module.vcex-pricing.active .vcex-pricing-plan,
.vcex-module.vcex-pricing:hover .vcex-pricing-plan {
    border-color: #ff6900;
}

body .vcex-module.vcex-pricing.active,
.vcex-module.vcex-pricing:hover {
	border-color: #ff6900 !important;
}

body .vcex-module.vcex-pricing {
	border-width: 2px !important;
}


.checkout .woocommerce-terms-and-conditions-wrapper {
    display: flex;
    flex-direction: column-reverse;
}

/* Request a quote form */

#dmarc-button-row .wpb_wrapper{
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

#dmarc-button-row .wpb_wrapper a {
	flex-grow: 1;
	padding: 15px 10px;
	flex-basis: 45%;
}

.inactive-domains-input .input-container input,
.active-domains-input .input-container input,
.active-email-input .input-container input,
.package-domain-names .input-container input,
.package-domain-emails .input-container input,
.package-indomain-names .input-container input {
	margin-bottom: 15px !important;
}

.package-domain-names .gfield_required,
.package-domain-emails .gfield_required {
	font-weight: 400;
}


.gfield_error.package-domain-names .input-container input,
.gfield_error.package-domain-emails .input-container input,
.gfield_error.package-indomain-names .input-container input,
.gfield_error.active-domains-input .input-container input,
.gfield_error.active-email-input .input-container input,
.gfield_error.inactive-domains-input .input-container input {
	border: 1px solid #c02b0a;
}


.gfield_error.package-domain-names .gfield_validation_message,
.gfield_error.package-domain-emails .gfield_validation_message,
.gfield_error.package-indomain-names .gfield_validation_message,
.gfield_error.active-domains-input .gfield_validation_message,
.gfield_error.active-email-input .gfield_validation_message,
.gfield_error.inactive-domains-input .gfield_validation_message {
	margin-bottom: 25px;
    margin-top: -1px !important;
}

#gform_wrapper_5 {
	display: block !important;
}

.request-quote-form .gfield_description.instruction {
	display: none;
}

.gform_wrapper.gravity-theme .request-quote-form .ginput_container_address span {
	flex-basis: 100%;
}

.package-selector {
	margin-bottom: 20px;
}

.vcex-module.vcex-pricing {
    cursor: pointer;
}

.package-description-block .gfield_description {
	padding-top: 28px !important;
    padding-bottom: 28px;
}
.package-description-block .gfield_description p {
	margin-bottom: 0;
}

.request-quote-form .field--type-address select {
	padding: 11px 8px;
}

.request-quote-form .package-selected-heading h3 .package-text {
	font-weight: 400;
	color: #ff6900;
}

.request-quote-form .spacer.gfield {
	display: none;
}

/* Partner Portal - Logged Out */

.wpex-page-partner-login .woocommerce h2,
body.wpex-page-partner-login .woocommerce #customer_login .u-column2 {
	display: none !important;
}


/*  Partner Portal - Logged in */

/* Dashboard wrapper: white background */
body #affwp-affiliate-dashboard {
	background: #fff;
}

/* Strip coloured background from h2/h3/h4 inside tab panel content (not tab nav) */
body #affwp-affiliate-dashboard .affwp-tab-panel h2,
body #affwp-affiliate-dashboard .affwp-tab-panel h3,
body #affwp-affiliate-dashboard .affwp-tab-panel h4,
body #affwp-affiliate-dashboard .affwp-tab-content h2,
body #affwp-affiliate-dashboard .affwp-tab-content h3,
body #affwp-affiliate-dashboard .affwp-tab-content h4 {
	background: transparent !important;
	background-color: transparent !important;
	border-left: none !important;
	padding: 0;
	color: var(--wp--preset--color--accent-1) !important;
}

/* Remove warning / notice coloured highlight boxes */
body #affwp-affiliate-dashboard .affwp-notice,
body #affwp-affiliate-dashboard .affwp-alert {
	background: #f8f8f8;
	border-left: 3px solid #ccc;
	color: inherit;
}

/* Partner Portal - Dashboard Content */

/* Hide the default AffiliateWP referral URL field in the Share & Earn tab */
#tab-urls .affwp-field-url,
#tab-urls label[for*="url"],
#tab-urls .affwp-referral-url-wrap {
	display: none !important;
}

/* Partner link */
.partner-link-panel {
	display: none;
}

/* Commission rate table */
.affwp-commission-table,
.affwp-team-table {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0 24px;
}

.affwp-commission-table th,
.affwp-commission-table td,
.affwp-team-table th,
.affwp-team-table td {
	text-align: left;
	padding: 0.3em 1em;
	border: 2px solid rgba(0, 0, 0, 0.03);
	color: #666;
}

.affwp-commission-table thead th,
.affwp-team-table thead th {
	font-weight: bold;
	color: #666 !important;
	background: #fafafa;
	border-bottom: 2px solid #ddd;
	font-family: var(--wp--preset--font-family--gilroy-bold) !important;
}

.affwp-team-table tbody tr:last-child td {
	border-bottom: none;
}

/* My Earnings intro */
.affwp-my-earnings-intro {
	margin-bottom: 28px;
}

.affwp-partner-tier {
	font-size: 15px;
	margin-bottom: 16px;
}

/* Client Portfolio intro */
.affwp-client-portfolio-intro {
	margin-bottom: 28px;
}

/* Partner Portal - Registration */

body #gform_wrapper_4 {
	display: none;
}

body.logged-in #gform_wrapper_4 {
	display: block !important;
}

body #gform_wrapper_1 {
	display: block !important;
}

body.logged-in #gform_wrapper_1 {
	display: none !important;
}

.gform_wrapper.gravity-theme .gsection.details-heading {
    padding: 0;
    margin-bottom: 15px;
}

.gform_wrapper.gravity-theme .gsection.details-heading h3 {
	margin-top: 15px;
}

/* Checkout */

body.empty-cart .wc-block-mini-cart {
	display: none;
}

#order_review td.product-name{
	width: 200px;
}

.woocommerce-table--order-details .woocommerce-table__product-name .wc-item-meta {
	margin-left: 0;
}

.shop_table .cart-discount a,
.page #field_3_40,
.page #field_3_41,
.page #field_3_42 {
	display: none;
}

.woocommerce-checkout .woocommerce table thead, .woocommerce-checkout .wc-block-order-confirmation-totals table thead,
.woocommerce-checkout .woocommerce .prorated-title {
    background: #0A2C52;
	color: #fff;
}

.woocommerce-checkout .woocommerce .order-total {
	background: #f2f2f2;
}
/* Affiliate dashboard tabs - sticky below the site header */
#affwp-affiliate-dashboard-tabs {
	position: sticky;
	top: 91.75px;
	z-index: 100;
	background-color: var(--wp--preset--color--base);
	transition: box-shadow 0.2s ease;
}
#affwp-affiliate-dashboard-tabs.is-stuck {
	box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Tab nav: mobile overrides */
@media (max-width: 1000px) {
	#affwp-affiliate-dashboard #affwp-affiliate-dashboard-tabs {
		border: none !important;
	}
	#affwp-affiliate-dashboard #affwp-affiliate-dashboard-tabs li {
		background-color: #ffffff !important;
		border: none !important;
	}
	#affwp-affiliate-dashboard-tabs li a,
	#affwp-affiliate-dashboard-tabs li {
		color: #112c50 !important;
	}
	/* Active tab: white text on accent-2 background */
	#affwp-affiliate-dashboard #affwp-affiliate-dashboard-tabs li.active,
	#affwp-affiliate-dashboard #affwp-affiliate-dashboard-tabs li.active a {
		color: #ffffff !important;
		background-color: var(--wp--preset--color--accent-2) !important;
		border: none !important;
	}
}
