.tcwcf-block-fields.tcwcf-grid,
.wc-block-components-totals-wrapper.slot-wrapper > * > .tcwcf-block-fields.tcwcf-grid {
	box-sizing: border-box;
	display: grid;
	gap: 18px 16px;
	grid-template-columns: 1fr 1fr;
	margin: 0;
	padding: 8px 16px 16px;
}

.tcwcf-block-fields .tcwcf-w-full {
	grid-column: 1/-1;
}

.tcwcf-block-fields .tcwcf-w-start {
	grid-column: 1/2;
}

.tcwcf-block-fields .tcwcf-w-end {
	grid-column: 2/3;
}

@media (max-width: 600px) {

	.tcwcf-block-fields.tcwcf-grid {
		grid-template-columns: 1fr;
	}

	.tcwcf-block-fields .tcwcf-w-start,
	.tcwcf-block-fields .tcwcf-w-end {
		grid-column: 1/-1;
	}
}

.tcwcf-block-field__label {
	display: block;
	font-size: var(--tcwcf-fs-md, 1em);
	font-weight: var(--tcwcf-fw-strong, 600);
	line-height: 1.35;
	margin-bottom: 7px;
}

.tcwcf-block-field__label abbr {
	border: none;
	color: #dc2626;
	margin-left: 2px;
	text-decoration: none;
}

.tcwcf-block-field__desc {
	color: #6b7280;
	display: block;
	font-size: var(--tcwcf-fs-sm, 0.85em);
	line-height: 1.45;
	margin: -3px 0 7px;
}

.tcwcf-block-field input[type="date"],
.tcwcf-block-field input[type="email"],
.tcwcf-block-field input[type="number"],
.tcwcf-block-field input[type="tel"],
.tcwcf-block-field input[type="text"],
.tcwcf-block-field input[type="time"],
.tcwcf-block-field input[type="url"],
.tcwcf-block-field input[type="password"],
.tcwcf-block-field input[type="color"],
.tcwcf-block-field select,
.tcwcf-block-field textarea {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background: #fff;
	border: 1.5px solid #d7d9de;
	border-radius: 10px;
	box-sizing: border-box;
	color: inherit;
	display: block;
	font: inherit;
	line-height: 1.4;
	min-height: 46px;
	padding: 11px 14px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	width: 100%;
}

.tcwcf-block-field select {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%278%27%3E%3Cpath fill=%27none%27 stroke=%27%236b7280%27 stroke-linecap=%27round%27 stroke-width=%272%27 d=%27m1 1 5 5 5-5%27/%3E%3C/svg%3E");
	background-position: right 14px center;
	background-repeat: no-repeat;
	padding-right: 38px;
}

.tcwcf-block-field input[type="date"],
.tcwcf-block-field input[type="time"] {
	-webkit-appearance: auto;
	-moz-appearance: auto;
	appearance: auto;
}

.tcwcf-block-field input[type="color"] {
	height: 46px;
	padding: 4px 14px;
	cursor: pointer;
}

.tcwcf-block-field input[type="password"] {
	-webkit-appearance: auto;
	-moz-appearance: auto;
	appearance: auto;
}

.tcwcf-block-field textarea {
	min-height: 92px;
	resize: vertical;
}

.tcwcf-block-field input:hover,
.tcwcf-block-field select:hover,
.tcwcf-block-field textarea:hover {
	border-color: #b9bdc4;
}

.tcwcf-block-field input:focus,
.tcwcf-block-field input:focus-visible,
.tcwcf-block-field select:focus,
.tcwcf-block-field select:focus-visible,
.tcwcf-block-field textarea:focus,
.tcwcf-block-field textarea:focus-visible {
	border-color: #666;
	box-shadow: 0 0 0 3px rgba(102, 102, 102, 0.15);
	outline: none;
}

.tcwcf-block-field ::-moz-placeholder {
	color: #9ca3af;
}

.tcwcf-block-field ::placeholder {
	color: #9ca3af;
}

.tcwcf-block-checkbox,
.tcwcf-block-radios label {
	align-items: center;
	background: #fff;
	border: 1.5px solid #d7d9de;
	border-radius: 10px;
	cursor: pointer;
	display: flex;
	font-weight: var(--tcwcf-fw-med, 500);
	gap: 11px;
	margin: 0;
	padding: 12px 14px;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.tcwcf-block-radios label + label {
	margin-top: 8px;
}

.tcwcf-block-checkbox:hover,
.tcwcf-block-radios label:hover {
	border-color: #999;
}

.tcwcf-block-checkbox:has(input:checked),
.tcwcf-block-radios label:has(input:checked) {
	background: #f5f5f5;
	border-color: #666;
}

.tcwcf-block-checkbox input[type="checkbox"],
.tcwcf-block-radios input[type="radio"] {
	accent-color: #666;
	cursor: pointer;
	flex: none;
	height: 19px;
	margin: 0;
	width: 19px;
}

.tcwcf-block-field input[type="file"] {
	background: #fafafa;
	border: 1.5px dashed #c9ccd2;
	border-radius: 10px;
	box-sizing: border-box;
	color: #6b7280;
	cursor: pointer;
	display: block;
	font: inherit;
	padding: 12px;
	transition: border-color 0.15s ease, background-color 0.15s ease;
	width: 100%;
}

.tcwcf-block-field input[type="file"]:hover {
	background: #f5f5f5;
	border-color: #999;
}

.tcwcf-block-field input[type="file"]:focus-visible {
	border-color: #666;
	box-shadow: 0 0 0 3px rgba(102, 102, 102, 0.15);
	outline: none;
}

.tcwcf-block-field input[type="file"]::file-selector-button {
	background: #fff;
	border: 1.5px solid #d7d9de;
	border-radius: 8px;
	color: #1f2328;
	cursor: pointer;
	font: inherit;
	font-weight: var(--tcwcf-fw-strong, 600);
	margin-right: 12px;
	padding: 8px 14px;
	transition: border-color 0.15s ease;
}

.tcwcf-block-field input[type="file"]:hover::file-selector-button {
	border-color: #666;
	color: #333;
}

.tcwcf-block-field--heading strong {
	font-size: var(--tcwcf-fs-lg, 1.15em);
}

.tcwcf-block-delivery {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tcwcf-block-delivery select {
	flex: 1;
	min-width: 130px;
}

.tcwcf-file-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 6px;
}

.tcwcf-file-list:empty {
	display: none;
}

.tcwcf-file-item {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: var(--tcwcf-fs-sm, 0.85em);
	padding: 5px 10px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.03);
	width: 100%;
	box-sizing: border-box;
}

.tcwcf-file-item__name {
	overflow-wrap: anywhere;
	flex: 1;
	min-width: 0;
}

.tcwcf-file-remove {
	border: 0;
	background: none;
	cursor: pointer;
	font-size: inherit;
	line-height: 1;
	padding: 2px 6px;
	color: inherit;
	opacity: 0.55;
	transition: opacity 0.12s ease;
}

.tcwcf-file-remove:hover,
.tcwcf-file-remove:focus-visible {
	opacity: 1;
}

/* ── Button field ───────────────────────────────────────────── */
.tcwcf-button {
	display: inline-block;
	padding: 12px 24px;
	font-size: var(--tcwcf-fs-md, 1em);
	font-weight: var(--tcwcf-fw-strong, 600);
	color: #1f2328;
	background: #fff;
	border: 1.5px solid #d7d9de;
	border-radius: 10px;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.tcwcf-button:hover {
	border-color: #666;
	background: #f5f5f5;
	color: #333;
}

.tcwcf-button:focus-visible {
	outline: none;
	border-color: #666;
	box-shadow: 0 0 0 3px rgba(102, 102, 102, 0.15);
}

.tcwcf-button[type="submit"] {
	background: #1f2328;
	color: #fff;
	border-color: #1f2328;
}

.tcwcf-button[type="submit"]:hover {
	background: #333;
	border-color: #333;
	color: #fff;
}

/* ── Multi-select dropdown ──────────────────────────────────── */
.tcwcf-block-field select[multiple] {
	min-height: 120px;
}

.tcwcf-block-field select[multiple] option {
	padding: 8px 10px;
}

.tcwcf-block-field select[multiple] option:checked {
	background: #666;
	color: #fff;
}

/* ── Multi-checkbox group styling ─────────────────────────── */
.tcwcf-block-multicheckbox {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tcwcf-block-multicheckbox label {
	margin-top: 0;
}

.tcwcf-block-multicheckbox input[type="checkbox"] {
	width: 19px;
	height: 19px;
	margin: 0;
	flex: none;
	accent-color: #666;
	cursor: pointer;
}

.tcwcf-multicheckbox-actions {
	display: flex;
	gap: 8px;
	margin-bottom: 8px;
}

.tcwcf-toggle-all {
	padding: 6px 12px;
	font-size: var(--tcwcf-fs-sm, 0.85em);
	font-weight: var(--tcwcf-fw-med, 500);
	color: #6b7280;
	background: #f9fafb;
	border: 1px solid #d7d9de;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.tcwcf-toggle-all:hover {
	color: #1f2328;
	background: #f5f5f5;
	border-color: #666;
}

/* ── Country and State fields ───────────────────────────────── */
.tcwcf-block-field select[data-tcwcf-country] {
	margin-bottom: 8px;
}

.tcwcf-block-field select[data-tcwcf-state] {
	margin-top: 0;
}
