@use 'variables' as *;

.simplestats-aboutus-welcome {
	background-color: #fff;
	padding: 35px;
	margin-bottom: 20px;
	border: 1px solid #D0CEBC;              // Light Stroke colour
	border-radius: 10px;
	display: flex;
	gap: 30px;

	@media (max-width: 782px) {
		flex-direction: column;
		align-items: stretch;
	}
}

.simplestats-aboutus-content {
	flex: 1 1 50%;
	min-width: 0;

	h3 {
		font-size: 18px;
		font-weight: 700;
		margin: 0 0 10px 0;
		line-height: 1.4;
	}

	p {
		font-size: 16px;
		margin: 0 0 20px 0;
		line-height: 1.6;

		&:last-child {
			margin-bottom: 0;
		}
	}
}

.simplestats-aboutus-image {
	flex: 1 1 50%;
	min-width: 0;
	padding-top: 5px;

	img {
		display: block;
		width: 100%;
		height: auto;
		border-radius: 8px;
	}
}

.simplestats-addons-row {
	margin: 0 -10px;
	display: flex;
	flex-wrap: wrap;
}

.simplestats-addons-col {
	padding: 0 10px;
	flex-shrink: 0;
	margin-bottom: 20px;
	flex-basis: 50%;
}

.simplestats-addon-item {
	background-color: #fff;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	border: 1px solid #D0CEBC;              // Light Stroke colour
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 5px 0 #2C324C0D;

	&-top {
		display: flex;
		padding: 20px;
	}

	&-icon {
		flex-shrink: 0;
		width: 80px;
		margin-right: 20px;

		img {
			max-width: 100%;
			height: auto;
		}
	}

	&-content {
		h4 {
			font-size: 16px;
			color: $dark-color;
			margin: 0 0 10px 0;
		}

		p {
			font-size: 16px;
			margin: 0;
			line-height: 1.5;
		}
	}

	&-bottom {
		display: flex;
		justify-content: space-between;
		padding: 12px;
		background-color: #FFFBF0;            // cream (matches upgrade teaser header/footer)
		border-top: 1px solid #D0CEBC;        // Light Stroke colour (matches card border)
		align-items: center;
		min-height: 54px;

		&-status {
			font-size: 14px;

			&-active {
				color: $addon-button-bg;
			}
		}
	}
}

// Brand citron primary button (per simplestats-citron-brand-guidelines .btn-primary):
// brand/300 #FFE57D fill, neutral/900 text, amber drop-shadow, sliding #111 overlay on hover.
.simplestats-addon-item-bottom-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	background-color: #FFE57D;                // brand/300
	color: #18191D;                           // neutral/900
	border: 0;
	border-radius: 2px;                       // button/radius
	font-size: 12px;
	font-weight: 700;
	line-height: 16px;
	cursor: pointer;
	text-decoration: none;

	&:hover,
	&:focus,
	&:focus-visible,
	&:active {
		background-color: #FFE57D;
		color: #18191D;
	}

	&:focus,
	&:focus-visible {
		outline: none;
		box-shadow: none;
		border-radius: 2px;
	}

	&:disabled {
		opacity: 0.6;
		cursor: not-allowed;
	}
}
