.tcf-wrap {
	max-width: 820px;
	margin: 0 auto
}

.tcf-card {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 24px
}

.tcf-row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

[id$="-step2"] .tcf-file-row {
	border: 1px dashed #ccc;
	border-radius: 8px;
	padding: 12px;
	background: #fff;
}

.tcf-col {
	flex: 1 1 240px
}

.tcf-actions {
	display: flex;
	gap: 12px;
	margin-top: 16px
}

.tcf-hidden {
	display: none
}

.tcf-files {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 4px
}

.tcf-cat {
	margin-top: 18px;
	padding: 12px;
	background: #fafafa;
	border: 1px solid #bbb;
	border-radius: 14px;
}

.tcf-badge {
	display: inline-block;
	font-size: 15px;
	font-weight: 600;
}

.tcf-consent {
	margin-top: 12px;
}

.tcf-consent input[type="checkbox"] {
	width: auto;
}

.tcf-help {
	color: #64748b;
	font-size: 13px
}

.tcf-error {
	color: #b91c1c;
	margin: 8px 0
}

.et-pb-alert.et-pb-success {
	font-size: 24px;
	font-weight: 600;
	color: green;
	text-align: center;
	margin: 50px 0 60px;
	line-height: 1.2;
}

.tcf-card input,
.tcf-card textarea {
	padding: 16px;
	box-sizing: border-box;
	border: 1px solid #bbb;
	width: 100%;
	border-radius: 4px;
}

.tcf-cat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px
}

.tcf-files--empty {
	display: none
}

.tcf-file-row {
	display: flex;
	gap: 12px;
	align-items: flex-end;
	flex-wrap: wrap
}

.tcf-card input[type="email"],
.tcf-card input[type="text"],
.tcf-card input[type="number"],
.tcf-card input[type="file"] {
	height: 50px;
	width: 100%;
	padding: 16px;
	box-sizing: border-box;
	border: 1px solid #bbb;
}

.tcf-file-col,
.tcf-subtype-col {
	flex: 1;
}

.tcf-remove {
	background: #fee2e2;
	border: 1px solid #fecaca;
	border-radius: 6px;
	padding: 8px 10px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
}

.tcf-remove svg {
	height: 36px;
	width: 36px;
	fill: red;
}

.tcf-add {
	background: #eef2ff;
	border: 1px solid #c7d2fe;
	border-radius: 6px;
	padding: 8px 12px;
	cursor: pointer;
}


.tcf-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
	align-items: center;
	justify-content: center;
}

.tcf-modal.is-open {
	display: flex;
}

.tcf-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

.tcf-modal-content {
	position: relative;
	max-width: 710px;
	width: calc(100% - 40px);
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	z-index: 2;
}

.tcf-modal-content img {
max-width: 100%;
    height: auto;
    display: block;
    margin-top: 15px;
    padding: 10px;
    border: 3px solid #a7aaad;
}

.tcf-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: none;
    font-size: 49px;
    line-height: 34px;
    cursor: pointer;
}

.tcf-help-inline {
	margin-top: 2px;
	font-size: 0.85em;
}

.tcf-help-link {
	color: #666!important;
	text-decoration: underline;
	cursor: pointer;
}

.tcf-help-link:hover {
	text-decoration: none;
}


[id$="-loader"] {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.7);
	z-index: 9999;
	align-items: center;
	justify-content: center
}

[id$="-loader"] div {
	padding: 20px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
	text-align: center
}

/* Mobile */
@media (max-width: 767.98px) {
	[id$="-step2"] .tcf-file-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	[id$="-step2"] .tcf-file-col,
	[id$="-step2"] .tcf-subtype-col,
	[id$="-step2"] .tcf-remove {
		width: 100%;
		height: 40px;
	}

	[id$="-step2"] .tcf-remove svg {
		width: 26px;
		height: 26px;
	}

	[id$="-step2"] .tcf-remove {
		align-self: stretch;
		height: auto;
		justify-content: center;
		margin-top: 0
	}

	[id$="-step2"] .tcf-badge {
		display: inline-block;
		font-size: 13px;
		line-height: 1.6;
		font-weight: 600;
	}

	[id$="-step2"] .tcf-cat-head {
		flex-direction: column;
	}

	[id$="-step2"] .tcf-add {
		margin-left: auto;
	}

	[id$="-step2"] .tcf-files {
		margin-top: 8px;
	}
}