@import "@wordpress/base-styles/breakpoints";
@import "@wordpress/base-styles/mixins";

.is-section-professional-email-upsell {
	background-color: var(--studio-white);
}

.main.professional-email-upsell {
	max-width: 1040px;
	margin-top: 40px;

	@include breakpoint-deprecated( "<660px" ) {
		padding: 1em;
	}
}

.professional-email-upsell__header {
	text-align: center;

	.billing-interval-toggle {
		.segmented-control.is-primary {
			background-color: var(--studio-gray-0);
			border: 1px solid var(--studio-gray-5);

			&.is-compact {
				margin-bottom: 0;
				max-width: unset;
			}
		}
	}
}

.professional-email-upsell__discounted {
	text-decoration: line-through;
}

.professional-email-upsell__small-title {
	font-size: $font-body-small;
}

.professional-email-upsell__small-subtitle {
	font-size: $font-body-small;
	margin-top: 1em;
}

.professional-email-upsell__title {
	font-size: $font-title-large;
	margin-top: 1rem;
	line-height: 38px;
}

.professional-email-upsell__pricing {
	.professional-email-price__trial-badge {
		background-color: var(--studio-green-5);
		color: var(--studio-green-80);
		margin-bottom: 4px;
	}

	.price-with-interval__sale-price {
		color: var(--studio-green-60);
	}

	.price__cost > span {
		font-size: $font-title-small;
		font-weight: 600;
	}

	.price-information__free-trial {
		display: block;
		font-size: $font-body-small;
		margin-bottom: 0;
		margin-top: 4px;

		@include break-medium {
			margin-bottom: 12px;
		}
	}
}

.professional-email-upsell__standard-price {
	span {
		font-size: $font-title-small;
		font-weight: 600;
	}
}

.professional-email-upsell__content {
	display: grid;
	gap: 40px;
	margin-top: 2.5em;

	@include break-medium {
		grid-template-columns: 7fr 4fr;
		gap: 50px;
		margin-top: 3em;
	}
}

.professional-email-upsell__form {
	.form-fieldset {
		margin-bottom: 24px;

		&:last-of-type {
			margin-bottom: 32px;
		}
	}

	.form-label {
		margin-bottom: 0;

		.form-text-input-with-affixes__suffix {
			font-weight: normal;
		}
	}

	.form-password-input,
	.form-text-input-with-affixes {
		margin-top: 5px;
	}

	.new-mailbox-list__separator {
		display: none;
	}

	.new-mailbox-list__supplied-actions--disable-additional-mailboxes {
		display: unset;
	}

	.new-mailbox-list__main-actions {
		justify-content: space-between;
	}

	.new-mailbox-list__main-actions .button:first-of-type {
		margin-left: 0;
	}
}

.professional-email-upsell__features {
	display: flex;
	flex-direction: column;
	max-width: 380px;

	h2 {
		font-size: $font-body-small;
		font-weight: 600;
		margin-bottom: 5px;
	}
}

.professional-email-upsell__feature-list {
	font-size: $font-body-small;
	list-style: none;
	margin: 0;

	li {
		padding-bottom: 0.25em;

		.gridicon {
			fill: var(--color-neutral-40);
			margin-left: 1px;
			margin-right: 6px;
			vertical-align: text-bottom;
		}
	}
}

.professional-email-upsell__titan-logo {
	margin-top: 2em;
	margin-bottom: 3em;
	max-width: 160px;

	@include break-mobile {
		margin-bottom: 0;
	}
}
