.twl-texting-demo {
	max-width: 760px;
	margin: 32px auto;
	padding: 0 16px;
}

.twl-texting-demo__card {
	background: #fff;
	border: 1px solid #d5d9e2;
	border-radius: 18px;
	box-shadow: 0 12px 36px rgba(17, 24, 39, 0.08);
	padding: 28px;
	color: #20293a;
}

.twl-texting-demo__title {
	margin: 0 0 8px;
	font-size: 2rem;
	line-height: 1.15;
}

.twl-texting-demo__description {
	margin: 0 0 20px;
	color: #495468;
}

.twl-texting-demo__notice {
	margin-bottom: 20px;
	border-radius: 12px;
	padding: 12px 14px;
	font-weight: 600;
}

.twl-texting-demo__notice--success {
	background: #edf9f0;
	color: #175b2f;
}

.twl-texting-demo__notice--error {
	background: #fff1f1;
	color: #8b1e1e;
}

.twl-texting-demo__form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.twl-texting-demo__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
}

.twl-texting-demo__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-weight: 600;
	color: #20293a;
}

.twl-texting-demo__field input {
	border: 1px solid #bcc5d3;
	border-radius: 12px;
	padding: 12px 14px;
	font: inherit;
}

.twl-texting-demo__consent {
	border: 1px solid #d5d9e2;
	border-radius: 14px;
	padding: 16px;
	background: #f7f9fc;
}

.twl-texting-demo__checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 700;
	color: #1d2738;
}

.twl-texting-demo__checkbox input {
	margin-top: 3px;
}

.twl-texting-demo__supporting-copy,
.twl-texting-consent-copy {
	margin-top: 12px;
	color: #445066;
	font-size: 0.95rem;
	line-height: 1.6;
}

.twl-texting-demo__supporting-copy p,
.twl-texting-consent-copy p {
	margin: 0 0 10px;
}

.twl-texting-demo__supporting-copy p:last-child,
.twl-texting-consent-copy p:last-child {
	margin-bottom: 0;
}

.twl-texting-demo__confirmation {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #d5d9e2;
}

.twl-texting-demo__confirmation h3 {
	margin: 0 0 10px;
}

.twl-texting-demo__confirmation p {
	color: #20293a;
}

.twl-account-sms-preferences,
.twl-account-newsletter {
	margin-top: 28px;
	padding: 22px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 22px;
	background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
}

.twl-account-newsletter {
	display: block;
	margin-top: 36px;
}

.twl-account-sms-preferences legend,
.twl-account-newsletter legend {
	margin: 0 0 10px;
	font-size: 1.3rem;
	font-weight: 700;
}

.twl-account-sms-preferences__intro,
.twl-account-newsletter__intro {
	margin: 0 0 18px;
}

[id="_wc_other/mc4wp/optin_field"] {
	display: none !important;
}

.twl-account-sms-preferences__checkbox-row,
.twl-account-newsletter__checkbox-row,
.woocommerce form .form-row.twl-wc-sms-consent-field {
	margin-top: 16px;
}

.twl-account-sms-preferences__checkbox,
.twl-account-newsletter__checkbox,
.woocommerce form .form-row.twl-wc-sms-consent-field label.checkbox {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	gap: 12px;
	align-items: flex-start;
	line-height: 1.6;
}

.twl-account-sms-preferences__checkbox input,
.twl-account-newsletter__checkbox input,
.woocommerce form .form-row.twl-wc-sms-consent-field input[type="checkbox"] {
	margin-top: 4px;
}

.woocommerce form .form-row.twl-wc-sms-consent-field .description {
	margin-top: 12px;
	padding-left: 34px;
	color: #445066;
	font-size: 0.95rem;
	line-height: 1.6;
}

.twl-texting-demo__honeypot {
	position: absolute;
	left: -9999px;
	opacity: 0;
	pointer-events: none;
}

.twl-texting-demo__submit {
	align-self: flex-start;
	border: 0;
	border-radius: 999px;
	background: #0f5f8c;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	padding: 12px 22px;
}

.twl-texting-demo__submit:hover,
.twl-texting-demo__submit:focus {
	background: #0b4a6e;
}

@media (max-width: 640px) {
	.twl-texting-demo__card {
		padding: 22px 18px;
	}

	.twl-texting-demo__grid {
		grid-template-columns: 1fr;
	}

	.twl-texting-demo__submit {
		width: 100%;
	}

	.woocommerce form .form-row.twl-wc-sms-consent-field .description {
		padding-left: 0;
	}
}
