@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

.sd-wrap {
	max-width: 1200px;
	margin: 0 auto;
	font-family: 'Mulish', Arial, sans-serif;
	color: #1a1a2e;
}

.sd-wrap * {
	font-family: inherit;
}

.sd-wrap h2 {
	font-size: 26px;
	margin: 0 0 4px;
}

.sd-wrap h3.sd-section-title {
	color: #1a1a6c;
	margin: 30px 0 12px;
}

.sd-wrap h4 {
	margin: 0 0 10px;
	font-size: 15px;
}

.sd-main {
	display: flex;
	gap: 24px;
	margin-top: 20px;
	flex-wrap: wrap;
}

.sd-steps {
	flex: 0 0 230px;
	border: 1px solid #e2e2ea;
	border-radius: 10px;
	padding: 20px;
}

.sd-step {
	display: flex;
	gap: 12px;
	margin-bottom: 24px;
	font-size: 13px;
	color: #444;
}

.sd-step:last-child {
	margin-bottom: 0;
}

.sd-step-num {
	flex: 0 0 26px;
	height: 26px;
	border-radius: 50%;
	background: #1a1a6c;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: bold;
}

.sd-preview-panel {
	flex: 1 1 500px;
	border: 1px solid #e2e2ea;
	border-radius: 10px;
	padding: 16px;
}

.sd-preview-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 20px;
	margin-bottom: 14px;
	font-weight: 600;
}

.sd-preview-toolbar label {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	cursor: pointer;
}

.sd-current-template {
	margin: -4px 0 12px;
	font-size: 14.5px;
	font-weight: 700;
	color: #1a1a6c;
}

.sd-preview-stage {
	background: #efeff2;
	border-radius: 6px;
	min-height: 340px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

#sd-svg-holder svg {
	max-width: 100%;
	height: auto;
}

.sd-grid {
	display: flex;
	align-items: stretch;
	gap: 24px;
	margin-top: 24px;
	flex-wrap: wrap;
}

.sd-text-table {
	flex: 1 1 650px;
	border: 1px solid #e2e2ea;
	border-radius: 10px;
	padding: 16px;
}

.sd-text-table-head,
.sd-text-row {
	display: grid;
	grid-template-columns: 1.4fr 1fr 0.6fr 1fr 1fr 1fr;
	gap: 10px;
	align-items: center;
	margin-bottom: 10px;
}

.sd-text-table-head span {
	font-weight: 700;
	font-size: 13px;
}

.sd-text-row input[type="text"],
.sd-text-row select,
.sd-text-row input[type="number"] {
	width: 100%;
	padding: 6px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.sd-format-btns {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
}

.sd-wrap .sd-format-btns button.sd-fmt {
	box-sizing: border-box;
	width: 30px !important;
	height: 30px !important;
	min-width: 30px !important;
	max-width: 30px !important;
	padding: 0 !important;
	margin: 0 !important;
	line-height: 30px !important;
	background: #1a1a6c;
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-weight: bold;
	font-size: 13px;
	text-align: center;
	flex: 0 0 30px;
	font-family: 'Mulish', Arial, sans-serif;
}

.sd-format-btns button.sd-fmt[data-fmt="italic"] {
	font-style: italic;
}

.sd-format-btns button.active {
	background: #9ad615;
	color: #1a1a2e;
}

.sd-logo-align {
	flex: 0 0 280px;
	box-sizing: border-box;
	border: 1px solid #e2e2ea;
	border-radius: 10px;
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start; /* controls stay together at the top, evenly spaced */
	gap: 18px;
	align-self: stretch;
}

.sd-logo-align h4 {
	margin: 0 0 2px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.sd-wrap .sd-logo-align label {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	font-size: 13.5px;
	line-height: 1.3;
}

.sd-wrap .sd-logo-align input[type="range"] {
	width: 100%;
	display: block;
	margin: 0;
	box-sizing: border-box;
	accent-color: #9ad615;
}

.sd-rotate-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13.5px;
	margin-top: 2px;
}

.sd-rotate-row button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 1px solid #ccc;
	background: #fff;
	color: #1a1a6c;
	border-radius: 6px;
	cursor: pointer;
	padding: 0;
}

.sd-rotate-row button:hover {
	background: #f2f2fa;
}

.sd-row-2col {
	display: flex;
	gap: 24px;
	margin-top: 24px;
	flex-wrap: wrap;
}

.sd-ink-border {
	background: #f6f6f9;
	padding: 16px;
	border-radius: 8px;
	display: flex;
	gap: 30px;
	align-items: center;
	width: 100%;
}

.sd-ink-label {
	display: flex !important;
	align-items: center;
	gap: 10px;
}

.sd-ink-picker {
	position: relative;
	display: inline-block;
}

.sd-ink-current {
	width: 34px;
	height: 26px;
	border: 2px solid #fff;
	outline: 1px solid #ccc;
	border-radius: 4px;
	cursor: pointer;
	padding: 0;
}

.sd-ink-swatch-panel {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 20;
	background: #fff;
	border: 1px solid #e2e2ea;
	border-radius: 8px;
	padding: 10px;
	display: flex;
	gap: 8px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.sd-ink-swatch {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 2px solid #fff;
	outline: 1px solid #ddd;
	cursor: pointer;
	padding: 0;
}

.sd-ink-swatch.active {
	outline: 2px solid #1a1a6c;
}

.sd-col {
	flex: 1 1 320px;
}

.sd-order-col {
	flex: 0 0 300px;
}

.sd-clipart-list {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.sd-clipart-list img,
.sd-clipart-list .sd-clipart-tile {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 60px;
	height: 60px;
	object-fit: contain;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 4px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s;
}

.sd-clipart-list .sd-clipart-tile svg {
	width: 100%;
	height: 100%;
	display: block;
}

.sd-clipart-list img:hover,
.sd-clipart-list .sd-clipart-tile:hover {
	border-color: #1a1a6c;
}

.sd-clipart-list img.active,
.sd-clipart-list .sd-clipart-tile.active {
	border-color: #9ad615;
	box-shadow: 0 0 0 1px #9ad615;
}

.sd-clipart-list .sd-clipart-tile:focus-visible {
	outline: 2px solid #1a1a6c;
	outline-offset: 2px;
}

.sd-hint {
	font-size: 12px;
	color: #777;
	margin: 4px 0 18px;
}

.sd-upload-row input[type="file"] {
	width: 100%;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
}

.sd-order-col label {
	display: block;
	font-size: 13px;
	margin-bottom: 12px;
}

.sd-order-col input[type="number"] {
	width: 100%;
	padding: 6px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.sd-btn {
	display: block;
	width: 100%;
	padding: 12px;
	border: none;
	border-radius: 6px;
	background: #1a4bd6;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
	margin-bottom: 10px;
}

.sd-btn:hover {
	background: #1338a8;
}

.sd-instructions-label textarea {
	width: 100%;
	min-height: 80px;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	margin-top: 6px;
}

.sd-message {
	padding: 10px;
	border-radius: 6px;
	font-size: 13px;
	margin-top: 10px;
}

.sd-message.success {
	background: #eaffea;
	color: #1a7a1a;
	border: 1px solid #b6e6b6;
}

.sd-message.error {
	background: #ffeaea;
	color: #a11616;
	border: 1px solid #e6b6b6;
}

.sd-link-btn {
	background: none;
	border: none;
	color: #1a4bd6;
	text-decoration: underline;
	cursor: pointer;
	font-size: 13px;
	padding: 0;
}

/* ---------- Choose your template modal ---------- */

.sd-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.sd-modal-inner {
	background: #fff;
	border-radius: 10px;
	max-width: 680px;
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
	padding: 20px;
}

.sd-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
}

.sd-modal-header h3 {
	margin: 0;
}

.sd-modal-close {
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #555;
}

.sd-template-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}

.sd-template-grid .sd-template-item {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 10px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.15s ease;
}

.sd-template-grid .sd-template-item:hover,
.sd-template-grid .sd-template-item.active {
	border-color: #6a5bd1;
	border-width: 2px;
}

.sd-template-grid svg {
	width: 100%;
	height: auto;
}

.sd-modal-footer {
	text-align: center;
	background: #f6f6f9;
	padding: 10px;
	border-radius: 6px;
	margin: 16px 0 0;
	font-size: 13px;
	color: #555;
}

/* ---------- Mobile responsive ---------- */

@media (max-width: 900px) {
	.sd-main {
		flex-direction: column;
	}

	.sd-steps {
		flex: 1 1 auto;
		width: 100%;
	}

	.sd-step {
		display: inline-flex;
		width: auto;
		margin-right: 18px;
		vertical-align: top;
	}

	.sd-steps {
		display: flex;
		overflow-x: auto;
		gap: 10px;
		padding: 14px 12px;
	}

	.sd-preview-panel {
		width: 100%;
	}

	.sd-logo-align {
		width: 100%;
		flex: 1 1 100%;
	}

	.sd-order-col {
		flex: 1 1 100%;
	}
}

@media (max-width: 782px) {
	.sd-text-table-head,
	.sd-text-row {
		grid-template-columns: 1fr;
	}

	.sd-text-table-head span:not(:first-child) {
		margin-top: 6px;
	}
}

@media (max-width: 600px) {
	.sd-wrap h2 {
		font-size: 20px;
	}

	.sd-preview-stage {
		min-height: 240px;
		padding: 10px;
	}

	#sd-svg-holder svg {
		width: 100%;
		max-width: 280px;
	}

	.sd-preview-toolbar {
		flex-wrap: wrap;
		gap: 10px;
		font-size: 13px;
	}

	.sd-grid,
	.sd-row-2col {
		flex-direction: column;
	}

	.sd-ink-border {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}

	.sd-template-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.sd-order-col {
		order: 2;
	}
}

/* ---------- "Need Design Assistance?" button + modal ---------- */

.sd-wrap .sd-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.sd-wrap .sd-help-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: #9ad615;
	color: #15330a;
	border: none;
	border-radius: 999px;
	padding: 10px 18px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	white-space: nowrap;
	transition: opacity 0.15s ease, transform 0.15s ease;
	flex-shrink: 0;
}

.sd-wrap .sd-help-btn:hover {
	opacity: 0.88;
	transform: translateY(-1px);
}

.sd-help-modal-inner {
	max-width: 560px;
	position: relative;
	padding: 28px 26px 24px;
}

.sd-help-modal-inner .sd-modal-close {
	position: absolute;
	top: 14px;
	right: 16px;
}

.sd-help-badge {
	display: inline-block;
	background: #eaf7d4;
	color: #4c7a0e;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
	margin-bottom: 10px;
}

.sd-help-title {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 800;
	color: #1a1a2e;
}

.sd-help-intro {
	margin: 0 0 20px;
	font-size: 13.5px;
	line-height: 1.5;
	color: #555;
}

.sd-help-section {
	border-top: 1px solid #ececf3;
	padding: 16px 0;
}

.sd-help-section:first-of-type {
	border-top: none;
	padding-top: 0;
}

.sd-help-section h4 {
	margin: 0 0 10px;
	font-size: 14.5px;
	font-weight: 700;
	color: #1a1a2e;
}

.sd-help-section .sd-optional {
	font-weight: 400;
	color: #888;
	font-size: 12.5px;
}

.sd-help-field {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #333;
	margin-bottom: 4px;
}

.sd-help-field .sd-req {
	color: #d32f2f;
}

.sd-help-field textarea {
	display: block;
	width: 100%;
	min-height: 80px;
	margin-top: 6px;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 10px 12px;
	font-family: inherit;
	font-size: 13.5px;
	resize: vertical;
	box-sizing: border-box;
}

.sd-help-phone-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 0 12px;
}

.sd-help-phone-wrap svg {
	flex-shrink: 0;
	color: #4c9c2e;
}

.sd-help-phone-wrap input {
	flex: 1;
	border: none;
	outline: none;
	padding: 10px 0;
	font-size: 13.5px;
	font-family: inherit;
}

.sd-help-section .sd-hint {
	margin: 6px 0 0;
	font-size: 12px;
	color: #888;
}

.sd-help-dropzone {
	position: relative;
	border: 2px dashed #cfd3e6;
	border-radius: 10px;
	padding: 22px 14px;
	text-align: center;
	background: #fafaff;
	cursor: pointer;
}

.sd-help-dropzone.sd-dragover {
	border-color: #9ad615;
	background: #f5fbe9;
}

.sd-help-dropzone input[type="file"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.sd-help-dropzone-text strong {
	display: block;
	font-size: 13.5px;
	color: #333;
	margin-bottom: 4px;
}

.sd-help-dropzone-text span {
	font-size: 12px;
	color: #888;
}

.sd-help-logo-preview {
	margin-top: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 12.5px;
	color: #4c7a0e;
}

.sd-help-logo-preview img {
	max-height: 48px;
	max-width: 80px;
	object-fit: contain;
	border: 1px solid #eee;
	border-radius: 4px;
	background: #fff;
}

.sd-help-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	color: #444;
	line-height: 1.5;
	cursor: pointer;
}

.sd-help-checkbox input {
	margin-top: 3px;
	flex-shrink: 0;
}

.sd-help-submit-btn {
	width: 100%;
	margin-top: 6px;
	background-color: #9ad615;
	color: #15330a;
	border: none;
	padding: 13px;
	border-radius: 8px;
	font-weight: 800;
	font-size: 15px;
	cursor: pointer;
}

.sd-help-submit-btn:hover {
	opacity: 0.9;
}

.sd-help-footer {
	margin: 12px 0 0;
	font-size: 11.5px;
	color: #999;
	text-align: center;
}

@media screen and (max-width: 600px) {
	.sd-wrap .sd-header {
		flex-direction: column;
		align-items: stretch;
	}

	.sd-wrap .sd-help-btn {
		justify-content: center;
	}

	.sd-help-modal-inner {
		padding: 22px 16px 18px;
	}
}

/* ---------- Square/Rectangle "Choose your template" modal ---------- */

.sd-square-template-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
}

.sd-square-template-tabs .sd-square-tab {
	flex: 1;
	background: #f2f2f7;
	border: 1px solid #e2e2ea;
	border-radius: 7px;
	padding: 9px 12px;
	font-weight: 700;
	font-size: 13.5px;
	color: #555;
	cursor: pointer;
}

.sd-square-template-tabs .sd-square-tab.active {
	background: #1a1a6c;
	border-color: #1a1a6c;
	color: #fff;
}

.sd-square-template-grid {
	grid-template-columns: repeat(3, 1fr);
}

.sd-square-template-grid .sd-template-item {
	flex-direction: column;
	gap: 6px;
	padding: 12px 8px;
}

.sd-square-template-grid svg {
	width: 100%;
	height: auto;
	max-height: 70px;
}

.sd-square-template-grid .sd-square-template-label {
	font-size: 11px;
	text-align: center;
	color: #555;
	line-height: 1.3;
}

.sd-guide-toggle-row {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	color: #333;
	cursor: pointer;
}

@media screen and (max-width: 600px) {
	.sd-square-template-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ---------- Rectangle / Factory seal template picker (uploaded images) ---------- */

.sd-square-template-grid .sd-seal-template-img {
	width: 100%;
	height: 70px;
	object-fit: contain;
	display: block;
}

.sd-seal-template-empty {
	grid-column: 1 / -1;
	text-align: center;
	color: #777;
	margin: 20px 0;
}

/* ---------- Zoom Level slider above the preview ---------- */

.sd-zoom-row {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13.5px;
	font-weight: 600;
	color: #333;
}

/* Zoom sits on the right of the toolbar row (Round Seal / Square Seal ... Zoom Level ----o---) */
.sd-preview-toolbar .sd-zoom-row {
	margin-left: auto;
}

.sd-wrap .sd-zoom-row label {
	cursor: default;
	white-space: nowrap;
}

.sd-zoom-row input[type="range"] {
	width: 220px;
	max-width: 40vw;
}

.sd-preview-stage {
	overflow: auto;
}

/* Product with a single seal type: show it as a plain label, no radio circle. */
.sd-preview-toolbar .sd-shape-only input[type="radio"] {
	display: none;
}

.sd-preview-toolbar .sd-shape-only {
	cursor: default;
	color: #1a1a6c;
}

.sd-help-error {
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #ffeaea;
	color: #a11616;
	font-size: 14px;
}

/* ---------- Brand-coloured "Choose File" buttons ---------- */
.sd-wrap input[type="file"] {
	font-family: inherit;
	font-size: 14px;
	color: #555;
}

/* (separate rules: a browser that doesn't know one pseudo-element would drop a combined rule) */
.sd-wrap input[type="file"]::file-selector-button {
	margin-right: 12px;
	padding: 9px 18px;
	border: 0;
	border-radius: 6px;
	background: #1a1a6c;
	color: #9ad615;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s;
}

.sd-wrap input[type="file"]::-webkit-file-upload-button {
	margin-right: 12px;
	padding: 9px 18px;
	border: 0;
	border-radius: 6px;
	background: #1a1a6c;
	color: #9ad615;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s;
}

.sd-wrap input[type="file"]::file-selector-button:hover {
	background: #2a2a8c;
}

.sd-wrap input[type="file"]::-webkit-file-upload-button:hover {
	background: #2a2a8c;
}

@media (max-width: 700px) {
	.sd-preview-toolbar .sd-zoom-row {
		margin-left: 0;
		width: 100%;
	}

	.sd-zoom-row input[type="range"] {
		flex: 1;
		width: auto;
		max-width: none;
	}
}
