/* ── ECB Two-Step Forms ── */

.ecb-wrap { width: 100%; }

/* Messages */
.ecb-messages { margin: 0 0 14px; }
.ecb-msg { padding: 10px 14px; border-radius: 4px; font-size: 14px; font-weight: 600; }
.ecb-msg-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.ecb-msg-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Form shell */
.ecb-form {
	display: block;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0,0,0,.08);
	padding: 0 0 20px;
	margin-bottom: 20px;
	width: 100%;
	box-sizing: border-box;
}

/* Title bar */
.ecb-form-title{
	border-radius: 12px 12px 0 0;
	margin-bottom: 20px;
	margin-top: 20px;
	text-align: center;
	color: #f28b7d;
	font-size: 24px;
	font-weight: 600;
}

/* Form groups */
.ecb-form-group {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 0 20px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}

/* Grid helpers */
.ecb-grid-2 > * { flex: 1 1 calc(50% - 6px); }
.ecb-grid-3 > * { flex: 1 1 calc(33% - 8px); }
.ecb-grid-4 > * { flex: 1 1 calc(25% - 9px); }

/* Field column — wraps label + select inside a 2-col grid row */
.ecb-field-col { display: flex; flex-direction: column; gap: 6px; flex: 1 1 calc(50% - 6px); }
@media(min-width:767px){.ecb-field-col {max-width: calc(50% - 6px); }}
.ecb-field-col .ecb-label { margin-bottom: 0; }

/* Inputs */
.ecb-form input[type="text"],
.ecb-form input[type="email"],
.ecb-form input[type="tel"],
.ecb-form input[type="number"],
.ecb-form select,
.ecb-form textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 9px 14px;
	border: 1px solid #d6d7d9;
	border-radius: 3px;
	font-size: 14px;
	color: #333;
	background: #fff;
	outline: none;
	transition: border-color .15s;
	margin: 0;
	min-height:40px;
}
.ecb-form input:focus,
.ecb-form select:focus,
.ecb-form textarea:focus {
	border-color: #EA8A6E;
	box-shadow: 0 0 0 2px rgba(251,135,107,.15);
}

/* Textarea */
.ecb-form textarea { resize: vertical; min-height: 90px; }

/* Submit button */
.ecb-btn-cart {
	display: block !important;
	width: calc(50% - 7px) !important;
	margin: 0;
	padding: 12px 20px !important;
	background: #fff;
	color: #EA8A6E !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	border: 1px solid #EA8A6E !important;
	border-radius: 6px !important;
	cursor: pointer;
	transition: background .2s, opacity .2s !important;
	font-family: inherit;
	text-align:center;
}
.ecb-btn-submit {
	display: block !important;
	width: calc(50% - 8px) !important;
	margin: 0;
	padding: 12px 20px !important;
	background: #EA8A6E;
	color: #fff !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	border: none !important;
	border-radius: 6px !important;
	cursor: pointer;
	transition: background .2s, opacity .2s !important;
	font-family: inherit;
	border: 1px solid #EA8A6E !important;
}
.ecb-btn-cart:hover  { background: #EA8A6E !important;color:#fff !important }
.ecb-btn-submit:hover  { color: #EA8A6E !important; background: #fff !important  }
.ecb-btn-submit:disabled { opacity: .6; cursor: not-allowed; }
.ecb-label {
	font-weight: 700;
	font-size: 16px;
	color: #555;
	margin-bottom: 10px;
}
/* Size toggle (Standard vs Custom) */
.ecb-size-toggle {
	padding: 0 20px;
	margin-bottom: 14px;
}
.ecb-size-label {
	font-weight: 700;
	font-size: 16px;
	color: #555;
	margin-bottom: 10px;
    margin-left: 20px;
}
.ecb-size-options {
	display: flex;
	gap: 15px;
}
.ecb-size-box {
	flex: 1;
	padding: 12px 16px;
	border: 2px solid #e0e0e0;
	border-radius: 5px;
	text-align: center;
	font-weight: 600;
	font-size: 14px;
	color: #555;
	cursor: pointer;
	position: relative;
	transition: all .2s;
	background: #fff;
}
.ecb-size-box:hover {
	border-color: #FB876B;
}
.ecb-size-box.ecb-active {
	border-color: #FB876B;
	background: #fff5f2;
	color: #FB876B;
}
.ecb-size-box .ecb-tick {
	position: absolute;
	top: 6px;
	right: 8px;
	color: #FB876B;
	opacity: 0;
	transition: opacity .2s;
	font-size: 18px;
}
.ecb-size-box.ecb-active .ecb-tick {
	opacity: 1;
}

/* Add-ons checkboxes */
.ecb-addons {
	flex-direction: column;
	align-items: flex-start;
}
.ecb-addons-label {
	font-weight: 700;
	font-size: 14px;
	color: #555;
	margin-bottom: 6px;
}
.ecb-addons label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #444;
	cursor: pointer;
	margin-bottom: 4px;
}
.ecb-addons input[type="checkbox"] { width: 16px; height: 16px; accent-color: #FB876B; }

/* Upload row */
.ecb-upload-row { align-items: center; flex-wrap: nowrap; }
.ecb-upload-btn {
    display: inline-block;
    padding: 14px 18px;
    background: #605e5e;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: background .2s;
	width:100%;
	text-align:center;
}
.ecb-upload-btn:hover { background: #444; }
.ecb-file-name { font-size: 13px; color: #555; flex: 1; word-break: break-all; }

/* ── Step 2 summary card ─────────────────────────────────────────────────── */

.ecb-summary { margin-bottom: 20px; }

.ecb-order-card {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 16px;
	background: #fff;
}

.ecb-order-media { flex: 0 0 120px; }

.ecb-order-img {
	width: 120px;
	height: 120px;
	object-fit: contain;
	border-radius: 8px;
	display: block;
	background: #f3f4f6;
}
.ecb-order-img--placeholder {
	width: 120px;
	height: 120px;
	background: #f3f4f6;
	border-radius: 8px;
}

.ecb-order-content { flex: 1 1 auto; min-width: 0; }

.ecb-order-title {
	font-size: 16px;
	font-weight: 700;
	color: #111;
	margin-bottom: 10px;
	word-break: break-word;
}

.ecb-order-specs { display: flex; flex-direction: column; gap: 5px; }

.ecb-order-line { font-size: 14px; color: #374151; line-height: 1.4; }
.ecb-order-label { font-weight: 600; color: #6b7280; }
.ecb-order-value { color: #111827; }
.ecb-order-value a { color: #FB876B; }

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
	.ecb-grid-2 > *,
	.ecb-grid-3 > *,
	.ecb-grid-4 > *,
	.ecb-field-col { flex: 1 1 100%; }
	.ecb-order-card  { flex-direction: column; }
	.ecb-order-media { flex: none; }
}
