/**
 * WP Hotel Booking - Modern Admin Settings Stylesheet
 */
.wphb-settings-wrap {
	--wphb-primary: #2271b1;
	--wphb-primary-hover: #135e96;
	--wphb-primary-soft: rgba(34, 113, 177, 0.08);
	--wphb-primary-ring: rgba(34, 113, 177, 0.2);
	--wphb-success: #10b981;
	--wphb-success-soft: #ecfdf5;
	--wphb-warning: #f59e0b;
	--wphb-warning-soft: #fffbeb;
	--wphb-danger: #ef4444;
	--wphb-surface: #ffffff;
	--wphb-bg-subtle: #f8fafc;
	--wphb-border: #e2e8f0;
	--wphb-border-strong: #cbd5e1;
	--wphb-text-main: #0f172a;
	--wphb-text-secondary: #334155;
	--wphb-text-muted: #64748b;
	--wphb-radius-lg: 12px;
	--wphb-radius-md: 8px;
	--wphb-radius-sm: 6px;
	--wphb-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
	--wphb-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);

	margin: 20px 20px 40px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: var(--wphb-text-main);
}

/* ==========================================================================
   1. Sticky Top Command Bar
   ========================================================================== */
.wphb-settings-sticky-bar {
	position: sticky;
	top: 32px;
	z-index: 990;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 24px;
	margin-bottom: 24px;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid var(--wphb-border);
	border-radius: var(--wphb-radius-lg);
	box-shadow: var(--wphb-shadow-md);
}

.wphb-settings-sticky-bar__left {
	display: flex;
	align-items: center;
	min-width: 0;
}

.wphb-settings-brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

.wphb-settings-brand__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	font-size: 20px;
	background: var(--wphb-primary-soft);
	color: var(--wphb-primary);
	border-radius: var(--wphb-radius-md);
	flex-shrink: 0;
}

.wphb-settings-brand__text {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 15px;
	line-height: 1.4;
}

.wphb-settings-brand__name {
	font-weight: 700;
	color: var(--wphb-text-main);
	letter-spacing: -0.01em;
}

.wphb-settings-brand__sep {
	color: var(--wphb-border-strong);
	font-weight: 400;
}

.wphb-settings-brand__current {
	font-weight: 600;
	color: var(--wphb-primary);
	background: var(--wphb-primary-soft);
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 13px;
}

.wphb-settings-sticky-bar__right {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

/* Quick Search Box */
.wphb-settings-search {
	position: relative;
	display: flex;
	align-items: center;
	width: 270px;
}

.wphb-settings-search__icon {
	position: absolute;
	left: 10px;
	color: var(--wphb-text-muted);
	font-size: 16px;
	width: 16px;
	height: 16px;
	pointer-events: none;
}

.wphb-settings-wrap input.wphb-settings-search__input {
	width: 100% !important;
	height: 38px;
	padding: 0 32px 0 34px;
	font-size: 13px;
	color: var(--wphb-text-main);
	background: var(--wphb-bg-subtle);
	border: 1px solid var(--wphb-border);
	border-radius: var(--wphb-radius-md);
	box-shadow: none;
	transition: all 0.15s ease;
}

.wphb-settings-wrap input.wphb-settings-search__input:focus {
	background: var(--wphb-surface);
	border-color: var(--wphb-primary);
	box-shadow: 0 0 0 3px var(--wphb-primary-ring);
	outline: none;
}

.wphb-settings-search__clear {
	position: absolute;
	right: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: none;
	background: transparent;
	color: var(--wphb-text-muted);
	cursor: pointer;
	border-radius: 4px;
}

.wphb-settings-search__clear:hover {
	background: var(--wphb-border);
	color: var(--wphb-text-main);
}

.wphb-settings-search__clear[hidden] {
	display: none !important;
}

/* Unsaved Changes Badge */
.wphb-unsaved-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 600;
	color: #b45309;
	background: var(--wphb-warning-soft);
	border: 1px solid #fde68a;
	border-radius: 999px;
	white-space: nowrap;
}

.wphb-unsaved-badge[hidden] {
	display: none !important;
}

.wphb-unsaved-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--wphb-warning);
	animation: wphb-pulse 1.5s infinite;
}

@keyframes wphb-pulse {
	0%, 100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.45;
		transform: scale(0.85);
	}
}

/* Save Settings Button */
.wphb-settings-wrap .button.button-primary.wphb-btn-save {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 38px;
	padding: 0 18px;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1;
	background: var(--wphb-primary);
	border-color: var(--wphb-primary);
	border-radius: var(--wphb-radius-md);
	color: #fff;
	box-shadow: 0 1px 2px rgba(34, 113, 177, 0.25);
	transition: all 0.15s ease;
}

.wphb-settings-wrap .button.button-primary.wphb-btn-save:hover,
.wphb-settings-wrap .button.button-primary.wphb-btn-save:focus {
	background: var(--wphb-primary-hover);
	border-color: var(--wphb-primary-hover);
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(34, 113, 177, 0.25);
}

.wphb-settings-wrap .button.button-primary.wphb-btn-save.is-dirty {
	box-shadow: 0 0 0 3px var(--wphb-primary-ring);
}

.wphb-settings-wrap .button.button-primary.wphb-btn-save.is-saved {
	background: var(--wphb-success);
	border-color: var(--wphb-success);
}

.wphb-btn-save__icon {
	font-size: 17px;
	width: 17px;
	height: 17px;
	line-height: 1;
}

.wphb-btn-save__spinner {
	display: none;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: wphb-spin 0.65s linear infinite;
}

.wphb-btn-save.is-saving .wphb-btn-save__icon {
	display: none;
}

.wphb-btn-save.is-saving .wphb-btn-save__spinner {
	display: inline-block;
}

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

/* ==========================================================================
   2. Main 2-Column Workspace (Sidebar + Canvas)
   ========================================================================== */
.wphb-settings-workspace {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

/* Left Vertical Sidebar Navigation */
.wphb-settings-sidebar {
	position: sticky;
	top: 112px;
	background: var(--wphb-surface);
	border: 1px solid var(--wphb-border);
	border-radius: var(--wphb-radius-lg);
	padding: 10px;
	box-shadow: var(--wphb-shadow-sm);
}

.wphb-settings-sidebar .nav-tab-wrapper.wphb-nav-tabs {
	display: flex;
	flex-direction: column;
	gap: 4px;
	border-bottom: none;
	padding: 0;
	margin: 0;
}

.wphb-settings-sidebar .nav-tab.wphb-nav-tab {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	float: none;
	margin: 0;
	padding: 10px 14px;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--wphb-text-secondary);
	background: transparent;
	border: 1px solid transparent;
	border-radius: var(--wphb-radius-md);
	text-decoration: none;
	transition: all 0.15s ease;
}

.wphb-settings-sidebar .nav-tab.wphb-nav-tab:hover {
	background: var(--wphb-bg-subtle);
	color: var(--wphb-text-main);
}

.wphb-settings-sidebar .nav-tab.wphb-nav-tab:focus {
	box-shadow: none;
	outline: none;
}

.wphb-settings-sidebar .nav-tab.wphb-nav-tab.is-active,
.wphb-settings-sidebar .nav-tab.wphb-nav-tab.nav-tab-active {
	background: var(--wphb-primary-soft);
	color: var(--wphb-primary);
	font-weight: 600;
	border-color: rgba(34, 113, 177, 0.15);
}

.wphb-settings-sidebar .nav-tab.wphb-nav-tab.is-active::before {
	content: "";
	position: absolute;
	left: -10px;
	top: 8px;
	bottom: 8px;
	width: 4px;
	background: var(--wphb-primary);
	border-radius: 0 4px 4px 0;
}

.wphb-nav-tab__icon {
	font-size: 18px;
	width: 18px;
	height: 18px;
	color: var(--wphb-text-muted);
	transition: color 0.15s ease;
}

.wphb-nav-tab.is-active .wphb-nav-tab__icon {
	color: var(--wphb-primary);
}

.wphb-nav-tab__label {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wphb-nav-tab__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	background: var(--wphb-primary);
	border-radius: 999px;
}

.wphb-nav-tab__badge[hidden] {
	display: none !important;
}

/* ==========================================================================
   3. Tab Panels & Sub-Section Pill Navigation
   ========================================================================== */
.wphb-settings-canvas {
	min-width: 0;
	width: 100%;
}

.wphb-settings-tab-panel {
	display: none;
	width: 100%;
	animation: wphb-fade-in 0.16s ease-out;
}

.wphb-settings-tab-panel.is-active {
	display: block;
}

.wphb-settings-section-panel {
	display: none;
	width: 100%;
	animation: wphb-fade-in 0.16s ease-out;
}

.wphb-settings-section-panel.is-active {
	display: block;
}

/* During search filter, show all sub-section panels inside the active tab that have matches */
.wphb-settings-form.is-searching .wphb-settings-tab-panel.is-active .wphb-settings-section-panel {
	display: block;
}

.wphb-settings-form.is-searching .wphb-sub-tabs-wrap {
	display: none;
}

@keyframes wphb-fade-in {
	from {
		opacity: 0;
		transform: translateY(3px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Segmented Pill Sub-Tabs (Emails, Checkout) */
.wphb-sub-tabs-wrap {
	margin-bottom: 16px;
}

.wphb-settings-wrap ul.hb-admin-sub-tab.wphb-sub-tabs {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	width: auto;
	margin: 0;
	padding: 6px;
	background: var(--wphb-surface);
	border: 1px solid var(--wphb-border);
	border-radius: var(--wphb-radius-lg);
	box-shadow: var(--wphb-shadow-sm);
	list-style: none;
	float: none;
}

.wphb-settings-wrap ul.hb-admin-sub-tab.wphb-sub-tabs li.wphb-sub-tab-item {
	margin: 0;
	padding: 0;
}

.wphb-settings-wrap ul.hb-admin-sub-tab.wphb-sub-tabs a.wphb-sub-tab-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 18px !important;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--wphb-text-secondary);
	text-decoration: none;
	border-radius: var(--wphb-radius-md) !important;
	transition: all 0.15s ease;
	box-shadow: none;
}

.wphb-settings-wrap ul.hb-admin-sub-tab.wphb-sub-tabs a.wphb-sub-tab-link:hover {
	color: var(--wphb-text-main);
	background: var(--wphb-bg-subtle);
}

.wphb-settings-wrap ul.hb-admin-sub-tab.wphb-sub-tabs a.wphb-sub-tab-link.is-active,
.wphb-settings-wrap ul.hb-admin-sub-tab.wphb-sub-tabs a.wphb-sub-tab-link.current {
	color: #ffffff !important;
	background: var(--wphb-primary) !important;
	font-weight: 600;
	padding: 8px 18px !important;
	border-radius: var(--wphb-radius-md) !important;
	box-shadow: 0 1px 3px rgba(34, 113, 177, 0.25);
}

/* Gateway Live Status Dot on Sub-tab */
.wphb-gateway-status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}

.wphb-gateway-status-dot.is-enabled {
	background: var(--wphb-success);
	box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.wphb-sub-tab-link.is-active .wphb-gateway-status-dot.is-enabled {
	background: #34d399;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.wphb-gateway-status-dot.is-disabled {
	background: #94a3b8;
}

.wphb-sub-tab-link.is-active .wphb-gateway-status-dot.is-disabled {
	background: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   4. Section Cards & Form Table Rows
   ========================================================================== */
.wphb-settings-card {
	background: var(--wphb-surface);
	border: 1px solid var(--wphb-border);
	border-radius: var(--wphb-radius-lg);
	box-shadow: var(--wphb-shadow-sm);
	margin-bottom: 24px;
	overflow: hidden;
}

.wphb-settings-card.is-search-hidden {
	display: none !important;
}

.wphb-settings-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
	background: linear-gradient(to bottom, #ffffff, #fcfdfe);
	border-bottom: 1px solid var(--wphb-border);
}

.wphb-settings-card__title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--wphb-text-main);
	line-height: 1.35;
}

.wphb-settings-card__desc {
	margin: 4px 0 0 !important;
	font-size: 13px !important;
	color: var(--wphb-text-muted) !important;
	font-style: normal !important;
}

.wphb-gateway-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 999px;
}

.wphb-gateway-badge.is-enabled {
	color: #047857;
	background: var(--wphb-success-soft);
	border: 1px solid #a7f3d0;
}

.wphb-gateway-badge.is-disabled {
	color: var(--wphb-text-muted);
	background: var(--wphb-bg-subtle);
	border: 1px solid var(--wphb-border);
}

.wphb-settings-card__body {
	padding: 6px 24px;
}

.wphb-settings-wrap .form-table.wphb-settings-table {
	width: 100%;
	table-layout: fixed;
	margin: 0;
	border-collapse: collapse;
}

.wphb-settings-wrap .form-table.wphb-settings-table tr {
	border-bottom: 1px solid #f1f5f9;
	transition: background-color 0.12s ease;
}

.wphb-settings-wrap .form-table.wphb-settings-table tr:last-child {
	border-bottom: none;
}

.wphb-settings-wrap .form-table.wphb-settings-table tr.is-search-hidden {
	display: none !important;
}

.wphb-settings-wrap .form-table.wphb-settings-table tr.is-search-match {
	background-color: #f0f9ff;
}

.wphb-settings-wrap .form-table.wphb-settings-table th {
	width: 260px;
	padding: 18px 20px 18px 0;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--wphb-text-main);
	vertical-align: top;
	line-height: 1.45;
}

.wphb-settings-wrap .form-table.wphb-settings-table th label {
	color: inherit;
	font-weight: inherit;
	cursor: pointer;
}

.wphb-settings-wrap .form-table.wphb-settings-table td {
	padding: 16px 0;
	vertical-align: top;
}

.wphb-settings-wrap .form-table.wphb-settings-table p.description,
.wphb-settings-wrap .form-table.wphb-settings-table span.description {
	display: block;
	margin-top: 6px;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--wphb-text-muted);
	font-style: normal;
}

/* ==========================================================================
   5. Modernized Form Controls (Preserving Native Inputs)
   ========================================================================== */
.wphb-settings-wrap .form-table input[type="text"],
.wphb-settings-wrap .form-table input[type="email"],
.wphb-settings-wrap .form-table input[type="password"],
.wphb-settings-wrap .form-table input[type="number"],
.wphb-settings-wrap .form-table select {
	min-height: 38px;
	padding: 6px 12px;
	font-size: 13.5px;
	color: var(--wphb-text-main);
	background-color: var(--wphb-surface);
	border: 1px solid var(--wphb-border-strong);
	border-radius: var(--wphb-radius-sm);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wphb-settings-wrap .form-table input[type="text"],
.wphb-settings-wrap .form-table input[type="email"],
.wphb-settings-wrap .form-table input[type="password"],
.wphb-settings-wrap .form-table select {
	width: 100%;
	max-width: 380px;
}

.wphb-settings-wrap .form-table input[type="number"] {
	width: 130px;
}

.wphb-settings-wrap .form-table input:focus,
.wphb-settings-wrap .form-table select:focus {
	border-color: var(--wphb-primary);
	box-shadow: 0 0 0 3px var(--wphb-primary-ring);
	outline: none;
}

/* Toggle Switch for Checkboxes */
.wphb-toggle-switch {
	position: relative;
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	user-select: none;
	margin: 2px 0;
}

.wphb-toggle-switch input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

.wphb-toggle-slider {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	background-color: #cbd5e1;
	border-radius: 999px;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.wphb-toggle-slider::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	background-color: #ffffff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
	transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.wphb-toggle-switch input[type="checkbox"]:checked + .wphb-toggle-slider {
	background-color: var(--wphb-primary);
}

.wphb-toggle-switch input[type="checkbox"]:checked + .wphb-toggle-slider::after {
	transform: translateX(20px);
}

.wphb-toggle-switch input[type="checkbox"]:focus-visible + .wphb-toggle-slider {
	box-shadow: 0 0 0 3px var(--wphb-primary-ring);
}

/* Image Size Input Group (W x H px) */
.wphb-image-size-group {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.wphb-size-input-box {
	display: inline-flex;
	align-items: center;
	background: var(--wphb-bg-subtle);
	border: 1px solid var(--wphb-border-strong);
	border-radius: var(--wphb-radius-sm);
	overflow: hidden;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wphb-size-input-box:focus-within {
	border-color: var(--wphb-primary);
	box-shadow: 0 0 0 3px var(--wphb-primary-ring);
	background: var(--wphb-surface);
}

.wphb-size-label {
	padding: 0 10px;
	font-size: 11px;
	font-weight: 700;
	color: var(--wphb-text-muted);
	background: #f1f5f9;
	border-right: 1px solid var(--wphb-border);
	line-height: 36px;
}

.wphb-settings-wrap .wphb-size-input-box input[type="number"] {
	width: 85px !important;
	min-height: 36px;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	padding: 4px 8px;
}

.wphb-size-separator {
	font-size: 15px;
	font-weight: 600;
	color: var(--wphb-text-muted);
}

.wphb-size-unit {
	font-size: 13px;
	font-weight: 600;
	color: var(--wphb-text-muted);
	padding: 4px 8px;
	background: var(--wphb-bg-subtle);
	border-radius: 4px;
}

/* Select Page Control (Pages Tab) */
.wphb-select-page-control .list-pages-wrapper {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.wphb-select-page-control .select2-container {
	min-width: 260px !important;
}

.wphb-select-page-control .select2-container .select2-selection--single {
	height: 38px;
	border: 1px solid var(--wphb-border-strong);
	border-radius: var(--wphb-radius-sm);
	display: flex;
	align-items: center;
}

.wphb-select-page-control .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 36px;
	padding-left: 12px;
	color: var(--wphb-text-main);
}

.wphb-select-page-control .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 36px;
	right: 6px;
}

.wphb-or-divider {
	font-size: 12.5px;
	color: var(--wphb-text-muted);
}

.wphb-settings-wrap .button.button-quick-add-page {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 36px;
	padding: 0 12px;
	border-radius: var(--wphb-radius-sm);
	border-color: var(--wphb-border-strong);
	color: var(--wphb-text-secondary);
	background: var(--wphb-surface);
	font-weight: 500;
}

.wphb-settings-wrap .button.button-quick-add-page:hover {
	border-color: var(--wphb-primary);
	color: var(--wphb-primary);
	background: var(--wphb-primary-soft);
}

.wphb-settings-wrap .button.button-quick-add-page .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 1;
}

.wphb-select-page-control .quick-add-page-inline {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 8px 0 0;
}

.wphb-select-page-control .quick-add-page-inline.hide-if-js {
	display: none !important;
}

.wphb-select-page-control .quick-add-page-actions {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 8px 0 0;
	padding: 4px 10px;
	background: var(--wphb-bg-subtle);
	border: 1px solid var(--wphb-border);
	border-radius: var(--wphb-radius-sm);
}

.wphb-select-page-control .quick-add-page-actions.hide-if-js {
	display: none !important;
}

.wphb-page-action-link {
	display: inline-flex !important;
	align-items: center;
	gap: 4px;
	margin: 0 !important;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--wphb-primary);
	text-decoration: none;
}

.wphb-page-action-link:hover {
	color: var(--wphb-primary-hover);
	text-decoration: underline;
}

.wphb-page-action-link .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	line-height: 1;
}

.wphb-action-sep {
	color: var(--wphb-border-strong);
}

/* External OTA Links Table (Room Tab) */
.wphb-settings-wrap #wphb-external-link-table {
	border: 1px solid var(--wphb-border);
	border-radius: var(--wphb-radius-md);
	overflow: hidden;
	box-shadow: none;
}

.wphb-settings-wrap #wphb-external-link-table .header-row td {
	font-weight: 600;
	color: var(--wphb-text-secondary);
	background: var(--wphb-bg-subtle);
	border-bottom: 1px solid var(--wphb-border);
	padding: 10px 14px;
}

.wphb-settings-wrap #wphb-external-link-table td {
	padding: 12px 14px;
	vertical-align: middle;
}

.wphb-settings-wrap #wphb-external-link-table .wphb-select-icon {
	border-radius: var(--wphb-radius-sm);
	border: 1px dashed var(--wphb-border-strong);
	padding: 4px;
	cursor: pointer;
	background: #fff;
	transition: border-color 0.15s ease;
}

.wphb-settings-wrap #wphb-external-link-table .wphb-select-icon:hover {
	border-color: var(--wphb-primary);
}

/* ==========================================================================
   6. Search Status Banner, Footer & Toast Notification
   ========================================================================== */
.wphb-search-status-banner {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	margin-bottom: 16px;
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-radius: var(--wphb-radius-md);
	color: #0369a1;
	font-size: 13px;
	font-weight: 500;
}

.wphb-search-status-banner[hidden] {
	display: none !important;
}

.wphb-settings-footer {
	display: flex;
	justify-content: flex-end;
	padding: 16px 0 8px;
}

/* Floating Toast Notification */
.wphb-settings-toast {
	position: fixed;
	right: 28px;
	bottom: 28px;
	z-index: 99999;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 20px;
	background: #0f172a;
	color: #ffffff;
	font-size: 13.5px;
	font-weight: 500;
	border-radius: var(--wphb-radius-md);
	box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.wphb-settings-toast[hidden] {
	display: none !important;
}

.wphb-settings-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.wphb-settings-toast__icon {
	color: #34d399;
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.wphb-settings-toast.is-error {
	background: #991b1b;
}

.wphb-settings-toast.is-error .wphb-settings-toast__icon {
	color: #fca5a5;
}

/* ==========================================================================
   7. Responsive Breakpoints
   ========================================================================== */
@media screen and (max-width: 960px) {
	.wphb-settings-workspace {
		grid-template-columns: 1fr;
	}

	.wphb-settings-sidebar {
		position: static;
		padding: 8px;
	}

	.wphb-settings-sidebar .nav-tab-wrapper.wphb-nav-tabs {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.wphb-settings-sidebar .nav-tab.wphb-nav-tab.is-active::before {
		display: none;
	}
}

@media screen and (max-width: 782px) {
	.wphb-settings-sticky-bar {
		top: 0;
		flex-direction: column;
		align-items: stretch;
		padding: 12px 16px;
	}

	.wphb-settings-sticky-bar__right {
		justify-content: space-between;
	}

	.wphb-settings-search {
		width: 100%;
	}

	.wphb-settings-wrap .form-table.wphb-settings-table th {
		width: 100%;
		display: block;
		padding-bottom: 6px;
	}

	.wphb-settings-wrap .form-table.wphb-settings-table td {
		display: block;
		padding-top: 0;
	}
}

