@use "@wordpress/base-styles/mixins";
@use "@automattic/jetpack-base-styles/style";

.jetpack-redeem-partner-coupon-post-connection {
	background: var(--jp-white);
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
	border-radius: 4px;

	/*
	 * Make our custom "Redeem" button look like the "Setup and redeem" button.
	 * We have to do this because it's not native to the ConnectScreen component.
	 */
	.components-button {
		font-weight: 600;
		font-size: 14px;
		border-radius: 4px;
		height: 40px;
		justify-content: center;
	}

	&__layout {

		@include mixins.break-medium {
			display: grid;
			grid-template-columns: auto 34%;
			grid-template-areas:
				"content aside"
				"subcontent aside";
		}
	}

	&__content {
		padding: 32px 24px 24px 24px;

		@include mixins.break-medium {
			padding: 48px 48px 0 48px;
		}
	}

	&__subcontent {
		padding: 24px;

		@include mixins.break-medium {
			padding: 0 48px 48px 48px;
		}

		> p:first-child {
			margin-top: 0;

			@include mixins.break-medium {
				margin-top: 1em;
			}
		}
	}

	&__aside {
		display: flex;
		justify-content: center;
		align-items: center;
		padding: 48px 0;
		background: var(--jp-white-off);
		background-size: cover;
		background-position: center;

		@include mixins.break-medium {
			grid-area: aside;
			padding: 0;
		}

		img {
			width: 90px;

			@include mixins.break-medium {
				width: auto;
			}
		}
	}

	&__logo {
		display: flex;
		justify-content: left;
		align-items: center;
		color: #000;
		font-weight: 700;

		> * + * {
			margin-left: 8px;

			@include mixins.break-mobile {
				margin-left: 16px;
			}
		}
	}

	&__heading {
		font-style: normal;
		font-weight: 700;
		font-size: 36px;
		line-height: 40px;
		color: #000;
		margin-top: 48px;
		margin-bottom: 0;
	}

	p,
	li {
		font-style: normal;
		font-weight: 400;
		font-size: 16px;
		line-height: 24px;
		color: var(--jp-black);
	}

	ul {
		list-style-type: none;
		padding: 0;

		li {
			background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAANlBMVEVHcEwFnwUInggGnggGnggHnAcAnwUFnQcAnwcGnwkFnQgGnQgFnwcGnQYFnQcFnAcGnQkDnwdhiL0pAAAAEnRSTlMAMF//f2Aw7yBQ3+9gcIBgcED+HDbkAAAAZklEQVR4Ae3LNwICARDDQC0+cv7/Y8mwV9odSfWIcf/+VegnGkIvDaGXKvTTn/Gz+Uf5xTL0K1XotS7fs5H6GHvvaO8d7c3j7rdgHne/A/PYt/cO+R42oYdN6OEQetiFHo4A//6dAXqtBEkmtWutAAAAAElFTkSuQmCC) no-repeat;
			background-size: 24px;
			padding-left: 30px;
			margin-bottom: 9px;
		}
	}

	.jp-action-button {

		button {
			width: 100%;

			@include mixins.break-medium {
				width: auto;
			}
		}
	}

	&__actions {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		margin-top: 32px;

		@include mixins.break-medium {
			justify-content: left;
		}

		@include mixins.break-xlarge {
			flex-wrap: nowrap;
		}

		> div {
			flex: 1 0 100%;
			text-align: center;

			@include mixins.break-medium {
				text-align: left;
			}

			@include mixins.break-xlarge {
				flex: 0 0 auto;
			}
		}
	}

	&__remind-me-later {
		margin: 24px 0 0 0;
		padding: 2px 0;
		border: 0;
		background: transparent;
		color: #000;
		font-weight: 600;
		font-size: 1rem;
		text-decoration: underline;
		cursor: pointer;

		&:hover {
			text-decoration: none;
		}

		@include mixins.break-xlarge {
			margin: 0 0 0 24px;
		}
	}
}
