/**
 * MTF Digital Products — frontend styles.
 * Dark aquatic theme. All classes prefixed .mtf-dp-.
 * Fonts (Italiana, Cormorant Garamond, Inter) are loaded by the theme.
 */

:root {
	--mtf-bg: #05090f;
	--mtf-card: #0a1019;
	--mtf-border: #1f2f4d;
	--mtf-gold: #c9a04a;
	--mtf-gold-hover: #d8b56a;
	--mtf-text: #e8eff6;
	--mtf-muted: #a0aab5;
}

.mtf-dp-wrap {
	background: var(--mtf-bg);
	color: var(--mtf-text);
	font-family: "Inter", system-ui, -apple-system, sans-serif;
	border: 1px solid var(--mtf-border);
	border-radius: 16px;
	padding: 28px;
	max-width: 1080px;
	margin: 24px auto;
	box-sizing: border-box;
}

.mtf-dp-wrap *,
.mtf-dp-wrap *::before,
.mtf-dp-wrap *::after {
	box-sizing: border-box;
}

.mtf-dp-title {
	font-family: "Italiana", "Cormorant Garamond", Georgia, serif;
	color: var(--mtf-text);
	font-size: 2rem;
	line-height: 1.1;
	margin: 0 0 6px;
}

.mtf-dp-sub {
	color: var(--mtf-muted);
	font-size: 0.95rem;
	margin: 0 0 20px;
}

.mtf-dp-muted {
	color: var(--mtf-muted);
	font-size: 0.9rem;
}

.mtf-dp-label {
	display: block;
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0.3px;
	margin: 18px 0 8px;
	color: var(--mtf-text);
}

/* Layout columns */
.mtf-dp-cols {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

@media (min-width: 820px) {
	.mtf-dp-cols {
		grid-template-columns: 1fr 1fr;
	}
}

/* Inputs */
.mtf-dp-input,
.mtf-dp-textarea,
.mtf-dp-wrap select {
	width: 100%;
	background: #070d16;
	border: 1px solid var(--mtf-border);
	border-radius: 10px;
	color: var(--mtf-text);
	padding: 12px 14px;
	font-size: 0.95rem;
	font-family: inherit;
}

.mtf-dp-input:focus,
.mtf-dp-textarea:focus,
.mtf-dp-wrap select:focus {
	outline: none;
	border-color: var(--mtf-gold);
	box-shadow: 0 0 0 2px rgba(201, 160, 74, 0.25);
}

.mtf-dp-textarea {
	resize: vertical;
}

.mtf-dp-params {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

/* Drag & drop */
.mtf-dp-drop {
	border: 2px dashed var(--mtf-border);
	border-radius: 12px;
	padding: 26px 16px;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
	background: #070d16;
}

.mtf-dp-drop:hover,
.mtf-dp-drop.mtf-dp-dragover {
	border-color: var(--mtf-gold);
	background: #0c1422;
}

.mtf-dp-drop-icon {
	font-size: 1.8rem;
	color: var(--mtf-gold);
	display: block;
	margin-bottom: 6px;
}

.mtf-dp-drop p {
	margin: 0;
	color: var(--mtf-muted);
	font-size: 0.88rem;
}

.mtf-dp-file-preview {
	display: none;
	max-width: 180px;
	max-height: 180px;
	margin: 12px auto 0;
	border-radius: 10px;
	border: 1px solid var(--mtf-border);
}

.mtf-dp-file-preview.mtf-dp-show {
	display: block;
}

/* Style cards */
.mtf-dp-style-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 10px;
}

.mtf-dp-style-card {
	background: var(--mtf-card);
	border: 1px solid var(--mtf-border);
	border-radius: 12px;
	padding: 14px 8px;
	cursor: pointer;
	color: var(--mtf-text);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
	font-family: inherit;
}

.mtf-dp-style-card:hover {
	transform: translateY(-2px);
	border-color: var(--mtf-gold);
}

.mtf-dp-style-card.mtf-dp-active {
	border-color: var(--mtf-gold);
	box-shadow: 0 0 0 2px rgba(201, 160, 74, 0.4);
	background: #0e1726;
}

.mtf-dp-style-emoji {
	font-size: 1.6rem;
}

.mtf-dp-style-name {
	font-size: 0.78rem;
	text-align: center;
	color: var(--mtf-muted);
}

.mtf-dp-style-card.mtf-dp-active .mtf-dp-style-name {
	color: var(--mtf-gold);
}

/* Buttons */
.mtf-dp-btn {
	display: inline-block;
	background: var(--mtf-gold);
	color: var(--mtf-bg);
	border: 1px solid var(--mtf-gold);
	border-radius: 10px;
	padding: 12px 22px;
	font-weight: 700;
	font-size: 0.95rem;
	cursor: pointer;
	text-decoration: none;
	font-family: inherit;
	transition: background 0.15s, transform 0.1s;
	text-align: center;
}

.mtf-dp-btn:hover {
	background: var(--mtf-gold-hover);
	border-color: var(--mtf-gold-hover);
	color: var(--mtf-bg);
}

.mtf-dp-btn:active {
	transform: translateY(1px);
}

.mtf-dp-btn[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

.mtf-dp-btn-block {
	display: block;
	width: 100%;
}

.mtf-dp-btn-sm {
	padding: 7px 14px;
	font-size: 0.82rem;
}

.mtf-dp-btn-outline {
	background: transparent;
	color: var(--mtf-gold);
	border: 1px solid var(--mtf-gold);
}

.mtf-dp-btn-outline:hover {
	background: rgba(201, 160, 74, 0.12);
	color: var(--mtf-gold-hover);
}

.mtf-dp-actions {
	margin-top: 18px;
}

.mtf-dp-counter {
	text-align: center;
	color: var(--mtf-muted);
	font-size: 0.85rem;
	margin: 10px 0 0;
}

/* Result panel */
.mtf-dp-result {
	background: var(--mtf-card);
	border: 1px solid var(--mtf-border);
	border-radius: 12px;
	min-height: 280px;
	padding: 18px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
}

.mtf-dp-result-text {
	align-items: stretch;
	justify-content: flex-start;
}

.mtf-dp-placeholder {
	color: var(--mtf-muted);
	text-align: center;
}

.mtf-dp-preview-img {
	max-width: 100%;
	border-radius: 10px;
	border: 1px solid var(--mtf-border);
}

/* Spinner */
.mtf-dp-spinner {
	width: 46px;
	height: 46px;
	border: 4px solid rgba(201, 160, 74, 0.2);
	border-top-color: var(--mtf-gold);
	border-radius: 50%;
	animation: mtf-dp-spin 0.8s linear infinite;
	margin: 30px auto;
}

@keyframes mtf-dp-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Error */
.mtf-dp-error {
	background: rgba(176, 48, 48, 0.15);
	border: 1px solid #b03030;
	color: #ffb3b3;
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 0.88rem;
	width: 100%;
}

/* Unlock */
.mtf-dp-unlock {
	margin-top: 18px;
	background: var(--mtf-card);
	border: 1px solid var(--mtf-border);
	border-radius: 12px;
	padding: 18px;
}

.mtf-dp-unlock h3 {
	font-family: "Cormorant Garamond", Georgia, serif;
	margin: 0 0 14px;
	font-size: 1.3rem;
	color: var(--mtf-text);
}

.mtf-dp-unlock-opts {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 14px;
}

.mtf-dp-divider {
	text-align: center;
	color: var(--mtf-muted);
	font-size: 0.8rem;
	margin: 16px 0 12px;
	position: relative;
}

.mtf-dp-divider::before,
.mtf-dp-divider::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 32%;
	height: 1px;
	background: var(--mtf-border);
}

.mtf-dp-divider::before { left: 0; }
.mtf-dp-divider::after { right: 0; }

/* Product picker */
.mtf-dp-product-picker {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.mtf-dp-product-card {
	background: #070d16;
	border: 1px solid var(--mtf-border);
	border-radius: 10px;
	padding: 14px;
	cursor: pointer;
	color: var(--mtf-text);
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-family: inherit;
	transition: border-color 0.15s;
}

.mtf-dp-product-card:hover,
.mtf-dp-product-card.mtf-dp-active {
	border-color: var(--mtf-gold);
}

.mtf-dp-product-name {
	font-weight: 600;
}

.mtf-dp-product-price {
	color: var(--mtf-gold);
	font-size: 0.85rem;
}

/* Pills / urgency / vip */
.mtf-dp-pill {
	display: inline-block;
	background: rgba(201, 160, 74, 0.16);
	color: var(--mtf-gold);
	border-radius: 20px;
	padding: 4px 14px;
	font-size: 0.8rem;
	font-weight: 600;
	margin-bottom: 8px;
}

.mtf-dp-urgency {
	display: inline-block;
	border-radius: 20px;
	padding: 3px 12px;
	font-size: 0.78rem;
	font-weight: 700;
	color: #fff;
}

.mtf-dp-u-low { background: #3a7d44; }
.mtf-dp-u-medium { background: #c9a04a; color: #05090f; }
.mtf-dp-u-high { background: #d4731f; }
.mtf-dp-u-critical { background: #b03030; }

.mtf-dp-vip-badge {
	background: linear-gradient(90deg, rgba(201,160,74,0.2), rgba(201,160,74,0.05));
	border: 1px solid var(--mtf-gold);
	color: var(--mtf-gold);
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 18px;
}

.mtf-dp-teaser h3 {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.5rem;
	margin: 6px 0 10px;
	color: var(--mtf-text);
}

.mtf-dp-teaser-list {
	margin: 8px 0 16px;
	padding-left: 18px;
}

.mtf-dp-teaser-list li {
	margin-bottom: 6px;
	color: var(--mtf-text);
}

/* Full report (rendered inline) */
.mtf-dp-full-report {
	width: 100%;
}

.mtf-dp-full-report h4 {
	font-family: "Cormorant Garamond", Georgia, serif;
	color: var(--mtf-gold);
	border-bottom: 1px solid var(--mtf-border);
	padding-bottom: 6px;
	margin: 18px 0 8px;
	font-size: 1.1rem;
}

.mtf-dp-full-report ul {
	padding-left: 18px;
}

.mtf-dp-full-report li {
	margin-bottom: 5px;
}

.mtf-dp-rec-products {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.mtf-dp-rec-products a {
	background: #070d16;
	border: 1px solid var(--mtf-border);
	border-radius: 8px;
	padding: 8px 12px;
	color: var(--mtf-text);
	text-decoration: none;
	font-size: 0.82rem;
}

.mtf-dp-rec-products a:hover {
	border-color: var(--mtf-gold);
}

/* Wizard / progress */
.mtf-dp-progress {
	height: 8px;
	background: #070d16;
	border-radius: 8px;
	overflow: hidden;
	margin: 8px 0 12px;
	border: 1px solid var(--mtf-border);
}

.mtf-dp-progress-bar {
	height: 100%;
	background: var(--mtf-gold);
	transition: width 0.3s ease;
}

.mtf-dp-steps-label {
	display: flex;
	justify-content: space-between;
	max-width: 280px;
	margin: 0 auto 18px;
}

.mtf-dp-step-dot {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--mtf-card);
	border: 1px solid var(--mtf-border);
	color: var(--mtf-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.85rem;
	font-weight: 700;
}

.mtf-dp-step-dot.mtf-dp-active {
	background: var(--mtf-gold);
	color: var(--mtf-bg);
	border-color: var(--mtf-gold);
}

.mtf-dp-step {
	display: none;
}

.mtf-dp-step.mtf-dp-active {
	display: block;
}

.mtf-dp-step h3 {
	font-family: "Cormorant Garamond", Georgia, serif;
	color: var(--mtf-text);
	font-size: 1.3rem;
	margin: 0 0 4px;
}

.mtf-dp-radio-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin-top: 8px;
}

.mtf-dp-radio-card {
	background: var(--mtf-card);
	border: 1px solid var(--mtf-border);
	border-radius: 10px;
	padding: 14px;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.15s;
	color: var(--mtf-text);
}

.mtf-dp-radio-card:hover,
.mtf-dp-radio-card.mtf-dp-active {
	border-color: var(--mtf-gold);
	background: #0e1726;
}

.mtf-dp-wizard-nav {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-top: 22px;
}

.mtf-dp-wizard-nav .mtf-dp-btn {
	min-width: 120px;
}

/* Account area */
.mtf-dp-account {
	color: var(--mtf-text);
}

.mtf-dp-acc-h {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.4rem;
	color: var(--mtf-gold);
	border-bottom: 1px solid var(--mtf-border);
	padding-bottom: 6px;
	margin: 28px 0 14px;
}

.mtf-dp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 14px;
}

.mtf-dp-card-sm {
	background: var(--mtf-card);
	border: 1px solid var(--mtf-border);
	border-radius: 12px;
	overflow: hidden;
}

.mtf-dp-card-sm img {
	width: 100%;
	display: block;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.mtf-dp-card-meta {
	padding: 10px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-start;
}

.mtf-dp-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.mtf-dp-table th {
	text-align: left;
	color: var(--mtf-muted);
	border-bottom: 1px solid var(--mtf-border);
	padding: 8px;
	font-weight: 600;
}

.mtf-dp-table td {
	border-bottom: 1px solid var(--mtf-border);
	padding: 8px;
}

/* Gate */
.mtf-dp-gate {
	text-align: center;
}

.mtf-dp-gate p {
	color: var(--mtf-muted);
	margin-bottom: 20px;
}

/* Mobile tweaks */
@media (max-width: 520px) {
	.mtf-dp-wrap {
		padding: 18px;
		border-radius: 12px;
	}
	.mtf-dp-product-picker,
	.mtf-dp-radio-grid {
		grid-template-columns: 1fr;
	}
	.mtf-dp-params {
		grid-template-columns: 1fr;
	}
}

/* =============================================================
   PORTRAIT TOOL — REDESIGNED COMPONENTS (2025)
   ============================================================= */

/* --- Hero banner --- */
.mtf-dp-hero {
	text-align: center;
	padding: 32px 24px 28px;
	border-bottom: 1px solid var(--mtf-border);
	margin: -28px -28px 28px -28px;
	background: radial-gradient(ellipse at 50% 0%, rgba(201,160,74,0.08) 0%, transparent 70%);
}

.mtf-dp-hero-eyebrow {
	display: inline-block;
	background: rgba(201,160,74,0.12);
	border: 1px solid rgba(201,160,74,0.3);
	color: var(--mtf-gold);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	padding: 4px 16px;
	border-radius: 20px;
	margin-bottom: 16px;
}

.mtf-dp-hero h1 {
	font-family: "Italiana", "Cormorant Garamond", Georgia, serif;
	font-size: clamp(2.2rem, 5vw, 4rem);
	line-height: 1.05;
	color: #e8eff6;
	margin: 0 0 14px;
	font-weight: 400;
}

.mtf-dp-hero-sub {
	color: var(--mtf-muted);
	font-size: 1rem;
	max-width: 560px;
	margin: 0 auto 20px;
	line-height: 1.6;
}

.mtf-dp-hero-pills {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

.mtf-dp-hero-pill {
	background: rgba(201,160,74,0.08);
	border: 1px solid rgba(201,160,74,0.2);
	color: var(--mtf-gold);
	font-size: 0.8rem;
	font-weight: 600;
	padding: 5px 14px;
	border-radius: 20px;
}

/* --- Before/after examples strip --- */
.mtf-dp-examples {
	padding: 24px 0 28px;
	border-bottom: 1px solid var(--mtf-border);
	margin-bottom: 28px;
}

.mtf-dp-examples-label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--mtf-muted);
	text-align: center;
	margin-bottom: 16px;
}

.mtf-dp-examples-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

@media (max-width: 600px) {
	.mtf-dp-examples-row {
		grid-template-columns: 1fr;
	}
}

.mtf-dp-example-wrap {
	display: flex;
	flex-direction: column;
}

.mtf-dp-example {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--mtf-card);
	border: 1px solid var(--mtf-border);
	border-radius: 12px;
	padding: 10px;
}

.mtf-dp-ex-before,
.mtf-dp-ex-after {
	flex: 1;
	height: 80px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
}

.mtf-dp-ex-before {
	background: #0f1a2a;
	border: 1px solid var(--mtf-border);
}

.mtf-dp-ex-arrow {
	color: var(--mtf-gold);
	font-size: 1.2rem;
	flex-shrink: 0;
}

.mtf-dp-ex-label {
	text-align: center;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--mtf-muted);
	margin-top: 8px;
}

/* Art style backgrounds for example "after" panels */
.mtf-dp-style-wc  { background: linear-gradient(135deg, #1a3a4a 0%, #2d6e8a 50%, #4a9eb5 100%); }
.mtf-dp-style-oil { background: linear-gradient(135deg, #1a0a02 0%, #4a2000 50%, #8b4a00 100%); }
.mtf-dp-style-pop { background: linear-gradient(135deg, #8b0057 0%, #cc0066 40%, #ff4d94 100%); }

/* --- Tool section heading --- */
.mtf-dp-tool-heading {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.6rem;
	color: var(--mtf-text);
	margin: 0 0 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--mtf-border);
}

/* --- Style card redesign --- */
.mtf-dp-style-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

@media (min-width: 820px) {
	.mtf-dp-style-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.mtf-dp-style-card {
	border-radius: 14px;
	overflow: hidden;
	padding: 0;
	height: 110px;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	border: 2px solid var(--mtf-border);
	cursor: pointer;
	font-family: inherit;
	transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
	background: var(--mtf-card);
}

.mtf-dp-style-card:hover {
	transform: translateY(-2px);
	border-color: var(--mtf-gold);
}

.mtf-dp-style-visual {
	position: absolute;
	inset: 0;
	bottom: 36px;
}

.mtf-dp-style-label-bar {
	background: rgba(10, 16, 25, 0.92);
	backdrop-filter: blur(4px);
	padding: 8px 10px;
	z-index: 1;
	position: relative;
	text-align: left;
}

.mtf-dp-style-name {
	color: #e8eff6 !important;
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.mtf-dp-style-card.mtf-dp-active {
	border-color: var(--mtf-gold);
	box-shadow: 0 0 0 1px var(--mtf-gold), 0 4px 20px rgba(201,160,74,0.25);
}

.mtf-dp-style-card.mtf-dp-active .mtf-dp-style-name {
	color: var(--mtf-gold) !important;
}

.mtf-dp-style-emoji {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -65%);
	font-size: 2.2rem;
	z-index: 1;
	filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}

/* --- Upload zone improvements --- */
.mtf-dp-drop {
	border: 2px dashed var(--mtf-border);
	border-radius: 14px;
	padding: 32px 20px;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
	background: #070d16;
	position: relative;
}

.mtf-dp-drop-svg {
	width: 40px;
	height: 40px;
	color: var(--mtf-gold);
	display: block;
	margin: 0 auto 10px;
}

.mtf-dp-drop-primary {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--mtf-text);
	margin: 0 0 4px;
}

.mtf-dp-drop-secondary {
	font-size: 0.8rem;
	color: var(--mtf-muted);
	margin: 0;
}

/* --- Generate button size --- */
.mtf-dp-btn-lg {
	padding: 15px 24px;
	font-size: 1.05rem;
}

/* --- Result panel min-height bump --- */
.mtf-dp-result {
	min-height: 400px;
}

/* --- Unlock panel improvements --- */
.mtf-dp-unlock-heading {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.5rem;
	color: var(--mtf-text);
	margin: 0 0 6px;
}

.mtf-dp-unlock-sub {
	font-size: 0.88rem;
	color: var(--mtf-muted);
	margin: 0 0 16px;
	line-height: 1.5;
}

/* --- Trust strip --- */
.mtf-dp-trust {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	padding: 24px 0 0;
	border-top: 1px solid var(--mtf-border);
	margin-top: 28px;
}

@media (max-width: 600px) {
	.mtf-dp-trust {
		grid-template-columns: 1fr;
	}
}

.mtf-dp-trust-item {
	text-align: center;
	padding: 16px;
}

.mtf-dp-trust-icon {
	font-size: 1.8rem;
	margin-bottom: 8px;
	display: block;
}

.mtf-dp-trust-title {
	font-weight: 700;
	font-size: 0.88rem;
	color: var(--mtf-text);
	margin-bottom: 4px;
}

.mtf-dp-trust-desc {
	font-size: 0.78rem;
	color: var(--mtf-muted);
}

/* --- Hero margin compensation on smaller wraps --- */
@media (max-width: 520px) {
	.mtf-dp-hero {
		margin: -18px -18px 20px -18px;
		padding: 24px 16px 20px;
	}
}

/* ================================================================
   FULL-WIDTH PORTRAIT PAGE — PREMIUM REDESIGN v2
   ================================================================ */

@keyframes mtf-glow-pulse {
	0%, 100% { opacity: 0.5; }
	50%       { opacity: 1.0; }
}

@keyframes mtf-border-spin {
	to { transform: rotate(360deg); }
}

@keyframes mtf-shimmer {
	0%   { background-position: -200% center; }
	100% { background-position:  200% center; }
}

/* Remove old box constraint */
.entry-content .mtf-dp-wrap,
.elementor .mtf-dp-wrap {
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	background: transparent !important;
}

/* ── Full-width wrapper ── */
.mtf-dp-fw-wrap {
	--mtf-bg:         #05090f;
	--mtf-bg2:        #070d16;
	--mtf-card:       #0a1019;
	--mtf-card2:      #0d1520;
	--mtf-border:     #1f2f4d;
	--mtf-border2:    #2a3f60;
	--mtf-gold:       #c9a04a;
	--mtf-gold-hover: #d8b56a;
	--mtf-gold-glow:  rgba(201,160,74,0.18);
	--mtf-text:       #e8eff6;
	--mtf-muted:      #7a8fa8;
	background: var(--mtf-bg);
	color: var(--mtf-text);
	font-family: "Inter", system-ui, -apple-system, sans-serif;
	width: 100%;
	overflow-x: clip;
}

.mtf-dp-fw-wrap *,
.mtf-dp-fw-wrap *::before,
.mtf-dp-fw-wrap *::after { box-sizing: border-box; }

/* Hide elements with [hidden] attribute properly */
.mtf-dp-fw-wrap [hidden] { display: none !important; }

/* ── Centered column ── */
.mtf-dp-inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 40px;
}

@media (max-width: 768px)  { .mtf-dp-inner { padding: 0 20px; } }
@media (max-width: 480px)  { .mtf-dp-inner { padding: 0 16px; } }

/* ── Shared section typography ── */
.mtf-dp-section-eyebrow {
	display: block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 4px;
	text-transform: uppercase;
	color: var(--mtf-gold);
	margin-bottom: 12px;
}

.mtf-dp-section-h2 {
	font-family: "Italiana", "Cormorant Garamond", Georgia, serif;
	font-size: clamp(2rem, 4vw, 3.2rem);
	font-weight: 400;
	color: var(--mtf-text);
	margin: 0 0 12px;
	line-height: 1.05;
}

.mtf-dp-section-sub {
	color: var(--mtf-muted);
	font-size: 1rem;
	margin: 0 0 40px;
	line-height: 1.7;
	max-width: 600px;
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.mtf-dp-hero {
	padding: 90px 0 80px;
	text-align: center;
	position: relative;
	overflow: hidden;
	background: var(--mtf-bg);
	border-bottom: 1px solid var(--mtf-border);
}

/* Glowing orb behind hero */
.mtf-dp-hero::before {
	content: "";
	position: absolute;
	top: -20%;
	left: 50%;
	transform: translateX(-50%);
	width: 700px;
	height: 500px;
	border-radius: 50%;
	background: radial-gradient(ellipse, rgba(201,160,74,0.10) 0%, transparent 70%);
	pointer-events: none;
}

/* Subtle grid texture */
.mtf-dp-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(31,47,77,0.3) 1px, transparent 1px),
		linear-gradient(90deg, rgba(31,47,77,0.3) 1px, transparent 1px);
	background-size: 60px 60px;
	mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 0%, transparent 100%);
	pointer-events: none;
}

.mtf-dp-hero .mtf-dp-inner { position: relative; z-index: 1; }

.mtf-dp-hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(201,160,74,0.08);
	border: 1px solid rgba(201,160,74,0.25);
	color: var(--mtf-gold);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 4px;
	text-transform: uppercase;
	padding: 6px 20px;
	border-radius: 24px;
	margin-bottom: 24px;
}

.mtf-dp-hero-h1 {
	font-family: "Italiana", "Cormorant Garamond", Georgia, serif;
	font-size: clamp(3.5rem, 8vw, 7rem);
	font-weight: 400;
	line-height: 0.95;
	color: #fff;
	margin: 0 0 24px;
	letter-spacing: -0.02em;
	text-shadow: 0 0 60px rgba(201,160,74,0.15);
}

.mtf-dp-hero-sub {
	color: var(--mtf-muted);
	font-size: 1.1rem;
	max-width: 520px;
	margin: 0 auto 36px;
	line-height: 1.7;
}

.mtf-dp-hero-pills {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

.mtf-dp-hero-pill {
	background: rgba(201,160,74,0.06);
	border: 1px solid rgba(201,160,74,0.18);
	color: rgba(201,160,74,0.85);
	font-size: 0.78rem;
	font-weight: 600;
	padding: 7px 18px;
	border-radius: 24px;
	letter-spacing: 0.2px;
	transition: background 0.2s, border-color 0.2s;
}

.mtf-dp-hero-pill:hover {
	background: rgba(201,160,74,0.12);
	border-color: rgba(201,160,74,0.35);
}

/* ══════════════════════════════════════════
   BEFORE / AFTER EXAMPLES
══════════════════════════════════════════ */
.mtf-dp-examples-section {
	padding: 72px 0;
	background: var(--mtf-bg2);
	border-bottom: 1px solid var(--mtf-border);
}

.mtf-dp-examples-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

@media (max-width: 960px) {
	.mtf-dp-examples-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
}

.mtf-dp-ex-card {
	background: var(--mtf-card);
	border: 1px solid var(--mtf-border);
	border-radius: 20px;
	overflow: hidden;
	transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
	box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.mtf-dp-ex-card:hover {
	border-color: rgba(201,160,74,0.5);
	transform: translateY(-5px);
	box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,160,74,0.15);
}

.mtf-dp-ex-images {
	display: grid;
	grid-template-columns: 1fr 28px 1fr;
	gap: 0;
	align-items: stretch;
	height: 260px;
	background: #03060c;
}

.mtf-dp-ex-img-wrap {
	position: relative;
	overflow: hidden;
}

.mtf-dp-ex-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.mtf-dp-ex-card:hover .mtf-dp-ex-img-wrap img {
	transform: scale(1.04);
}

.mtf-dp-ex-badge {
	position: absolute;
	bottom: 10px;
	left: 10px;
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 6px;
	backdrop-filter: blur(8px);
}

.mtf-dp-ex-badge-before {
	background: rgba(5,9,15,0.8);
	color: var(--mtf-muted);
	border: 1px solid rgba(31,47,77,0.7);
}

.mtf-dp-ex-badge-after {
	background: rgba(201,160,74,0.92);
	color: #03060c;
}

.mtf-dp-ex-arrow-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #03060c;
	flex-shrink: 0;
}

.mtf-dp-ex-arrow-wrap svg {
	width: 16px;
	height: 16px;
	color: var(--mtf-gold);
	stroke: var(--mtf-gold);
	filter: drop-shadow(0 0 6px rgba(201,160,74,0.5));
}

.mtf-dp-ex-caption {
	padding: 14px 18px;
	margin: 0;
	font-size: 0.84rem;
	color: var(--mtf-muted);
	border-top: 1px solid var(--mtf-border);
	background: rgba(5,9,15,0.4);
}

.mtf-dp-ex-caption strong { color: var(--mtf-gold); }

/* ══════════════════════════════════════════
   TOOL SECTION
══════════════════════════════════════════ */
.mtf-dp-tool-section {
	padding: 72px 0;
	background: var(--mtf-bg);
	border-bottom: 1px solid var(--mtf-border);
}

.mtf-dp-tool-section > .mtf-dp-inner {
	max-width: 1600px;
	padding: 0 48px;
}

@media (max-width: 768px) {
	.mtf-dp-tool-section > .mtf-dp-inner { padding: 0 20px; }
}

.mtf-dp-tool-cols {
	display: grid;
	grid-template-columns: minmax(360px, 30%) 1fr;
	gap: 32px;
	margin-top: 36px;
	align-items: start;
}

@media (max-width: 900px) {
	.mtf-dp-tool-cols { grid-template-columns: 1fr; }
}

/* Controls sidebar — card panel */
.mtf-dp-tool-controls {
	background: var(--mtf-card);
	border: 1px solid var(--mtf-border);
	border-radius: 20px;
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 0;
	position: sticky;
	top: 80px;
}

/* Gold top accent line on controls card */
.mtf-dp-tool-controls::before {
	content: "";
	display: block;
	height: 3px;
	background: linear-gradient(90deg, var(--mtf-gold), transparent);
	border-radius: 3px 3px 0 0;
	margin: -28px -28px 24px -28px;
	border-radius: 19px 19px 0 0;
}

.mtf-dp-tool-result {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.mtf-dp-field { margin-bottom: 20px; }

.mtf-dp-optional {
	font-weight: 400;
	color: var(--mtf-muted);
	font-size: 0.78em;
}

/* ── Upload zone ── */
.mtf-dp-fw-wrap .mtf-dp-drop {
	border: 2px dashed var(--mtf-border2);
	border-radius: 14px;
	padding: 32px 20px;
	text-align: center;
	cursor: pointer;
	background: #060b13;
	transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.mtf-dp-fw-wrap .mtf-dp-drop:hover,
.mtf-dp-fw-wrap .mtf-dp-drop.mtf-dp-dragover {
	border-color: var(--mtf-gold);
	background: #0b1422;
	box-shadow: 0 0 20px rgba(201,160,74,0.08);
}

.mtf-dp-drop-svg {
	width: 36px; height: 36px;
	color: var(--mtf-gold);
	display: block;
	margin: 0 auto 10px;
	opacity: 0.8;
}

.mtf-dp-drop-primary {
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--mtf-text);
	margin: 0 0 4px;
}

.mtf-dp-drop-secondary {
	font-size: 0.78rem;
	color: var(--mtf-muted);
	margin: 0;
	line-height: 1.5;
}

/* ── Style cards ── */
.mtf-dp-fw-wrap .mtf-dp-style-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-top: 8px;
}

@media (max-width: 480px) {
	.mtf-dp-fw-wrap .mtf-dp-style-grid { grid-template-columns: repeat(2, 1fr); }
}

.mtf-dp-fw-wrap .mtf-dp-style-card {
	position: relative;
	height: 90px;
	border-radius: 12px;
	overflow: hidden;
	border: 2px solid var(--mtf-border);
	padding: 0;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
	background: var(--mtf-card2);
	font-family: inherit;
}

.mtf-dp-fw-wrap .mtf-dp-style-card:hover {
	border-color: rgba(201,160,74,0.5);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.mtf-dp-fw-wrap .mtf-dp-style-card.mtf-dp-active {
	border-color: var(--mtf-gold);
	box-shadow: 0 0 0 1px var(--mtf-gold), 0 4px 20px var(--mtf-gold-glow);
}

.mtf-dp-fw-wrap .mtf-dp-style-visual {
	position: absolute;
	inset: 0;
	bottom: 28px;
}

.mtf-dp-fw-wrap .mtf-dp-style-emoji {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -72%);
	font-size: 1.6rem;
	z-index: 1;
	filter: drop-shadow(0 2px 8px rgba(0,0,0,0.8));
	pointer-events: none;
}

.mtf-dp-fw-wrap .mtf-dp-style-label-bar {
	position: relative;
	z-index: 2;
	background: rgba(3,6,12,0.92);
	padding: 5px 6px;
	backdrop-filter: blur(6px);
}

.mtf-dp-fw-wrap .mtf-dp-style-name {
	font-size: 0.68rem !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: rgba(232,239,246,0.9) !important;
	display: block;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mtf-dp-fw-wrap .mtf-dp-style-card.mtf-dp-active .mtf-dp-style-name {
	color: var(--mtf-gold) !important;
}

/* ── Textarea ── */
.mtf-dp-fw-wrap .mtf-dp-textarea {
	width: 100%;
	background: #060b13;
	border: 1px solid var(--mtf-border2);
	border-radius: 12px;
	color: var(--mtf-text);
	padding: 14px 16px;
	font-size: 0.92rem;
	font-family: inherit;
	resize: vertical;
	min-height: 110px;
	line-height: 1.6;
}

.mtf-dp-fw-wrap .mtf-dp-textarea:focus {
	outline: none;
	border-color: var(--mtf-gold);
	box-shadow: 0 0 0 3px rgba(201,160,74,0.12);
}

/* ── Labels ── */
.mtf-dp-fw-wrap .mtf-dp-label {
	display: block;
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	margin: 0 0 10px;
	color: var(--mtf-text);
}

.mtf-dp-field-hint {
	font-size: 0.76rem;
	color: var(--mtf-muted);
	margin: 8px 0 0;
	line-height: 1.55;
}

/* ── Actions / Generate button ── */
.mtf-dp-fw-wrap .mtf-dp-actions { margin-top: 6px; }

.mtf-dp-fw-wrap .mtf-dp-counter {
	text-align: center;
	color: var(--mtf-muted);
	font-size: 0.82rem;
	margin: 10px 0 0;
}

.mtf-dp-fw-wrap .mtf-dp-btn {
	display: inline-block;
	background: linear-gradient(135deg, #c9a04a 0%, #d8b56a 50%, #c9a04a 100%);
	background-size: 200% auto;
	color: #03060c;
	border: none;
	border-radius: 12px;
	padding: 14px 24px;
	font-weight: 800;
	font-size: 0.95rem;
	cursor: pointer;
	text-decoration: none;
	font-family: inherit;
	letter-spacing: 0.3px;
	transition: background-position 0.4s, transform 0.15s, box-shadow 0.2s;
	text-align: center;
	box-shadow: 0 4px 16px rgba(201,160,74,0.25);
}

.mtf-dp-fw-wrap .mtf-dp-btn:hover {
	background-position: right center;
	transform: translateY(-1px);
	box-shadow: 0 6px 24px rgba(201,160,74,0.35);
	color: #03060c;
}

.mtf-dp-fw-wrap .mtf-dp-btn:active { transform: translateY(0); }

.mtf-dp-fw-wrap .mtf-dp-btn-block { display: block; width: 100%; }

.mtf-dp-btn-lg {
	padding: 16px 28px !important;
	font-size: 1rem !important;
}

/* ── Result panel ── */
.mtf-dp-fw-wrap .mtf-dp-result {
	background: var(--mtf-card);
	border: 1px solid var(--mtf-border);
	border-radius: 20px;
	min-height: 560px;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 32px;
	position: relative;
	overflow: hidden;
}

/* Subtle animated corner glow on result panel */
.mtf-dp-fw-wrap .mtf-dp-result::before {
	content: "";
	position: absolute;
	top: -1px; left: -1px; right: -1px; bottom: -1px;
	border-radius: 20px;
	background: linear-gradient(135deg,
		rgba(201,160,74,0.15) 0%,
		transparent 40%,
		transparent 60%,
		rgba(201,160,74,0.08) 100%
	);
	pointer-events: none;
	z-index: 0;
}

.mtf-dp-fw-wrap .mtf-dp-placeholder {
	position: relative;
	z-index: 1;
	text-align: center;
	color: var(--mtf-muted);
	padding: 20px;
}

.mtf-dp-fw-wrap .mtf-dp-placeholder p {
	font-size: 0.95rem;
	margin: 0 0 8px;
	color: rgba(160,170,181,0.7);
}

.mtf-dp-placeholder-hint {
	font-size: 0.8rem;
	color: rgba(122,143,168,0.5);
	margin: 4px 0 0;
	line-height: 1.5;
}

.mtf-dp-fw-wrap .mtf-dp-preview-img {
	position: relative;
	z-index: 1;
	max-width: 100%;
	max-height: 68vh;
	width: auto;
	border-radius: 14px;
	border: 1px solid var(--mtf-border2);
	object-fit: contain;
	box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.mtf-dp-fw-wrap .mtf-dp-spinner {
	position: relative;
	z-index: 1;
	width: 48px; height: 48px;
	border: 3px solid rgba(201,160,74,0.15);
	border-top-color: var(--mtf-gold);
	border-radius: 50%;
	animation: mtf-dp-spin 0.8s linear infinite;
}

.mtf-dp-fw-wrap .mtf-dp-error {
	position: relative;
	z-index: 1;
	background: rgba(160,40,40,0.15);
	border: 1px solid rgba(200,60,60,0.4);
	color: #ffb3b3;
	border-radius: 12px;
	padding: 14px 18px;
	font-size: 0.88rem;
	width: 100%;
	line-height: 1.5;
}

/* ── Unlock panel ── */
.mtf-dp-fw-wrap .mtf-dp-unlock {
	background: linear-gradient(135deg, var(--mtf-card) 0%, #0d1a2d 100%);
	border: 1px solid rgba(201,160,74,0.25);
	border-radius: 20px;
	padding: 24px 28px;
	position: relative;
	overflow: hidden;
}

.mtf-dp-fw-wrap .mtf-dp-unlock::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--mtf-gold), transparent 70%);
}

.mtf-dp-fw-wrap .mtf-dp-unlock-heading {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.6rem;
	color: var(--mtf-text);
	margin: 0 0 8px;
	line-height: 1.1;
}

.mtf-dp-fw-wrap .mtf-dp-unlock-sub {
	font-size: 0.88rem;
	color: var(--mtf-muted);
	margin: 0 0 20px;
	line-height: 1.6;
}

.mtf-dp-fw-wrap .mtf-dp-divider {
	text-align: center;
	color: rgba(122,143,168,0.5);
	font-size: 0.78rem;
	margin: 18px 0 14px;
	position: relative;
}

.mtf-dp-fw-wrap .mtf-dp-divider::before,
.mtf-dp-fw-wrap .mtf-dp-divider::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 30%;
	height: 1px;
	background: var(--mtf-border);
}

.mtf-dp-fw-wrap .mtf-dp-divider::before { left: 0; }
.mtf-dp-fw-wrap .mtf-dp-divider::after  { right: 0; }

.mtf-dp-fw-wrap .mtf-dp-product-picker {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.mtf-dp-fw-wrap .mtf-dp-product-card {
	background: rgba(6,11,19,0.7);
	border: 1px solid var(--mtf-border);
	border-radius: 12px;
	padding: 14px;
	cursor: pointer;
	color: var(--mtf-text);
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-family: inherit;
	transition: border-color 0.15s, background 0.15s;
}

.mtf-dp-fw-wrap .mtf-dp-product-card:hover {
	border-color: var(--mtf-gold);
	background: rgba(201,160,74,0.05);
}

.mtf-dp-fw-wrap .mtf-dp-product-name { font-weight: 700; font-size: 0.88rem; }
.mtf-dp-fw-wrap .mtf-dp-product-price { color: var(--mtf-gold); font-size: 0.8rem; font-weight: 600; }

/* ── File preview thumb ── */
.mtf-dp-fw-wrap .mtf-dp-file-preview {
	display: none;
	max-width: 180px;
	max-height: 180px;
	margin: 14px auto 0;
	border-radius: 10px;
	border: 1px solid var(--mtf-border);
	box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.mtf-dp-fw-wrap .mtf-dp-file-preview.mtf-dp-show { display: block; }

/* ══════════════════════════════════════════
   TRUST STRIP
══════════════════════════════════════════ */
.mtf-dp-trust-section {
	padding: 56px 0;
	background: var(--mtf-bg2);
}

.mtf-dp-trust-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

@media (max-width: 900px) { .mtf-dp-trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .mtf-dp-trust-grid { grid-template-columns: 1fr; } }

.mtf-dp-trust-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	padding: 24px 22px;
	background: var(--mtf-card);
	border: 1px solid var(--mtf-border);
	border-radius: 18px;
	gap: 8px;
	transition: border-color 0.2s, transform 0.2s;
}

.mtf-dp-trust-item:hover {
	border-color: rgba(201,160,74,0.3);
	transform: translateY(-3px);
}

.mtf-dp-trust-icon {
	font-size: 1.6rem;
	line-height: 1;
	margin-bottom: 2px;
}

.mtf-dp-trust-title {
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--mtf-text);
	line-height: 1.3;
}

.mtf-dp-trust-desc {
	font-size: 0.76rem;
	color: var(--mtf-muted);
	line-height: 1.55;
}

/* ══════════════════════════════════════════
   PRODUCT SIZE / CONFIRM DRAWER
══════════════════════════════════════════ */
.mtf-dp-drawer-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(3,6,12,0.85);
	z-index: 99999;
	align-items: flex-end;
	justify-content: center;
	backdrop-filter: blur(4px);
}

.mtf-dp-drawer-overlay.mtf-dp-drawer-open {
	display: flex;
}

.mtf-dp-drawer {
	background: #0d1520;
	border: 1px solid #2a3f60;
	border-bottom: none;
	border-radius: 24px 24px 0 0;
	padding: 32px 32px 40px;
	width: 100%;
	max-width: 520px;
	position: relative;
	animation: mtf-drawer-up 0.3s cubic-bezier(0.32,0.72,0,1);
	color: #e8eff6;
	font-family: "Inter", system-ui, sans-serif;
}

@keyframes mtf-drawer-up {
	from { transform: translateY(100%); }
	to   { transform: translateY(0); }
}

.mtf-dp-drawer-close {
	position: absolute;
	top: 16px;
	right: 20px;
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 50%;
	width: 32px;
	height: 32px;
	font-size: 1.2rem;
	line-height: 1;
	color: #a0aab5;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.15s;
}

.mtf-dp-drawer-close:hover { background: rgba(255,255,255,0.12); color: #fff; }

.mtf-dp-drawer-eyebrow {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #c9a04a;
	margin: 0 0 8px;
}

.mtf-dp-drawer-title {
	font-family: "Italiana","Cormorant Garamond",Georgia,serif;
	font-size: 1.7rem;
	font-weight: 400;
	color: #fff;
	margin: 0 0 20px;
	line-height: 1.1;
}

.mtf-dp-drawer-preview-wrap {
	width: 100%;
	height: 160px;
	border-radius: 14px;
	overflow: hidden;
	background: #060c16;
	border: 1px solid #1f2f4d;
	margin-bottom: 20px;
}

.mtf-dp-drawer-preview {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mtf-dp-drawer-label {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #e8eff6;
	margin: 0 0 12px;
}

.mtf-dp-drawer-sizes {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.mtf-dp-size-btn {
	min-width: 52px;
	padding: 10px 14px;
	background: #060c16;
	border: 2px solid #1f2f4d;
	border-radius: 10px;
	color: #a0aab5;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.mtf-dp-size-btn:hover {
	border-color: rgba(201,160,74,0.5);
	color: #e8eff6;
}

.mtf-dp-size-btn.active {
	border-color: #c9a04a;
	background: rgba(201,160,74,0.08);
	color: #c9a04a;
}

.mtf-dp-drawer-price-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 14px 0;
	border-top: 1px solid #1f2f4d;
	border-bottom: 1px solid #1f2f4d;
	margin-bottom: 20px;
}

.mtf-dp-drawer-price-label {
	font-size: 0.85rem;
	color: #7a8fa8;
}

.mtf-dp-drawer-price {
	font-size: 1.4rem;
	font-weight: 700;
	color: #c9a04a;
}

.mtf-dp-drawer-note {
	text-align: center;
	font-size: 0.75rem;
	color: #4a5f7a;
	margin: 12px 0 0;
	line-height: 1.5;
}

/* On desktop, show as centered modal */
@media (min-width: 600px) {
	.mtf-dp-drawer-overlay {
		align-items: center;
	}
	.mtf-dp-drawer {
		border-radius: 24px;
		border-bottom: 1px solid #2a3f60;
		margin-bottom: 60px;
		animation: mtf-drawer-fade 0.25s ease;
	}
	@keyframes mtf-drawer-fade {
		from { opacity: 0; transform: scale(0.95) translateY(12px); }
		to   { opacity: 1; transform: scale(1) translateY(0); }
	}
}

/* ── Drawer two-col layout (portrait preview + product info) ── */
.mtf-dp-drawer-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 16px;
}

.mtf-dp-drawer-preview-wrap {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	background: #060c16;
	border: 1px solid #1f2f4d;
	aspect-ratio: 1;
}

.mtf-dp-drawer-preview {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mtf-dp-drawer-preview-label {
	position: absolute;
	bottom: 8px;
	left: 8px;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	background: rgba(5,9,15,0.85);
	color: #7a8fa8;
	border: 1px solid #1f2f4d;
	padding: 3px 8px;
	border-radius: 4px;
}

.mtf-dp-drawer-product-wrap {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mtf-dp-drawer-product-imgs {
	display: flex;
	gap: 4px;
	border-radius: 12px;
	overflow: hidden;
	background: #060c16;
	border: 1px solid #1f2f4d;
	aspect-ratio: 1;
}

.mtf-dp-drawer-prod-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	flex-shrink: 0;
}

.mtf-dp-drawer-product-brand {
	font-size: 0.78rem;
	font-weight: 700;
	color: #c9a04a;
	margin: 0;
}

.mtf-dp-drawer-product-desc {
	font-size: 0.73rem;
	color: #5a6f88;
	margin: 0;
	line-height: 1.5;
	max-height: 80px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #1f2f4d transparent;
}

.mtf-dp-drawer-product-desc::-webkit-scrollbar {
	width: 4px;
}
.mtf-dp-drawer-product-desc::-webkit-scrollbar-thumb {
	background: #1f2f4d;
	border-radius: 2px;
}

/* ── Diagnostic example cards ───────────────────── */
.mtf-dp-diag-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px;
	background: #0d1824;
	border: 1px solid #1f2f4d;
	border-radius: 10px;
}
.mtf-dp-diag-card-head {
	margin-bottom: 2px;
}
.mtf-dp-pill-high   { background: #b03030; color: #fff; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; display: inline-block; }
.mtf-dp-pill-medium { background: #c9a04a; color: #0a1019; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; display: inline-block; }
.mtf-dp-pill-low    { background: #3a7d44; color: #fff; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; display: inline-block; }
.mtf-dp-diag-symptoms {
	font-size: 0.83rem;
	color: #8a9bb0;
	margin: 0;
	line-height: 1.5;
}
.mtf-dp-diag-diagnosis {
	font-size: 0.93rem;
	font-weight: 600;
	color: #e8d89a;
	margin: 0;
	line-height: 1.4;
}
.mtf-dp-diag-preview {
	font-size: 0.82rem;
	color: #6a7f96;
	margin: 0;
	line-height: 1.55;
	border-top: 1px solid #1a2a3a;
	padding-top: 10px;
}

/* ── Stocking example cards ──────────────────────── */
.mtf-dp-stock-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px;
	background: #0d1824;
	border: 1px solid #1f2f4d;
	border-radius: 10px;
}
.mtf-dp-stock-card-title {
	font-size: 1rem;
	font-weight: 700;
	color: #c9a04a;
	margin: 0;
}
.mtf-dp-stock-card-params {
	font-size: 0.78rem;
	color: #6a7f96;
	margin: 0;
	letter-spacing: 0.02em;
}
.mtf-dp-stock-card-species {
	margin: 4px 0 0;
	padding-left: 18px;
	list-style: disc;
}
.mtf-dp-stock-card-species li {
	font-size: 0.85rem;
	color: #c8d8e8;
	margin-bottom: 3px;
	line-height: 1.4;
}

/* ── Account notice ─────────────────────────────── */
.mtf-dp-account-notice {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	background: #f4f1e7;
	border-left: 4px solid #c9a04a;
	border-radius: 6px;
	padding: 16px 20px;
	margin: 28px 0 0;
	font-size: 0.88rem;
	color: #2a3340;
	line-height: 1.6;
}
.mtf-dp-account-notice-icon {
	font-size: 1.4rem;
	flex-shrink: 0;
	margin-top: 1px;
}
.mtf-dp-account-notice strong {
	display: block;
	font-size: 0.92rem;
	color: #0a1019;
	margin-bottom: 4px;
}
.mtf-dp-account-notice a {
	color: #1f2f4d;
	font-weight: 600;
	text-decoration: underline;
}
.mtf-dp-account-notice a:hover {
	color: #c9a04a;
}
