.selling_plan_theme_integration--hidden {
	display: none;
}

.selling-plan-option {
	border: 2px solid rgba(0, 0, 0, 0.1);
	box-sizing: border-box;
	padding: 8px;
	border-radius: 8px;
	overflow: hidden;
	max-height: 48px;
	transition: max-height 350ms ease-in-out;
	display: grid;
	grid-template-columns: 32px 1fr 64px;
	column-gap: 4px;
	row-gap: 24px;

	& input[type="radio"] {
		margin-right: 8px;
		accent-color: var(--tw-color-dulwich-blue);
	}

	&:has(input[type="radio"]:checked) {
		border: 2px solid var(--tw-color-dulwich-blue);
	}

	&#one-time-purchase {
		border-bottom-left-radius: 0;
		border-bottom-right-radius: 0;
		grid-template-rows: 24px;
		grid-template-columns: 32px 1fr 96px;

		&:has(input[type="radio"]:not(:checked)) {
			border-bottom: 2px solid transparent;
		}
	}

	&#subscribe-and-save {
		border-top-left-radius: 0;
		border-top-right-radius: 0;
		grid-template-rows: 32px 1fr 65px;

		&:has(input[type="radio"]:checked) {
			height: auto;
			max-height: 500px;
		}

		&:has(input[type="radio"]:not(:checked)) {
			border-top: 2px solid transparent;
		}

		& .delivery-container {
			grid-area: 3 / 1 / 4 / 4;
			position: relative;
			margin-top: 15px;
			width: 100%;
			height: min-content;

			& label {
				position: absolute;
				top: -10px;
				left: 10px;
				background-color: white;
				padding: 0 5px;
				font-size: 14px;
				color: #777;
			}

			& select {
				width: 100%;
				padding: 12px;
				border: 1px solid #ccc;
				border-radius: 8px;
				font-size: 16px;
				background-color: transparent;
				cursor: pointer;
				appearance: none;
			}

			&::after {
				content: '▼';
				position: absolute;
				right: 15px;
				top: 50%;
				transform: translateY(-50%);
				pointer-events: none;
				color: #555;
				font-size: 12px;
			}
		}
	}

	& .selling-plan-name {
		grid-area: 1 / 2 / 2 / 3;

		@media screen and (max-width: 400px) {
			.badge {
				display: none;
			}
		}
	}

	& .selling-plan-price {
		grid-area: 1 / 3/ 2 / 4;
		text-align: right;
		font-weight: 700;
	}

	& .selling-plan-info {
		grid-area: 2 / 1 / 3 / 4;
		background-color: #efefef;
		padding: 8px;
		border-radius: 8px;
		display: flex;
		flex-direction: column;
		gap: 8px;

		p:first-child {
			font-weight: 600;
		}

		#selling-plan-info-frequency {
			font-weight: 600;
			text-transform: lowercase;
		}

		ul {
			list-style: none;

			li:before {
				content: '✓';
				padding-right: 4px;
			}
		}
	}
}