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

.simple-item-card {
	display: flex;
	flex-direction: row;

	.multiple-choice-question {
		margin-block-start: 0;
		margin-block-end: 8px;

		.form-legend {
			display: none;
		}

		.multiple-choice-question__answers {
			display: flex;
			gap: 24px;
		}

		.multiple-choice-question__answer-item-content {
			margin: 0;
		}

		.form-radio {
			margin: 2px 0 0;
			line-height: 1.5;
		}

		.form-label {
			font-size: $font-body-small;
			line-height: 1.5;
			margin: 0;
		}

		.form-radio:checked::before {
			background: var(--studio-green-50);
		}

		.form-radio__label {
			font-size: $font-body-small;
		}
	}

	@include break-medium {
		gap: 1rem;
	}
}

.simple-item-card__icon {
	display: none;
	box-sizing: border-box;
	min-width: 52px;
	max-height: 52px;
	background: linear-gradient(159.87deg, #f6f6f4 7.24%, #f7f4ea 64.73%, #ddedd5 116.53%);
	border-radius: 4px;

	@media only screen and (min-width: 821px) {
		display: flex;
		align-items: center;
		justify-content: center;
	}
}

.simple-item-card__icon > img {
	width: 22px;
	height: auto;
}

.simple-item-card__body {
	display: flex;
	flex-direction: column;
	border-bottom: 1px solid var(--studio-gray-5);
	flex-grow: 1;
}

.simple-item-card__header {
	display: flex;
	flex-direction: row;
	column-gap: 1em;
	font-size: $font-body-small;
	justify-content: space-between;
	align-items: flex-start;
}

.simple-item-card__header > :first-child {
	flex-grow: 1;
}

.simple-item-card__title {
	font-size: $font-title-medium;
	font-weight: 600;
	line-height: rem(29px);
	margin-bottom: 0 !important;
	color: var(--studio-gray-100);
}

.simple-item-card__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: $font-body;
	min-width: 5.7rem;
	border-width: 0;
	white-space: nowrap;

	.gridicon.gridicons-checkmark {
		transform: rotate(-8.37deg);
		margin-right: 11.46px;
		margin-bottom: 4px;
		color: #008710;
	}
}

.simple-item-card__footer {
	font-size: $font-body-small;
	line-height: rem(24px);
	padding: 8px 0 16px;
}

.simple-item-card__custom-label {
	display: inline-block;
	span {
		padding: 0.125rem 0.5rem;
		background-color: var(--studio-yellow-10);
		border-radius: 4px;
		font-size: 0.875rem;
		font-weight: 500;
		white-space: nowrap;
	}
}
