@import "@automattic/typography/styles/woo-commerce";
@import "@wordpress/base-styles/breakpoints";

body.is-section-plans.is-woo-express-plan {
	.layout__primary .main {
		box-sizing: content-box;
	}

	&.color-scheme {
		--color-surface-backdrop: var(--color-surface);
	}

	.section-nav {
		box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
	}

	.plans,
	.current-plan {
		background-color: var(--color-surface);
	}

	.formatted-header__title {
		font-family: $woo-title-font;
	}

	.woo-express-plans-page__section-title {
		font-size: $woo-font-title-medium;
		text-align: center;
		font-weight: 400;
		color: var(--color-neutral-80);
		margin: 60px 0 40px 0;

		@media (max-width: $break-mobile) {
			text-align: left;
			font-size: $woo-font-title-small;
			padding: 0 20px;
			margin: 40px 0 24px 0;
		}
	}

	.woo-express-plans-page__price-card {
		display: flex;
		flex-wrap: wrap;
		border-radius: 2px 2px 0 0;
		padding: 24px 32px;
		margin: 40px 0;

		@media (max-width: $break-mobile) {
			flex-direction: column;
			margin: 0 20px 40px;
			padding: 32px 20px;
		}

		&.woo-express-plans-page__price-card-for-grid {
			background-color: color-mix(in srgb, var(--color-neutral-0) 80%, transparent);
			box-shadow: none;

			.woo-express-plans-page__price-card-text .woo-express-plans-page__price-card-label {
				background-color: var(--color-neutral-5);
			}
		}

		.woo-express-plans-page__price-card-text {
			flex: 1;
			display: flex;
			flex-direction: column;

			.woo-express-plans-page__price-card-label {
				font-size: $woo-font-body-xx-small;
				font-weight: 500;
				background-color: var(--color-neutral-0);
				border-radius: 4px;
				margin-bottom: 8px;
				padding: 0 10px;
				width: fit-content;
			}

			.woo-express-plans-page__price-card-title {
				font-size: $woo-font-title-medium;
			}

			.woo-express-plans-page__price-card-subtitle {
				flex: 1;
				font-size: $woo-font-body-small;
				color: var(--color-neutral-80);
			}
		}

		.woo-express-plans-page__price-card-cta-wrapper {
			width: 100%;
			margin-top: 20px;

			@media (max-width: $break-mobile) {
				margin-top: 0;
			}

			.woo-express-plans-page__price-card-cta {

				border-color: var(--color-accent);
				color: var(--color-accent);

				@media (max-width: $break-mobile) {
					width: 100%;
					margin-top: 25px;
					line-height: 30px;
				}
			}
		}

		.woo-express-plans-page__price-card-conditions {
			display: flex;
			flex-direction: column;
			text-align: right;

			@media (max-width: $break-mobile) {
				text-align: left;
			}

			.woo-express-plans-page__price-card-value {
				font-size: $woo-font-title-large;
				font-weight: 500;

				@media (max-width: $break-mobile) {
					font-size: $woo-font-headline-small;
					margin-top: 30px;
					font-weight: 400;
				}
			}

			.woo-express-plans-page__price-card-interval {
				color: var(--color-neutral-50);
				font-size: $woo-font-body-xx-small;
			}

		}
	}

	.woo-express-plans-page__features-wrapper {
		@media (max-width: $break-mobile) {
			padding: 0 20px;
		}
	}

	.woo-express-plans-page__bottom-banner {
		// Hiding this card until we have the CTA defined
		// display: flex;
		display: none;

		padding: 40px;
		background-color: color-mix(in srgb, var(--color-neutral-0) 80%, transparent);
		box-shadow: none;
		margin: 60px 0;

		@media (max-width: $break-mobile) {
			padding: 24px;
			margin: 40px 20px 0 20px;
		}

		.woo-express-plans-page__bottom-banner-content {
			flex: 1;
			padding-right: 25%;

			@media (max-width: $break-mobile) {
				padding: 0;
				margin: 0;
			}

			.woo-express-plans-page__bottom-banner-title {
				font-size: $woo-font-title-medium;
				font-weight: 400;
				color: var(--studio-black);
				margin: 0;

				@media (max-width: $break-mobile) {
					font-size: $woo-font-body-small;
					font-weight: 600;
				}
			}

			.woo-express-plans-page__bottom-banner-subtitle {
				font-size: $woo-font-body;
				font-weight: 400;
				margin: 15px 0;
				color: var(--color-neutral-40);

				@media (max-width: $break-mobile) {
					font-size: $woo-font-body-extra-small;
					color: var(--color-neutral-80);
				}
			}
		}

		.woo-express-plans-page__bottom-banner-cta {
			@media (max-width: $break-mobile) {
				width: 100%;
				margin-top: 10px;
				line-height: 30px;
			}
		}

		.woo-express-plans-page__bottom-banner-img-wrapper {
			@media (max-width: $break-mobile) {
				display: none;
			}

			margin-left: 50px;
			padding: 0 20px;
			text-align: center;

			.woo-express-plans-page__bottom-banner-img {
				width: 166px;
			}
		}
	}
}
