/* WooLab Options admin page styling.
   Brand: navy #2B3990 (headings, active tab, focus) / pink #E00F7A (accents,
   primary button, focus ring) — matches the CodelabIT palette used
   front-end (see ron-base.css :root), so the settings screen doesn't look
   like an unrelated generic WordPress admin page bolted on the side. */

.ron-options-wrap {
	max-width: 1040px;
}

.ron-options-wrap h1 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	color: #1d2140;
	margin-bottom: 4px;
}

.ron-options-wrap > .description {
	color: #666;
	font-size: 14px;
	margin: 0 0 20px;
}

/* Tabs — a rounded pill/segment bar instead of WordPress's default boxy
   underline nav-tab look, so it reads as a self-contained "app" screen. */
.ron-options-wrap .ron-options-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 0;
	padding: 6px;
	background: #f3f2f6;
	border: 1px solid #e4e2ec;
	border-radius: 12px;
}

.ron-options-wrap .nav-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 9px 16px;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: #4a4a68;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ron-options-wrap .nav-tab:hover,
.ron-options-wrap .nav-tab:focus {
	background: #fff;
	color: #2B3990;
	box-shadow: 0 1px 3px rgba(20, 20, 43, 0.08);
}

.ron-options-wrap .nav-tab-active,
.ron-options-wrap .nav-tab-active:hover,
.ron-options-wrap .nav-tab-active:focus {
	background: #2B3990;
	color: #fff;
	box-shadow: 0 2px 6px rgba(43, 57, 144, 0.35);
}

.ron-options-wrap .nav-tab .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
	margin-right: 0;
	vertical-align: text-bottom;
}

/* Panel — a plain card under the tab bar. */
.ron-options-panel {
	background: #fff;
	border: 1px solid #e4e2ec;
	border-top: none;
	border-radius: 0 0 12px 12px;
	padding: 8px 24px 4px;
	box-shadow: 0 1px 2px rgba(20, 20, 43, 0.04);
}

.ron-options-wrap .ron-options-form {
	margin-top: -1px;
}

/* Field rows */
.ron-options-panel .form-table {
	margin-top: 0;
}

.ron-options-panel .form-table > tbody > tr {
	border-bottom: 1px solid #f1f0f5;
}

.ron-options-panel .form-table > tbody > tr:last-child {
	border-bottom: none;
}

.ron-options-panel .form-table th {
	width: 260px;
	padding: 20px 16px 20px 0;
	font-weight: 600;
	color: #1d2140;
	vertical-align: top;
}

.ron-options-panel .form-table td {
	padding: 16px 0;
	vertical-align: middle;
}

.ron-options-panel .form-table .description {
	color: #767692;
	font-size: 12.5px;
	margin-top: 6px;
}

/* Inputs — rounded, brand-colored focus ring instead of the default WP blue,
   so the whole screen reads as one consistent, designed surface. */
.ron-options-panel input[type="text"],
.ron-options-panel input[type="number"],
.ron-options-panel input[type="url"],
.ron-options-panel input[type="email"],
.ron-options-panel input.regular-text,
.ron-options-panel input.small-text,
.ron-options-panel input.ron-color-field,
.ron-options-panel textarea,
.ron-options-panel select {
	border: 1px solid #dcdbe6;
	border-radius: 8px;
	padding: 7px 12px;
	box-shadow: none;
}

/* Select fields size themselves to fit their content (WP core's own
   `.wp-core-ui select` rule has no min-width, and shrink-to-fit sizing is
   fine when an option's text is long — "4-Column" — but a field whose
   choices are bare digits ("1".."4", e.g. Footer Widget Columns) shrinks
   to barely more than core's own right-side padding for its custom
   dropdown-arrow icon, so the icon visually sits on top of the digit
   instead of beside it. Give every select a floor width so the label
   text and the arrow always have separate room, regardless of how short
   the selected option's text happens to be. */
.ron-options-panel select {
	min-width: 160px;
	padding-right: 32px;
}

/* Number fields (Products Per Page, Related Products Count, Base Font
   Size, ...) all render at WordPress core's own narrow `.small-text`
   width (50px) — the general rule above's 12px side padding left almost
   no room for the digits before the browser's native up/down spinner,
   so the two visually collided. Give this specific combination more
   width and less padding on the spinner side instead. */
.ron-options-panel input[type="number"].small-text {
	width: 90px;
	padding: 7px 4px 7px 12px;
}

.ron-options-panel input[type="text"]:focus,
.ron-options-panel input[type="number"]:focus,
.ron-options-panel input[type="url"]:focus,
.ron-options-panel input[type="email"]:focus,
.ron-options-panel input.regular-text:focus,
.ron-options-panel input.small-text:focus,
.ron-options-panel textarea:focus,
.ron-options-panel select:focus {
	border-color: #E00F7A;
	box-shadow: 0 0 0 1px #E00F7A;
}

.ron-options-wrap textarea.code {
	font-family: Consolas, Monaco, monospace;
	font-size: 13px;
}

/* Toggle switch — recolored to brand navy/pink instead of WP admin blue. */
.ron-toggle {
	position: relative;
	display: inline-block;
	width: 42px;
	height: 24px;
}

.ron-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

.ron-toggle-slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background-color: #d5d3e0;
	transition: 0.15s;
	border-radius: 24px;
}

.ron-toggle-slider::before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background-color: #fff;
	transition: 0.15s;
	border-radius: 50%;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ron-toggle input:checked + .ron-toggle-slider {
	background-color: #2B3990;
}

.ron-toggle input:checked + .ron-toggle-slider::before {
	transform: translateX(18px);
	background-color: #fff;
}

.ron-toggle input:focus-visible + .ron-toggle-slider {
	box-shadow: 0 0 0 2px #E00F7A;
}

/* Image field */
.ron-image-field .ron-image-preview {
	margin-bottom: 8px;
	max-width: 200px;
}

.ron-image-field .ron-image-preview img {
	max-width: 100%;
	height: auto;
	display: block;
	border: 1px solid #dcdbe6;
	border-radius: 8px;
}

.ron-image-field .button {
	border-radius: 6px;
}

/* Save button — brand pink primary action, matches the front-end button
   color so the admin and the storefront don't feel like different products. */
.ron-options-wrap .button-primary {
	background: #E00F7A;
	border-color: #E00F7A;
	box-shadow: none;
	border-radius: 999px;
	padding: 4px 20px;
	font-weight: 600;
}

.ron-options-wrap .button-primary:hover,
.ron-options-wrap .button-primary:focus {
	background: #c00c69;
	border-color: #c00c69;
}

@media (max-width: 782px) {
	.ron-options-panel .form-table th {
		width: auto;
	}
}
