.wa6gc {
	background: #fffdf9;
	border: 1px solid #e5d9ce;
	box-sizing: border-box;
	color: #2b2420;
	margin: 24px 0;
	padding: 20px;
}

.wa6gc__toggle {
	align-items: center;
	cursor: pointer;
	display: flex;
	font-size: 17px;
	font-weight: 700;
	gap: 10px;
	margin: 0;
}

.wa6gc__toggle input {
	height: 18px;
	width: 18px;
}

.wa6gc__panel {
	border-top: 1px solid #eadfd5;
	margin-top: 16px;
	padding-top: 18px;
}

.wa6gc__panel[hidden] {
	display: none;
}

.wa6gc__section {
	margin-bottom: 20px;
}

.wa6gc__label,
.wa6gc__field label {
	display: block;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 8px;
}

.wa6gc__designs {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wa6gc__design {
	align-items: center;
	background: #fff;
	border: 1px solid #ddd0c4;
	box-shadow: 0 8px 20px rgba(45, 33, 23, 0.06);
	box-sizing: border-box;
	cursor: pointer;
	display: grid;
	gap: 14px;
	grid-template-columns: 92px minmax(0, 1fr);
	min-height: 144px;
	padding: 12px;
	position: relative;
	text-align: right;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.wa6gc__design:hover,
.wa6gc__design:focus-within {
	border-color: #b58a42;
	box-shadow: 0 12px 26px rgba(45, 33, 23, 0.12);
	transform: translateY(-1px);
}

.wa6gc__design:has(input:checked),
.wa6gc__design.is-selected {
	border-color: #bd6f82;
	box-shadow: 0 0 0 2px rgba(189, 111, 130, 0.22), 0 12px 26px rgba(45, 33, 23, 0.12);
}

.wa6gc__design input {
	opacity: 0;
	pointer-events: none;
	position: absolute;
}

.wa6gc__design-preview {
	aspect-ratio: 105 / 148;
	background-color: #fffaf4;
	background-image: var(--wa6gc-card-image);
	background-position: center;
	background-size: cover;
	border: 1px solid #d7c6b6;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65), 0 6px 14px rgba(42, 30, 22, 0.12);
	display: block;
	width: 84px;
}

.wa6gc__design-copy {
	display: grid;
	gap: 5px;
	min-width: 0;
}

.wa6gc__design-name {
	color: #241e1a;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.25;
}

.wa6gc__design-desc {
	color: #6d6258;
	font-size: 13px;
	line-height: 1.35;
}

.wa6gc__field {
	margin: 0 0 16px;
	position: relative;
}

.wa6gc__field textarea,
.wa6gc__field input[type="text"] {
	background: #fff;
	border: 1px solid #cfc7bd;
	box-sizing: border-box;
	direction: rtl;
	font-size: 15px;
	line-height: 1.45;
	padding: 10px 12px;
	width: 100%;
}

.wa6gc__field textarea:focus,
.wa6gc__field input[type="text"]:focus {
	border-color: #a98244;
	box-shadow: 0 0 0 2px rgba(169, 130, 68, 0.16);
	outline: none;
}

.wa6gc__counter {
	color: #6e665f;
	display: block;
	font-size: 12px;
	margin-top: 6px;
	text-align: left;
}

.wa6gc__preview {
	aspect-ratio: 105 / 148;
	background-color: #fffaf4;
	background-image: var(--wa6gc-card-image);
	background-position: center;
	background-size: cover;
	border: 1px solid #d7c6b6;
	box-shadow: 0 16px 34px rgba(48, 36, 28, 0.14);
	box-sizing: border-box;
	color: #332a24;
	margin: 20px auto 0;
	max-width: 280px;
	overflow: hidden;
	padding: 18px;
	position: relative;
}

.wa6gc__preview-inner {
	align-items: center;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	height: 100%;
	justify-content: center;
	padding: 34px 18px;
	position: relative;
	text-align: center;
	z-index: 1;
}

.wa6gc__preview-message {
	color: inherit;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.55;
	margin-bottom: 20px;
	overflow-wrap: anywhere;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
	white-space: pre-wrap;
}

.wa6gc__preview-from {
	color: #8a6c39;
	font-size: 14px;
	font-weight: 800;
	overflow-wrap: anywhere;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

@media (max-width: 760px) {
	.wa6gc__designs {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.wa6gc {
		padding: 14px;
	}

	.wa6gc__design {
		grid-template-columns: 78px minmax(0, 1fr);
		min-height: 122px;
		padding: 10px;
	}

	.wa6gc__design-preview {
		width: 70px;
	}
}
