/* Dreamfox Delivery Date & Timeslot -- settings screen (nav-tab-wrapper
   layout, matches the pattern used by the Payment Gateway per Product and
   Shipping Methods per Product Dreamfox plugins). */

.dreamfox-wdd-settings {
	margin: 10px 0 0 0;
}

.dreamfox-wdd-tab-panel {
	background: #fff;
	border: 1px solid #ccc;
	border-top: none;
	padding: 20px;
	margin-top: -1px;
}

.dreamfox-wdd-tab-panel h2.title {
	border-bottom: 1px solid #ccc;
	padding: 15px 0;
	margin: 0 0 20px;
}

/* ── Information tab ─────────────────────────────────────────────── */

.dreamfox-wdd-info-tab {
	margin-top: 4px;
}

.dreamfox-wdd-info-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
	gap: 24px;
	align-items: start;
}

@media ( max-width: 960px ) {
	.dreamfox-wdd-info-grid {
		grid-template-columns: 1fr;
	}
}

.dreamfox-wdd-info-main h2,
.dreamfox-wdd-info-main h3 {
	margin-top: 1.2em;
}

.dreamfox-wdd-info-main h2:first-child {
	margin-top: 0;
}

.dreamfox-wdd-info-hero {
	width: 50%;
	max-width: 100%;
	height: auto;
	float: right;
	margin: 0 0 20px 20px;
	border-radius: 4px;
}

.dreamfox-wdd-info-list li {
	margin: 0 0 8px 20px;
	list-style: disc;
}

@media ( max-width: 600px ) {
	.dreamfox-wdd-info-hero {
		width: 100%;
		float: none;
		margin: 12px 0 20px;
	}
}

.dreamfox-wdd-screenshots {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax(150px, 1fr) );
	gap: 12px;
	clear: both;
}

.dreamfox-wdd-screenshot-thumb {
	display: block;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	overflow: hidden;
	line-height: 0;
}

.dreamfox-wdd-screenshot-thumb img {
	width: 100%;
	height: 110px;
	object-fit: cover;
	object-position: top;
	display: block;
	transition: transform 0.15s ease-in-out;
}

.dreamfox-wdd-screenshot-thumb:hover img {
	transform: scale(1.05);
}

.dreamfox-wdd-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0, 0, 0, 0.85);
	align-items: center;
	justify-content: center;
	padding: 40px;
	cursor: zoom-out;
}

.dreamfox-wdd-lightbox:target {
	display: flex;
}

.dreamfox-wdd-lightbox img {
	max-width: 100%;
	max-height: 100%;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.dreamfox-wdd-info-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 16px;
	margin-bottom: 16px;
}

.dreamfox-wdd-info-card h3 {
	margin-top: 0;
}

.dreamfox-wdd-info-card--muted {
	background: #f6f7f7;
}

.dreamfox-wdd-info-links li,
.dreamfox-wdd-info-steps li {
	margin-bottom: 6px;
}

.dreamfox-wdd-info-plugin-list li {
	margin-bottom: 10px;
}

.dreamfox-wdd-info-plugin-list span {
	display: block;
	color: #646970;
	font-size: 12px;
}

.dreamfox-wdd-badge {
	display: inline-block;
	background: #7f54b3;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 3px 10px;
	border-radius: 3px;
	margin: 0 0 14px;
}

/* ── Forms / settings tables ─────────────────────────────────────── */

.dreamfox-wdd-tab-panel .form-table th {
	width: 280px;
}

.dreamfox-wdd-tab-panel input[type="number"] {
	width: 8em;
}

.dreamfox-wdd-matrix-table th,
.dreamfox-wdd-matrix-table td {
	vertical-align: middle;
}

.dreamfox-wdd-matrix-table input[type="number"] {
	width: 6em;
}

.dreamfox-wdd-matrix-table input[type="date"] {
	width: 11em;
}

.dreamfox-wdd-preview {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 10px 12px;
	font-family: Consolas, Monaco, monospace;
	font-size: 12px;
	max-width: 640px;
}

/* ── Products tab (search-as-you-type picker + repeatable rows) ───── */

.dreamfox-wdd-picker {
	position: relative;
	max-width: 420px;
	margin-bottom: 16px;
}

.dreamfox-wdd-picker input[type="text"] {
	width: 100%;
}

.dreamfox-wdd-picker__results {
	position: absolute;
	z-index: 10;
	left: 0;
	right: 0;
	margin: 2px 0 0;
	padding: 0;
	list-style: none;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	max-height: 240px;
	overflow-y: auto;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.dreamfox-wdd-picker__results li {
	padding: 6px 10px;
	cursor: pointer;
	margin: 0;
}

.dreamfox-wdd-picker__results li:hover {
	background: #f0f0f1;
}

.dreamfox-wdd-picker__status {
	font-size: 12px;
	color: #646970;
	margin-top: 4px;
}

.dreamfox-wdd-rows {
	max-width: 640px;
}

.dreamfox-wdd-rows__row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f1;
}

.dreamfox-wdd-rows__name {
	flex: 1;
}

.dreamfox-wdd-rows__row input[type="number"] {
	width: 7em;
}

#wpfooter {
	position: static;
}
