.ohdtf-uploader { margin: 20px 0; font-family: inherit; width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important; box-sizing: border-box !important; }
.ohdtf-card-ui { background: var(--ohdtf-surface); color: var(--ohdtf-text); border-radius: 20px; padding: 24px; box-shadow: 0 10px 30px rgba(0,0,0,.08); border: 1px solid #f3f4f6; width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; }
.ohdtf-uploader__title { margin: 0 0 16px; font-size: 20px; font-weight: 800; color: var(--ohdtf-ink); text-align: center; }

@keyframes ohdtfCloudFloat {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-7px);
	}
}

@keyframes ohdtfPulseDashed {
	0%, 100% {
		border-color: #ed192d;
		box-shadow: 0 0 0 0 rgba(237, 25, 45, 0.25);
	}
	50% {
		border-color: #c8101f;
		box-shadow: 0 0 0 4px rgba(237, 25, 45, 0.12);
	}
}

.ohdtf-dropzone {
	position: relative;
	border: 2px dashed #cbd5e1;
	background: #f8fafc;
	border-radius: 16px;
	padding: 24px;
	text-align: center;
	cursor: pointer;
	transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.ohdtf-dropzone:hover {
	border-color: #ed192d;
	background-color: #fffafa;
	transform: translateY(-2px);
	box-shadow: 0 12px 28px -6px rgba(237, 25, 45, 0.14);
}
.ohdtf-dropzone.is-dragover {
	border-color: #ed192d;
	background: #ffe4e6;
	animation: ohdtfPulseDashed 1.5s infinite;
}
.ohdtf-dropzone__icon {
	color: #94a3b8;
	margin-bottom: 12px;
	transition: color .25s ease, transform .25s ease;
}
.ohdtf-dropzone:hover .ohdtf-dropzone__icon {
	color: #ed192d;
	animation: ohdtfCloudFloat 1.3s ease-in-out infinite;
}
.ohdtf-dropzone__text { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--ohdtf-text); }
.ohdtf-dropzone__formats { margin: 0; font-size: 11px; font-weight: 700; color: #94a3b8; letter-spacing: .5px; }
.ohdtf-preview { margin-top: 10px; }
.ohdtf-preview img { max-height: 120px; max-width: 100%; border-radius: 10px; border: 1px solid var(--ohdtf-border-strong); box-shadow: 0 4px 12px rgba(0,0,0,.1); cursor: pointer; }
.ohdtf-preview__name { margin: 6px 0 0; font-size: 12px; font-weight: 700; color: #059669; word-break: break-all; }
.ohdtf-preview__hint { font-size: 11px; color: var(--ohdtf-muted); }

.ohdtf-btn-choose { width: 100%; margin-top: 18px; background: linear-gradient(135deg, var(--ohdtf-danger) 0%, var(--ohdtf-brand-dark) 100%); color: #fff; font-size: 16px; font-weight: 800; padding: 14px 20px; border-radius: 9999px; border: 0; cursor: pointer; box-shadow: 0 6px 20px rgba(239,68,68,.35); transition: transform .15s ease, box-shadow .15s ease; }
.ohdtf-btn-choose:hover { transform: translateY(-1px); }

.ohdtf-dimensions { margin-top: 20px; border-top: 1px solid #f1f5f9; padding-top: 16px; }
.ohdtf-dimensions__row { display: flex; gap: 12px; margin-bottom: 12px; }
.ohdtf-dimensions__col { flex: 1; }
.ohdtf-dimensions__field { margin-bottom: 12px; }
.ohdtf-dimensions label, .ohdtf-dimensions__label { display: block; font-size: 12px; font-weight: 700; color: #475569; margin-bottom: 6px; }
.ohdtf-dimensions input[type="number"], .ohdtf-dimensions select { width: 100%; background: var(--ohdtf-surface-alt); color: var(--ohdtf-ink); border: 1px solid var(--ohdtf-border-strong); border-radius: var(--ohdtf-radius-sm); padding: 10px; font-size: 14px; font-weight: 600; }

/* Visually Hidden Helper */
.ohdtf-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Header-Matched Dropdown System */
.ohdtf-dropdown {
	position: relative;
	width: 100%;
	font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Dropdown Toggle Button (Matching site pill button & header search pills) */
.ohdtf-dropdown__toggle,
button.ohdtf-dropdown__toggle,
div.ohdtf-dropdown__toggle {
	width: 100% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 12px !important;
	padding: 13px 20px !important;
	background: #ffffff !important;
	border: 1px solid rgba(0, 0, 0, 0.14) !important;
	border-radius: 999px !important;
	color: #0b0d0f !important;
	font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	letter-spacing: -0.01em !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
	cursor: pointer !important;
	text-align: left !important;
	box-sizing: border-box !important;
	outline: none !important;
	user-select: none !important;
	transition: background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease !important;
}

.ohdtf-dropdown__toggle:hover,
button.ohdtf-dropdown__toggle:hover,
div.ohdtf-dropdown__toggle:hover,
.ohdtf-dropdown.is-open .ohdtf-dropdown__toggle,
.ohdtf-dropdown.is-open button.ohdtf-dropdown__toggle,
.ohdtf-dropdown.is-open div.ohdtf-dropdown__toggle,
.ohdtf-dropdown__toggle:focus,
.ohdtf-dropdown__toggle:focus-visible {
	background: rgba(237, 25, 45, 0.07) !important; /* Soft 7% opacity red tint — never solid red fill */
	border-color: #ed192d !important;
	color: #ed192d !important;
	box-shadow: 0 6px 18px rgba(237, 25, 45, 0.12) !important;
	transform: translateY(-1px) !important;
	outline: none !important;
}

.ohdtf-dropdown__toggle:active,
button.ohdtf-dropdown__toggle:active,
div.ohdtf-dropdown__toggle:active {
	background: rgba(237, 25, 45, 0.10) !important; /* 10% opacity on active press */
	border-color: #ed192d !important;
	color: #ed192d !important;
}

.ohdtf-dropdown__current {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ohdtf-dropdown__chevron {
	flex-shrink: 0;
	color: #ed192d;
	transition: transform .25s cubic-bezier(.2, .7, .2, 1);
}

.ohdtf-dropdown.is-open .ohdtf-dropdown__chevron {
	transform: rotate(180deg);
}

/* Floating Dropdown Menu Panel (Exact Header Sub-Menu Design) */
.ohdtf-dropdown__menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 999;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 22px;
	padding: 8px;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.08);
	box-sizing: border-box;
	max-height: 290px;
	overflow-y: auto;
	display: none;
	-webkit-overflow-scrolling: touch;
}

.ohdtf-dropdown.is-open .ohdtf-dropdown__menu {
	display: block;
	animation: ohdtfMenuFadeIn .2s cubic-bezier(.2, .7, .2, 1);
}

@keyframes ohdtfMenuFadeIn {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Scrollbar styling for dropdown menu */
.ohdtf-dropdown__menu::-webkit-scrollbar {
	width: 6px;
}
.ohdtf-dropdown__menu::-webkit-scrollbar-track {
	background: transparent;
	margin: 8px 0;
}
.ohdtf-dropdown__menu::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.15);
	border-radius: 6px;
}
.ohdtf-dropdown__menu::-webkit-scrollbar-thumb:hover {
	background: rgba(0, 0, 0, 0.25);
}

/* Dropdown Menu Item (Rounded rows matching header menu links) */
.ohdtf-dropdown__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border-radius: 14px;
	font: 600 14px/1.3 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: #0b0d0f;
	background: transparent;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, transform .15s ease;
	user-select: none;
}

.ohdtf-dropdown__item:hover,
.ohdtf-dropdown__item:focus-visible {
	background: rgba(237, 25, 45, 0.09);
	color: #ed192d;
	outline: none;
}

.ohdtf-dropdown__item.is-selected {
	background: #ed192d;
	color: #ffffff;
	font-weight: 700;
}

.ohdtf-dropdown__item.is-selected .ohdtf-dropdown__item-title {
	color: #ffffff;
}

.ohdtf-dropdown__item.is-selected .ohdtf-dropdown__item-price {
	color: rgba(255, 255, 255, 0.9);
	background: rgba(0, 0, 0, 0.15);
}

.ohdtf-dropdown__item-title {
	flex: 1;
	font-weight: inherit;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ohdtf-dropdown__item-price {
	font-size: 13px;
	font-weight: 700;
	color: #ed192d;
	padding: 3px 8px;
	border-radius: 8px;
	background: rgba(237, 25, 45, 0.08);
	white-space: nowrap;
	transition: background .2s ease, color .2s ease;
}

.ohdtf-dropdown__item:hover .ohdtf-dropdown__item-price {
	background: rgba(237, 25, 45, 0.16);
}

.ohdtf-dropdown__item--custom {
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	margin-top: 4px;
	padding-top: 12px;
}
.ohdtf-dropdown__item--custom .ohdtf-dropdown__item-price {
	color: #64748b;
	background: rgba(100, 116, 139, 0.1);
	font-size: 12px;
	font-weight: 600;
}
.ohdtf-dropdown__item--custom.is-selected .ohdtf-dropdown__item-price {
	color: rgba(255, 255, 255, 0.9);
	background: rgba(0, 0, 0, 0.15);
}

.ohdtf-rush-box { margin-top: 12px; padding: 12px; border-radius: 10px; background: var(--ohdtf-surface-alt); border: 1px solid var(--ohdtf-border); transition: background .2s ease, border-color .2s ease; }
.ohdtf-rush-box__label { display: flex !important; align-items: center; gap: 10px; cursor: pointer; font-size: 13px !important; font-weight: 700 !important; color: var(--ohdtf-ink) !important; margin: 0 !important; }
.ohdtf-rush-box__label input { accent-color: var(--ohdtf-danger); width: 18px; height: 18px; }
.ohdtf-rush-box.is-error { background: var(--ohdtf-brand-soft); border-color: #f87171; }
.ohdtf-rush-box.is-error .ohdtf-rush-box__label { opacity: .6; color: #991b1b !important; }
.ohdtf-rush-notice { font-size: 12px; font-weight: 700; margin-top: 6px; }
.ohdtf-rush-notice.is-error { background: var(--ohdtf-brand-soft); border: 1px solid #f87171; color: #991b1b; padding: 8px 12px; border-radius: var(--ohdtf-radius-sm); }
.ohdtf-rush-notice.is-info { color: #059669; }

/* Product page: rush availability notice (the checkbox is in the cart/checkout) */
.ohdtf-rush-available { margin-top: 12px; padding: 12px; border-radius: 10px; background: var(--ohdtf-ok-bg); border: 1px solid var(--ohdtf-slot-border); color: var(--ohdtf-ok-text); font-size: 13px; line-height: 1.45; }
.ohdtf-rush-available strong { display: block; font-weight: 800; color: var(--ohdtf-slot-strong); margin-bottom: 2px; }

/* Cart / checkout: order-level rush checkbox */
.ohdtf-rush-box--cart, .ohdtf-rush-box--checkout, .ohdtf-rush-box--block { margin: 0 0 16px; }
.ohdtf-rush-mount:empty { display: none; }
.ohdtf-rush-mount { max-width: 1200px; margin: 0 auto 16px; }
.ohdtf-rush-box__label input:disabled { cursor: not-allowed; }
.ohdtf-rush-box.is-error .ohdtf-rush-box__label { cursor: not-allowed; }

/* Artwork Quality Notice */
.ohdtf-artwork-warning { margin: 14px 0 8px; padding: 14px; border-radius: 12px; background: #fff1f2; border: 1.5px solid #f87171; }
.ohdtf-artwork-warning__title { font-weight: 800; font-size: 13px; color: #991b1b; display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.ohdtf-artwork-warning__list { margin: 0 0 10px 18px; padding: 0; font-size: 12px; color: #991b1b; line-height: 1.45; list-style: disc; }
.ohdtf-artwork-warning__ack { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 12px; font-weight: 700; color: #7f1d1d; margin-top: 8px; }
.ohdtf-artwork-warning__ack input { margin-top: 2px; accent-color: var(--ohdtf-danger, #ed192d); }
.ohdtf-dim-hint { display: block; font-size: 11px; font-weight: 600; color: #94a3b8; margin-top: 2px; }

/* Multi-Slot Artwork Tabs */
.ohdtf-artwork-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 14px;
	background: #f1f5f9;
	padding: 5px;
	border-radius: 999px;
}
.ohdtf-artwork-tab {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 9px 14px;
	border-radius: 999px;
	border: none;
	background: transparent;
	color: #64748b;
	font: 700 13px/1.2 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	cursor: pointer;
	transition: all .2s ease;
}
.ohdtf-artwork-tab:hover {
	color: #0f172a;
}
.ohdtf-artwork-tab.is-active {
	background: #ffffff;
	color: #ed192d;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.ohdtf-artwork-tab__icon {
	display: flex;
	align-items: center;
}
.ohdtf-artwork-tab__badge {
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(100, 116, 139, 0.15);
	color: #64748b;
	line-height: 1.2;
	transition: background .2s ease, color .2s ease;
}
.ohdtf-artwork-tab.is-active .ohdtf-artwork-tab__badge {
	background: rgba(237, 25, 45, 0.1);
	color: #ed192d;
}
.ohdtf-artwork-tab.is-uploaded .ohdtf-artwork-tab__badge {
	background: #10b981;
	color: #ffffff;
}
.ohdtf-artwork-tab.is-uploaded {
	color: #065f46;
}
.ohdtf-slot-panel {
	display: block;
}
