/**
 * Admin styles.
 *
 * @package Availability_Datepicker
 * @since 1.0.0
 */

/* ============================================
   CSS VARIABLES - Design Tokens
   ============================================ */
:root {
	/* Spacing System */
	--avco-space-xs: 4px;
	--avco-space-sm: 8px;
	--avco-space-md: 16px;
	--avco-space-lg: 24px;
	--avco-space-xl: 32px;
	--avco-space-2xl: 48px;

	/* Colors */
	--avco-color-primary: #2271b1;
	--avco-color-primary-hover: #135e96;
	--avco-color-success: #00a32a;
	--avco-color-success-bg: #d4edda;
	--avco-color-success-text: #155724;
	--avco-color-error: #d63638;
	--avco-color-error-bg: #f8d7da;
	--avco-color-error-text: #721c24;
	--avco-color-warning: #dba617;
	--avco-color-warning-bg: #fff3cd;
	--avco-color-warning-text: #856404;
	--avco-color-info: #72aee6;
	--avco-color-info-bg: #d1ecf1;
	--avco-color-info-text: #0c5460;

	/* Neutral Colors */
	--avco-color-border: #c3c4c7;
	--avco-color-border-light: #dcdcde;
	--avco-color-bg: #f0f0f1;
	--avco-color-bg-white: #ffffff;
	--avco-color-text: #1d2327;
	--avco-color-text-light: #50575e;
	--avco-color-text-lighter: #646970; /* WordPress's description grey: 5.5:1 on white (AA). */

	/* Typography */
	--avco-font-size-xs: 11px;
	--avco-font-size-sm: 13px;
	--avco-font-size-base: 14px;
	--avco-font-size-md: 16px;
	--avco-font-size-lg: 18px;
	--avco-font-size-xl: 24px;

	/* Border Radius */
	--avco-radius-sm: 3px;
	--avco-radius-md: 4px;
	--avco-radius-lg: 6px;

	/* Shadows */
	--avco-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
	--avco-shadow-md: 0 2px 4px rgba(0, 0, 0, 0.1);
	--avco-shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.15);

	/* Transitions */
	--avco-transition-fast: 150ms ease;
	--avco-transition-base: 200ms ease;
	--avco-transition-slow: 300ms ease;
}

/* ============================================
   PAGE STRUCTURE
   ============================================ */

/* Consistent Title Spacing */
.avco-wrap h1 {
	padding-top: 20px;
	padding-bottom: 20px;
	margin: 0;
	display: inline-block;
}

/* Page Header - Consistent across all pages */
.avco-page-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: var(--avco-space-lg);
	padding-bottom: var(--avco-space-md);
	border-bottom: 1px solid var(--avco-color-border-light);
}

.avco-page-header h1 {
	margin: 0;
	font-size: var(--avco-font-size-xl);
	font-weight: 600;
	color: var(--avco-color-text);
}

.avco-page-header .avco-page-actions {
	display: flex;
	gap: var(--avco-space-sm);
}

/* Page Content Container */
.avco-page-content {
	background: var(--avco-color-bg-white);
	padding: var(--avco-space-lg);
	border: 1px solid var(--avco-color-border-light);
	border-radius: var(--avco-radius-md);
	box-shadow: var(--avco-shadow-sm);
}

/* Section Headers */
.avco-section-header {
	margin: var(--avco-space-xl) 0 var(--avco-space-md) 0;
	padding-bottom: var(--avco-space-sm);
	border-bottom: 2px solid var(--avco-color-border-light);
}

.avco-section-header:first-child {
	margin-top: 0;
}

.avco-section-header h2 {
	margin: 0;
	font-size: var(--avco-font-size-lg);
	font-weight: 600;
	color: var(--avco-color-text);
}

.avco-section-header p {
	margin: var(--avco-space-xs) 0 0 0;
	font-size: var(--avco-font-size-sm);
	color: var(--avco-color-text-light);
}

/* ============================================
   CARDS
   ============================================ */
.avco-card {
	background: var(--avco-color-bg-white);
	border: 1px solid var(--avco-color-border-light);
	border-radius: var(--avco-radius-md);
	padding: var(--avco-space-lg);
	margin-bottom: 12px;
	box-shadow: var(--avco-shadow-sm);
	transition: box-shadow var(--avco-transition-base);
}

.avco-card:hover {
	box-shadow: var(--avco-shadow-md);
}

.avco-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: var(--avco-space-md);
	padding-bottom: var(--avco-space-sm);
	border-bottom: 1px solid var(--avco-color-border-light);
}

.avco-card-header h3 {
	margin: 0;
	font-size: var(--avco-font-size-md);
	font-weight: 600;
	color: var(--avco-color-text);
}

.avco-card-body {
	color: var(--avco-color-text);
}

.avco-card-footer {
	margin-top: var(--avco-space-md);
	padding-top: var(--avco-space-md);
	border-top: 1px solid var(--avco-color-border-light);
	display: flex;
	justify-content: flex-end;
	gap: var(--avco-space-sm);
}

/* ============================================
   FORMS & INPUTS
   ============================================ */

/* General Form Container */
.avco-form {
	max-width: 800px;
}

/* Standard WP Table Overrides */
.avco-form .form-table th {
	width: 200px;
	padding: var(--avco-space-md) var(--avco-space-sm) var(--avco-space-md) 0;
	vertical-align: top;
	font-weight: 600;
	color: var(--avco-color-text);
}

.avco-form .form-table td {
	padding: var(--avco-space-md) var(--avco-space-sm);
}

/* Single inputs: fixed width */
.avco-form .form-table input[type="text"],
.avco-form .form-table input[type="email"],
.avco-form .form-table input[type="number"],
.avco-form .form-table input[type="date"],
.avco-form .form-table input[type="time"],
.avco-form .form-table select,
.avco-form .form-table textarea,
.avco-form .form-table .regular-text,
.avco-form .form-table .large-text {
	box-sizing: border-box;
	width: 300px !important;
	max-width: 300px !important;
}

/* Input group: several inputs sharing one 320px row */
.avco-input-group-320 {
	display: flex;
	gap: 12px;
	width: 320px;
	max-width: 100%;
	align-items: center;
}

/* Older class name, same as .avco-input-group-320 */
.avco-input-group-300 {
	display: flex;
	gap: 12px;
	width: 320px;
	max-width: 100%;
	align-items: center;
}

.avco-input-group-320 input,
.avco-input-group-320 select,
.avco-input-group-320 button,
.avco-input-group-300 input,
.avco-input-group-300 select,
.avco-input-group-300 button {
	flex: 1;
	width: auto !important;
	min-width: 0;
}

/* "to" separator */
.avco-input-group-320 span,
.avco-input-group-300 span {
	flex: 0 0 auto;
	color: var(--avco-color-text-light);
}

.avco-input-group-320 .button,
.avco-input-group-300 .button {
	flex: 0 0 auto;
}

/* Two-column input group */
.avco-input-group-half {
	display: flex;
	gap: 12px;
	width: 652px;
	/* 320px * 2 + 12px gap */
	max-width: 100%;
	align-items: center;
}

.avco-input-group-half>* {
	flex: 1;
	width: auto !important;
	max-width: none !important;
}

/* Weekly hours slots */
.avco-slots-container {
	width: 320px;
}

.avco-slot-row {
	display: flex;
	gap: 12px;
	width: 100%;
	align-items: center;
	margin-bottom: var(--avco-space-sm);
}

.avco-slot-row input {
	flex: 1 !important;
	width: auto !important;
	max-width: none !important;
}

/* Date Override Row styling */
.date-override-row {
	display: flex;
	gap: 12px;
	width: 100%;
	align-items: center;
	margin-bottom: 12px;
}

.date-override-row input[type="date"] {
	width: 320px !important;
	max-width: 320px !important;
	flex: none;
}

/* Wide enough for a 12-hour time with AM/PM and the browser's clock icon (11:30 PM). */
.date-override-row input[type="time"] {
	width: 132px !important;
	max-width: 132px !important;
	flex: none;
}

.date-override-row .button {
	flex: 0 0 auto;
}

/* "Add range" spacing */
.avco-add-range {
	margin-left: 8px;
}

/* Validation error on range date inputs */
.date-range-picker-row input[type="date"].avco-field-error {
	border-color: #d63638 !important;
	box-shadow: 0 0 0 1px #d63638 !important;
}

.avco-form .form-table input[type="checkbox"],
.avco-form .form-table input[type="radio"] {
	margin-right: var(--avco-space-xs);
}

.avco-form .form-table .description {
	display: block;
	margin-top: var(--avco-space-xs);
	font-size: var(--avco-font-size-sm);
	color: var(--avco-color-text-light);
	font-style: italic;
}

/* Form Actions - Consistent button placement */
.avco-form-actions {
	margin-top: var(--avco-space-xl);
	padding-top: var(--avco-space-md);
	border-top: 1px solid var(--avco-color-border-light);
	display: flex;
	justify-content: flex-end;
	gap: var(--avco-space-sm);
}

/* ============================================
   TABLES & LISTS
   ============================================ */

/* Table Container */
.avco-table-container {
	background: var(--avco-color-bg-white);
	border: 1px solid var(--avco-color-border-light);
	border-radius: var(--avco-radius-md);
	overflow: hidden;
}

/* Table Header Actions */
.avco-table-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: var(--avco-space-md);
	background: var(--avco-color-bg);
	border-bottom: 1px solid var(--avco-color-border-light);
}

.avco-table-header h3 {
	margin: 0;
	font-size: var(--avco-font-size-md);
	font-weight: 600;
}

.avco-table-header .avco-table-actions {
	display: flex;
	gap: var(--avco-space-sm);
}

/* Row Actions */
.wp-list-table .avco-row-actions {
	white-space: nowrap;
}

.wp-list-table .avco-row-actions a {
	margin-right: var(--avco-space-sm);
	color: var(--avco-color-primary);
	text-decoration: none;
	transition: color var(--avco-transition-fast);
}

.wp-list-table .avco-row-actions a:hover {
	color: var(--avco-color-primary-hover);
	text-decoration: underline;
}

.wp-list-table .avco-row-actions .delete {
	color: var(--avco-color-error);
}

.wp-list-table .avco-row-actions .delete:hover {
	color: #a00;
}

/* Empty State */
.avco-empty-state {
	text-align: center;
	padding: var(--avco-space-2xl) var(--avco-space-lg);
	color: var(--avco-color-text-light);
}

.avco-empty-state-icon {
	font-size: 48px;
	color: var(--avco-color-text-lighter);
	margin-bottom: var(--avco-space-md);
}

.avco-empty-state h3 {
	margin: 0 0 var(--avco-space-sm) 0;
	font-size: var(--avco-font-size-lg);
	color: var(--avco-color-text);
}

.avco-empty-state p {
	margin: 0 0 var(--avco-space-md) 0;
	font-size: var(--avco-font-size-base);
}

/* ============================================
   TABS
   ============================================ */
.avco-tabs {
	margin-top: var(--avco-space-lg);
}

.avco-tabs .nav-tab-wrapper {
	margin-bottom: 0;
	border-bottom: 1px solid var(--avco-color-border);
}

.avco-tabs .nav-tab {
	cursor: pointer;
	padding: var(--avco-space-sm) var(--avco-space-md);
	font-size: var(--avco-font-size-base);
	transition: all var(--avco-transition-fast);
	margin-left: 0;
}

.avco-tabs .nav-tab:hover {
	background-color: var(--avco-color-bg);
}

.avco-tabs .nav-tab.nav-tab-active {
	background-color: var(--avco-color-bg-white);
	border-bottom-color: var(--avco-color-bg-white);
	font-weight: 600;
}

.avco-tabs .tab-content {
	display: none;
	padding: var(--avco-space-lg);
	background: var(--avco-color-bg-white);
	border: 1px solid var(--avco-color-border);
	border-top: none;
	border-radius: 0 0 var(--avco-radius-md) var(--avco-radius-md);
}

.avco-tabs .tab-content.active {
	display: block;
}

.avco-inner-tab-content {
	display: none;
}

/* ============================================
   STATUS BADGES
   ============================================ */
.avco-status {
	display: inline-block;
	padding: var(--avco-space-xs) var(--avco-space-sm);
	border-radius: var(--avco-radius-sm);
	font-size: var(--avco-font-size-xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.avco-status-active {
	background-color: var(--avco-color-success-bg);
	color: var(--avco-color-success-text);
}

.avco-status-inactive {
	background-color: var(--avco-color-error-bg);
	color: var(--avco-color-error-text);
}

.avco-status-pending {
	background-color: var(--avco-color-warning-bg);
	color: var(--avco-color-warning-text);
}

.avco-status-confirmed {
	background-color: var(--avco-color-info-bg);
	color: var(--avco-color-info-text);
}

/* ============================================
   NOTICES & ALERTS
   ============================================ */
.avco-notice {
	padding: var(--avco-space-md);
	margin-bottom: var(--avco-space-md);
	border-left: 4px solid;
	border-radius: var(--avco-radius-sm);
	background: var(--avco-color-bg-white);
}

.avco-notice-success {
	border-left-color: var(--avco-color-success);
	background-color: var(--avco-color-success-bg);
	color: var(--avco-color-success-text);
}

.avco-notice-error {
	border-left-color: var(--avco-color-error);
	background-color: var(--avco-color-error-bg);
	color: var(--avco-color-error-text);
}

.avco-notice-warning {
	border-left-color: var(--avco-color-warning);
	background-color: var(--avco-color-warning-bg);
	color: var(--avco-color-warning-text);
}

.avco-notice-info {
	border-left-color: var(--avco-color-info);
	background-color: var(--avco-color-info-bg);
	color: var(--avco-color-info-text);
}

/* ============================================
   FORM SUBMIT BUTTON STATES
   ============================================ */

/* Disabled submit button (no changes) */
button[type="submit"]:disabled,
input[type="submit"]:disabled {
	opacity: 0.5 !important;
	cursor: not-allowed !important;
	pointer-events: none;
}

/* Ensure WordPress button styles don't override */
.button-primary:disabled,
.button-primary:disabled:hover,
.button-primary:disabled:focus {
	background: #2271b1 !important;
	border-color: #2271b1 !important;
	opacity: 0.5 !important;
	cursor: not-allowed !important;
	box-shadow: none !important;
}

/* Submit row: Save left, Restore right */
.avco-submit-row {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	flex-wrap: wrap;
	gap: var(--avco-space-md);
}

.avco-submit-row .avco-btn-ghost {
	margin-left: auto;
}

/* Ghost button - subtle, always enabled */
.avco-btn-ghost {
	background: transparent !important;
	border: 1px solid var(--avco-color-primary) !important;
	color: var(--avco-color-primary) !important;
	box-shadow: none !important;
}

.avco-btn-ghost:hover,
.avco-btn-ghost:focus {
	background: transparent !important;
	border-color: var(--avco-color-primary-hover) !important;
	color: var(--avco-color-primary-hover) !important;
}

/* ============================================
   UTILITIES
   ============================================ */

/* Consistent Submit Button Spacing */
.avco-wrap .submit {
	margin: 0 !important;
	padding-top: 20px;
	padding-bottom: 20px;
}

/* Spacing Utilities */
.avco-mt-0 {
	margin-top: 0 !important;
}

.avco-mt-xs {
	margin-top: var(--avco-space-xs) !important;
}

.avco-mt-sm {
	margin-top: var(--avco-space-sm) !important;
}

.avco-mt-md {
	margin-top: var(--avco-space-md) !important;
}

.avco-mt-lg {
	margin-top: var(--avco-space-lg) !important;
}

.avco-mt-xl {
	margin-top: var(--avco-space-xl) !important;
}

.avco-mb-0 {
	margin-bottom: 0 !important;
}

.avco-mb-xs {
	margin-bottom: var(--avco-space-xs) !important;
}

.avco-mb-sm {
	margin-bottom: var(--avco-space-sm) !important;
}

.avco-mb-md {
	margin-bottom: var(--avco-space-md) !important;
}

.avco-mb-lg {
	margin-bottom: var(--avco-space-lg) !important;
}

.avco-mb-xl {
	margin-bottom: var(--avco-space-xl) !important;
}

.avco-p-0 {
	padding: 0 !important;
}

.avco-p-sm {
	padding: var(--avco-space-sm) !important;
}

.avco-p-md {
	padding: var(--avco-space-md) !important;
}

.avco-p-lg {
	padding: var(--avco-space-lg) !important;
}

/* Text Utilities */
.avco-text-center {
	text-align: center !important;
}

.avco-text-right {
	text-align: right !important;
}

.avco-text-left {
	text-align: left !important;
}

.avco-text-muted {
	color: var(--avco-color-text-light) !important;
}

.avco-text-small {
	font-size: var(--avco-font-size-sm) !important;
}

/* Display Utilities */
.avco-flex {
	display: flex !important;
}

.avco-flex-between {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
}

.avco-flex-center {
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
}

.avco-gap-sm {
	gap: var(--avco-space-sm) !important;
}

.avco-gap-md {
	gap: var(--avco-space-md) !important;
}

.avco-gap-lg {
	gap: var(--avco-space-lg) !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media screen and (max-width: 782px) {

	/* Page Header */
	.avco-page-header {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--avco-space-md);
	}

	.avco-page-header .avco-page-actions {
		width: 100%;
		flex-direction: column;
	}

	.avco-page-header .avco-page-actions .button {
		width: 100%;
		text-align: center;
	}

	/* Forms */
	.avco-form .form-table th,
	.avco-form .form-table td {
		display: block;
		width: 100%;
		padding: var(--avco-space-sm) 0;
	}

	/* Form Actions */
	.avco-form-actions {
		flex-direction: column;
	}

	.avco-form-actions .button {
		width: 100%;
		text-align: center;
	}

	/* Cards */
	.avco-card {
		padding: var(--avco-space-md);
	}

	.avco-card-header {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--avco-space-sm);
	}

	.avco-card-footer {
		flex-direction: column;
	}

	.avco-card-footer .button {
		width: 100%;
		text-align: center;
	}

	/* Table Header */
	.avco-table-header {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--avco-space-sm);
	}

	.avco-table-header .avco-table-actions {
		width: 100%;
		flex-direction: column;
	}

	.avco-table-header .avco-table-actions .button {
		width: 100%;
		text-align: center;
	}
}

/* ============================================
   ALERTS 
   ============================================ */
.avco-alert {
	position: relative;
	padding: var(--avco-space-md) var(--avco-space-xl) var(--avco-space-md) var(--avco-space-lg);
	margin: 0 0 var(--avco-space-lg) 0;
	border-left: 4px solid transparent;
	background: #fff;
	box-shadow: var(--avco-shadow-sm);
	display: flex;
	align-items: center;
	border-radius: var(--avco-radius-sm);
	animation: avco-fade-in 0.3s ease-out;
}

@keyframes avco-fade-in {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.avco-alert-content {
	flex: 1;
	font-size: var(--avco-font-size-base);
	line-height: 1.5;
}

.avco-alert-dismiss {
	position: absolute;
	top: 50%;
	right: var(--avco-space-sm);
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	color: var(--avco-color-text-light);
	padding: 5px;
	border-radius: 50%;
	transition: var(--avco-transition-fast);
}

.avco-alert-dismiss:hover {
	background-color: rgba(0, 0, 0, 0.05);
	color: var(--avco-color-text);
}

.avco-alert-success {
	border-color: var(--avco-color-success);
	background-color: #f0f9eb;
	color: var(--avco-color-success-text);
}

.avco-alert-error {
	border-color: var(--avco-color-error);
	background-color: #fdf2f2;
	color: var(--avco-color-error-text);
}

.avco-alert-info {
	border-color: var(--avco-color-info);
	background-color: #f0f7fd;
	color: var(--avco-color-info-text);
}

.avco-alert-warning {
	border-color: var(--avco-color-warning);
	background-color: #fcf9e8;
	color: var(--avco-color-warning-text);
}

/* Ghost Button Style */
.avco-btn-ghost {
	background: transparent !important;
	border-color: transparent !important;
	box-shadow: none !important;
	color: var(--avco-color-primary) !important;
	padding: 0 8px !important;
	min-height: 30px !important;
	height: 30px !important;
	line-height: 28px !important;
}

.avco-btn-ghost:hover {
	background: rgba(0, 0, 0, 0.05) !important;
	color: var(--avco-color-primary-hover) !important;
}

.avco-btn-ghost .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	line-height: 28px;
}

/* Material Symbols Icons */
.material-symbols-outlined {
	font-variation-settings:
		'FILL' 0,
		'wght' 200,
		'GRAD' 0,
		'opsz' 24;
	font-size: 18px;
	vertical-align: middle;
	line-height: 1;
}

/* Material Symbols in ghost buttons */
.avco-btn-ghost .material-symbols-outlined {
	font-size: 18px;
	line-height: 28px;
}

/* ============================================
   CSS SELECTOR PAGE TABS
   ============================================ */
.avco-tabs-wrapper {
	margin-bottom: 12px;
}

.avco-tabs-wrapper .avco-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	position: relative;
	z-index: 1;
	margin-top: 0;
}

.avco-tabs-wrapper .avco-tab {
	padding: 12px 20px;
	cursor: pointer;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-bottom: none;
	border-radius: 4px 4px 0 0;
	margin-right: -1px;
	color: #50575e;
	font-size: 14px;
	transition: all 0.15s ease;
	min-width: 130px;
	text-align: center;
}

.avco-tabs-wrapper .avco-tab:hover:not(.active) {
	background: #f0f0f1;
	color: #1d2327;
}

.avco-tabs-wrapper .avco-tab.active {
	background: #fff;
	color: #1d2327;
	font-weight: 600;
	border-color: #dcdcde;
	position: relative;
}

.avco-tabs-wrapper .avco-tab.active::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	right: 0;
	height: 2px;
	background: #fff;
}

.avco-tab-content {
	display: none;
}

.avco-tab-content.active {
	display: block;
}

.avco-tabs-wrapper .avco-card {
	border-top-left-radius: 0;
	margin-top: 0;
	margin-bottom: 0;
}

/* ============================================
   GLOBAL HEADER BAR
   ============================================ */
.avco-header-bar {
	height: auto;
	background: #ffffff;
	width: calc(100% + 20px);
	margin-left: -20px;
	margin-right: 0;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 10px;
	padding-bottom: 10px;
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
	border-bottom: 1px solid var(--avco-color-border-light);
}

.avco-header-logo {
	display: flex;
	align-items: center;
	gap: 10px;
}

.avco-header-logo h2 {
	font-size: var(--avco-font-size-base);
	font-weight: 600;
	color: var(--avco-color-text);
	line-height: 1;
}

.avco-logo-placeholder {
	font-weight: bold;
	color: var(--avco-color-text-light);
	font-size: 11px;
	background: #f0f0f1;
	padding: 2px 8px;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.avco-header-right {
	display: flex;
	align-items: center;
	gap: var(--avco-space-md);
}

.avco-header-version {
	display: flex;
	align-items: center;
}

.avco-upgrade-btn.button {
	/* Logo red, as the owner asked. White text on it is 3.8:1. */
	background-color: #E74C3C !important;
	border-color: #E74C3C !important;
	color: #ffffff !important;
	font-weight: 600;
	text-decoration: none;
	box-shadow: none !important;
	transition: background-color var(--avco-transition-fast), border-color var(--avco-transition-fast);
}

.avco-upgrade-btn.button:hover,
.avco-upgrade-btn.button:focus {
	background-color: #CF4436 !important;
	border-color: #CF4436 !important;
	color: #ffffff !important;
	box-shadow: none !important;
}

.avco-upgrade-btn.button:focus-visible {
	outline: 2px solid #C0392B;
	outline-offset: 2px;
}

/* ============================================
   AVAILABILITY CALENDAR PREVIEW WIDGET
   ============================================ */

.avco-preview-card {
	padding-top: var(--avco-space-md) !important;
	padding-bottom: var(--avco-space-md) !important;
}

/* Navigation row */
.avco-cal-nav-row {
	display: flex;
	align-items: center;
	gap: var(--avco-space-xs);
	margin-bottom: var(--avco-space-sm);
}

/* Plain icon arrow buttons — match heading color, no button chrome */
.avco-cal-nav-btn {
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	padding: 2px 8px !important;
	margin: 0 !important;
	cursor: pointer;
	font-size: 16px;
	color: var(--avco-color-text) !important;
	line-height: 1;
	flex-shrink: 0;
	opacity: 1;
	transition: opacity var(--avco-transition-fast);
	min-height: 0 !important;
	height: auto !important;
}

.avco-cal-nav-btn:hover,
.avco-cal-nav-btn:focus {
	opacity: 0.7;
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	color: var(--avco-color-text) !important;
}

.avco-cal-nav-btn:disabled,
.avco-cal-nav-btn[disabled] {
	opacity: 0.25 !important;
	cursor: default !important;
}

/* Clickable week label — triggers the hidden date input */
.avco-cal-week-label-wrap {
	position: relative;
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
}

.avco-cal-week-label {
	font-size: var(--avco-font-size-sm);
	font-weight: 600;
	color: var(--avco-color-text);
	white-space: nowrap;
	-webkit-user-select: none;
	user-select: none;
}

.avco-cal-week-label-wrap:hover .avco-cal-week-label {
	text-decoration: underline;
	text-underline-offset: 2px;
}


/* Hidden date input — positioned off-screen, triggered via JS */
.avco-cal-date-jump-hidden {
	position: absolute;
	top: 0;
	left: 50%;
	width: 0;
	height: 0;
	opacity: 0;
	pointer-events: none;
	border: none;
	padding: 0;
	margin: 0;
	overflow: hidden;
}

/* Calendar grid — 7 equal columns */
.avco-week-preview {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 6px;
	width: 100%;
}

/* ---- Day box: shared base ---- */
.avco-cal-day {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	padding: 8px 4px;
	border-radius: var(--avco-radius-md);
	border: 1px solid var(--avco-color-border-light);
	background: var(--avco-color-bg-white);
	height: 170px;
	box-sizing: border-box;
	min-width: 0;
	transition: border-color var(--avco-transition-fast);
}

.avco-cal-day--available {
	background: #eefaf2;
	border-color: #aad9bb;
}

.avco-cal-day--unavailable {
	/* Muted by background and a dashed border, not opacity, so the text keeps AA contrast. */
	background: #f0f0f1;
	border-color: var(--avco-color-border-light);
	border-style: dashed;
}

.avco-cal-day--today {
	border-color: var(--avco-color-primary) !important;
	border-width: 2px;
}

/* Day abbreviation — Day Based available */
.avco-cal-dayname {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--avco-color-text-lighter);
	line-height: 1;
}

/* Date number — Day Based available */
.avco-cal-date {
	font-size: 20px;
	font-weight: 700;
	color: var(--avco-color-text);
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
}

.avco-cal-day--today .avco-cal-date {
	background: var(--avco-color-primary);
	color: #fff;
}

/* Month label — Day Based available */
.avco-cal-month {
	font-size: 10px;
	color: var(--avco-color-text-lighter);
	line-height: 1;
}

/* Status badge — Day Based available */
.avco-cal-status {
	font-size: 9px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	padding: 2px 6px;
	border-radius: 9px;
	line-height: 1.4;
	white-space: nowrap;
	background: #c3e6cb;
	color: #155724;
}

/* ---- Slot-focused box: Fixed, Flexible available + ALL unavailable ---- */
.avco-cal-day--slots {
	align-items: stretch;
	justify-content: flex-start;
	padding: 6px;
	gap: 0;
	overflow: hidden;
}

/* Compact one-line header */
.avco-cal-slot-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	flex-shrink: 0;
	border-bottom: 1px solid var(--avco-color-border-light);
	padding-bottom: 4px;
	margin-bottom: 4px;
}

.avco-cal-day--available.avco-cal-day--slots .avco-cal-slot-header {
	border-bottom-color: #aad9bb;
}

.avco-cal-slot-hdr-day {
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--avco-color-text-lighter);
	line-height: 1;
}

.avco-cal-slot-hdr-date {
	font-size: 10px;
	font-weight: 600;
	color: var(--avco-color-text-light);
	line-height: 1;
}

/* Wrapper: positions the fade hint over the chips */
.avco-cal-slot-wrap {
	flex: 1;
	position: relative;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

/* Scrollable chips container — no visible scrollbar */
.avco-cal-slot-chips {
	flex: 1;
	overflow-y: auto;
	min-height: 0;
	scrollbar-width: none;
}

.avco-cal-slot-chips::-webkit-scrollbar {
	display: none;
}

/* Fade hint — shown when content overflows and user hasn't reached the bottom */
.avco-cal-scroll-hint {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 22px;
	background: linear-gradient(to bottom, transparent 0%, rgba(238, 250, 242, 1) 55%);
	display: block;
	text-align: center;
	line-height: 20px;
	padding: 0 4px 2px;
	/* One line, also for longer translations; the list itself scrolls. */
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.3px;
	color: #2d7a4f;
	pointer-events: none;
	opacity: 1;
	transition: opacity 0.2s ease;
}

.avco-cal-scroll-hint--hidden {
	opacity: 0;
}

/* Loading placeholder while AJAX fetches availability */
.avco-cal-loading {
	width: 100%;
	height: 170px;
	border-radius: var(--avco-radius-md);
	background: linear-gradient(90deg, var(--avco-color-bg) 25%, var(--avco-color-bg-white) 50%, var(--avco-color-bg) 75%);
	background-size: 200% 100%;
	animation: avco-shimmer 1.2s infinite;
}

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

.avco-cal-save-note {
	margin: var(--avco-space-sm) 0 0;
	font-size: var(--avco-font-size-xs);
	color: var(--avco-color-text-lighter);
	text-align: left;
}

/* Time chip — green for both Fixed and Flexible */
.avco-cal-slot-chip {
	display: block;
	width: 100%;
	padding: 2px 3px;
	margin-bottom: 2px;
	border-radius: 3px;
	font-size: 9px;
	font-weight: 600;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.6;
	box-sizing: border-box;
	background: #c3e6cb;
	color: #155724;
}

/* Centered status label body — used for all unavailable and day-based available days */
.avco-cal-unavail-body {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
}

.avco-cal-unavail-body span {
	font-size: 9px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	color: #50575e; /* 5.75:1 on the label's grey. */
	text-align: center;
	padding: 2px 6px;
	border-radius: 9px;
	background: #e2e4e7;
}

.avco-cal-avail-label {
	background: #c3e6cb !important;
	color: #155724 !important;
}

/* Responsive: horizontal scroll on small screens */
@media (max-width: 640px) {
	.avco-week-preview {
		display: flex;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		gap: 5px;
		padding-bottom: 4px;
	}

	.avco-cal-day {
		min-width: 72px;
		flex-shrink: 0;
	}
}

.avco-header-version span {
	font-size: var(--avco-font-size-sm);
	color: var(--avco-color-text-lighter);
	font-weight: 500;
}

/* Phones: the header's links wrap under the logo instead of widening the page (long labels in some languages). */
@media (max-width: 600px) {
	.avco-header-bar {
		flex-wrap: wrap;
		gap: 8px 12px;
	}

	.avco-header-right {
		flex-wrap: wrap;
		justify-content: flex-end;
		gap: 8px 12px;
		margin-left: auto;
	}
}

/* ============================================
   SUPPORT PAGE
   ============================================ */

/* Tab badge (for Diagnostics tab warning/error count) */
.avco-tab-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	margin-left: 5px;
	vertical-align: middle;
	box-sizing: border-box;
}

.avco-tab-badge--error {
	background: var(--avco-color-error);
	color: #fff;
}

.avco-tab-badge--warning {
	background: var(--avco-color-warning);
	color: #fff;
}

/* Multiple cards within a single tab panel — give them breathing room */
.avco-tab-content > .avco-card + .avco-card {
	margin-top: 12px;
	border-top-left-radius: var(--avco-radius-md);
	border-top-right-radius: var(--avco-radius-md);
}

/* First line under a card header. */
.avco-card-lead {
	margin: 0 0 var(--avco-space-md);
	color: var(--avco-color-text-light);
}

.avco-card-lead:last-child {
	margin-bottom: 0;
}

/* Hidden textarea used for clipboard copy */
.avco-system-info-raw {
	position: absolute;
	left: -9999px;
}

/* Integration: "Tested with" table */
.avco-tested-table {
	width: 100%;
	max-width: 640px;
	border-collapse: collapse;
}

.avco-tested-table th,
.avco-tested-table td {
	text-align: left;
	padding: 8px 12px 8px 0;
	border-bottom: 1px solid var(--avco-color-border-light);
}

.avco-tested-table th {
	font-weight: 600;
	color: var(--avco-color-text-light);
}

.avco-tested-table td:first-child {
	font-weight: 600;
	color: var(--avco-color-text);
}

.avco-tested-table td:last-child,
.avco-tested-table th:last-child {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.avco-tested-note {
	margin-bottom: 0;
	font-size: 12px;
	color: var(--avco-color-text-light);
}

/* System Info table */
.avco-system-info-table {
	width: 100%;
	border-collapse: collapse;
	border: none;
}

.avco-sysinfo-section {
	text-align: left;
	padding: 20px 0 10px;
	border-bottom: 2px solid var(--avco-color-border-light);
	font-size: 1em;
	font-weight: 600;
}

.avco-sysinfo-section:first-child {
	padding-top: 10px;
}

.avco-sysinfo-subsection {
	padding: 12px 0 4px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--avco-color-text-lighter);
	border-bottom: 1px solid var(--avco-color-border-light);
}

.avco-sysinfo-label {
	width: 35%;
	padding: 8px 0;
	border-bottom: 1px solid #eee;
	color: var(--avco-color-text-light);
	font-size: var(--avco-font-size-sm);
}

.avco-sysinfo-value {
	padding: 8px 0;
	border-bottom: 1px solid #eee;
	font-size: var(--avco-font-size-sm);
	word-break: break-word;
}

/* ---- How to Report an Issue card: one bordered list that opens one issue at a time ---- */

.avco-accordion {
	border: 1px solid var(--avco-color-border-light);
	border-radius: var(--avco-radius-md);
	overflow: hidden;
}

.avco-issue-type {
	margin: 0;
	background: var(--avco-color-bg-white);
}

.avco-issue-type + .avco-issue-type {
	border-top: 1px solid var(--avco-color-border-light);
}

.avco-issue-type summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
	user-select: none;
}

.avco-issue-type summary::-webkit-details-marker {
	display: none;
}

.avco-issue-type summary::marker {
	content: "";
}

.avco-issue-type summary:hover {
	background: #f6f7f7;
}

.avco-issue-type summary:focus-visible {
	outline: 2px solid var(--avco-color-primary);
	outline-offset: -2px;
}

.avco-chevron {
	flex: none;
	color: var(--avco-color-text-lighter);
	transition: transform var(--avco-transition-fast);
}

.avco-issue-type[open] .avco-chevron {
	transform: rotate(180deg);
}

.avco-issue-type ol {
	margin: 0;
	padding: 0 16px 16px 36px;
}

.avco-issue-type li {
	margin-bottom: 6px;
	font-size: var(--avco-font-size-sm);
	line-height: 1.5;
	color: var(--avco-color-text-light);
}

.avco-issue-type li:last-child {
	margin-bottom: 0;
}

.avco-report-guide-footer {
	margin: var(--avco-space-md) 0 0;
	color: var(--avco-color-text-lighter);
	font-size: var(--avco-font-size-sm);
}

/* ---- Diagnostics card: lists of checks, each with a status icon ---- */

.avco-diag-section-title {
	margin: 20px 0 8px;
	padding: 0;
	font-size: var(--avco-font-size-base);
	font-weight: 600;
	color: var(--avco-color-text);
}

.avco-card-head + .avco-diag-section-title {
	margin-top: 0;
}

.avco-diag-status {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: var(--avco-font-size-xs);
	font-weight: 600;
}

.avco-diag-status--ok {
	background: var(--avco-color-success-bg);
	color: var(--avco-color-success-text);
}

.avco-diag-status--warning {
	background: var(--avco-color-warning-bg);
	color: var(--avco-color-warning-text);
}

.avco-diag-status--error {
	background: var(--avco-color-error-bg);
	color: var(--avco-color-error-text);
}

.avco-diag-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--avco-color-border-light);
	border-radius: var(--avco-radius-md);
	overflow: hidden;
}

.avco-diag-row {
	position: relative;
	margin: 0;
	padding: 10px 14px 10px 42px;
	background: var(--avco-color-bg-white);
	font-size: var(--avco-font-size-sm);
	color: var(--avco-color-text);
	overflow-wrap: anywhere;
}

.avco-diag-row + .avco-diag-row {
	border-top: 1px solid var(--avco-color-bg);
}

.avco-diag-row::before {
	position: absolute;
	top: 9px;
	left: 14px;
	width: 18px;
	font-family: dashicons;
	font-size: 18px;
	line-height: 1;
}

.avco-diag-ok::before {
	content: "\f147";
	color: var(--avco-color-success);
}

.avco-diag-warning {
	background: #fcf9e8;
}

.avco-diag-warning::before {
	content: "\f534";
	color: #996800;
}

.avco-diag-error {
	background: #fcf0f1;
}

.avco-diag-error::before {
	content: "\f153";
	color: var(--avco-color-error);
}

.avco-diag-pending {
	margin: 8px 0 0;
	font-size: var(--avco-font-size-sm);
	color: var(--avco-color-text-lighter);
}

/* ============================================
   PRESET PANEL (collapsible inline section)
   ============================================ */

.avco-preset-panel {
	padding: 0;
	overflow: hidden;
}

.avco-preset-panel-toggle {
	display: flex;
	align-items: center;
	gap: var(--avco-space-sm);
	width: 100%;
	padding: var(--avco-space-md) var(--avco-space-lg);
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	color: inherit;
	font-family: inherit;
}

.avco-preset-panel-toggle:hover,
.avco-preset-panel-toggle:focus {
	background: var(--avco-color-bg);
	outline: none;
}

.avco-preset-panel-title {
	font-size: var(--avco-font-size-md);
	font-weight: 600;
	color: var(--avco-color-text);
	flex-shrink: 0;
}

.avco-preset-panel-sub {
	font-size: var(--avco-font-size-sm);
	color: var(--avco-color-text-lighter);
	flex: 1;
}

.avco-preset-panel-chevron {
	display: block;
	flex-shrink: 0;
	margin-left: auto;
	font-size: 20px;
	line-height: 1;
	color: var(--avco-color-text-lighter);
	font-weight: 300;
	user-select: none;
}

.avco-preset-panel-chevron::before {
	content: '+';
}

.avco-preset-panel.is-open .avco-preset-panel-chevron::before {
	content: '−';
}

.avco-preset-panel-body {
	padding: 0 var(--avco-space-lg) var(--avco-space-lg);
	border-top: 1px solid var(--avco-color-border-light);
}

.avco-preset-panel-desc {
	margin: var(--avco-space-md) 0 var(--avco-space-md) !important;
}

/* Preset grid & cards */

.avco-preset-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--avco-space-md);
}

@media (max-width: 900px) {
	.avco-preset-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 520px) {
	.avco-preset-grid {
		grid-template-columns: 1fr;
	}
}

.avco-preset-card {
	border: 2px solid var(--avco-color-border-light);
	border-radius: var(--avco-radius-lg);
	padding: var(--avco-space-md);
	cursor: pointer;
	transition: border-color var(--avco-transition-fast), box-shadow var(--avco-transition-fast), background var(--avco-transition-fast);
	background: var(--avco-color-bg-white);
	outline: none;
}

.avco-preset-card:hover {
	border-color: var(--avco-color-primary);
	box-shadow: var(--avco-shadow-md);
}

.avco-preset-card:focus {
	border-color: var(--avco-color-primary);
	box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.25);
}

.avco-preset-card.is-selected {
	border-color: var(--avco-color-primary);
	background: #f0f6fc;
	box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.2);
}

.avco-preset-card-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--avco-space-sm);
	margin-bottom: var(--avco-space-sm);
}

.avco-preset-name {
	font-weight: 600;
	font-size: var(--avco-font-size-base);
	color: var(--avco-color-text);
	line-height: 1.3;
}

.avco-preset-badge {
	display: inline-block;
	flex-shrink: 0;
	font-size: var(--avco-font-size-xs);
	font-weight: 500;
	padding: 2px 7px;
	border-radius: 20px;
	line-height: 1.6;
	white-space: nowrap;
}

.avco-badge-fixed {
	background: #e7f0fa;
	color: #135e96;
}

.avco-badge-daily {
	background: #edfaee;
	color: #1a7a2e;
}

.avco-badge-flexible {
	background: #fef8e7;
	color: #7a5c00;
}

.avco-preset-desc {
	margin: 0 0 var(--avco-space-sm);
	font-size: var(--avco-font-size-sm);
	color: var(--avco-color-text-light);
	line-height: 1.5;
}

.avco-preset-rec {
	margin: 0;
	font-size: var(--avco-font-size-xs);
	color: var(--avco-color-text-lighter);
	line-height: 1.4;
}

.avco-preset-rec strong {
	color: var(--avco-color-text-light);
}

/* ==========================================================================
   PRO: header links, section tips and the Upgrade to PRO page
   (markup in includes/class-avco-pro.php)
   Logo red #E74C3C for buttons; #C0392B for red text and small labels (5.4:1 on white);
   #FDF0EE with #F5C6C0 for PRO backgrounds.
   ========================================================================== */

.avco-header-learn,
.avco-header-learn:visited,
.avco-pro-link,
.avco-pro-link:visited {
	font-weight: 600;
	color: #C0392B;
	text-decoration: none;
}

.avco-header-learn:hover,
.avco-header-learn:focus,
.avco-pro-link:hover,
.avco-pro-link:focus {
	color: #A93226;
	text-decoration: underline;
}

.avco-pro-cta.button,
.avco-pro-cta.button:visited {
	color: #fff;
	font-weight: 600;
	background: #E74C3C;
	border-color: #E74C3C;
	box-shadow: none;
}

.avco-pro-cta.button:hover,
.avco-pro-cta.button:focus {
	color: #fff;
	background: #CF4436;
	border-color: #CF4436;
}

.avco-pro-cta.button:focus {
	box-shadow: 0 0 0 1px #fff, 0 0 0 3px #C0392B;
	outline: 2px solid transparent;
}

.avco-pro-cta.avco-pro-cta--large {
	padding: 4px 24px;
	font-size: 14px;
	line-height: 2.4;
	min-height: 40px;
}

.avco-pro-pill {
	display: inline-block;
	margin: 0 6px 0 4px;
	padding: 0 6px;
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	letter-spacing: 0.06em;
	color: #fff;
	background: #C0392B;
	border-radius: 9px;
	vertical-align: 1px;
}

/* --- Section tip: the footer of a card, edge to edge, in faded logo red ---
   Wide: icon | title and line | price, Learn More, button. Narrow: the actions move under the text,
   button first. The hide (×) stays in the top-right corner. */

.avco-pro-footer {
	position: relative;
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr) auto;
	grid-template-areas: "icon text actions";
	align-items: center;
	gap: 8px 12px;
	/* Cancel the card's padding so the footer runs edge to edge. */
	margin: var(--avco-space-lg) calc(-1 * var(--avco-space-lg)) calc(-1 * var(--avco-space-lg));
	padding: 12px 48px 12px var(--avco-space-lg);
	background: #FDF0EE;
	border-top: 1px solid #F5C6C0;
	border-radius: 0 0 var(--avco-radius-md) var(--avco-radius-md);
	font-size: var(--avco-font-size-sm);
	color: var(--avco-color-text-light);
}

.avco-icon {
	display: block;
	flex: none;
}

.avco-pro-footer > .avco-icon {
	grid-area: icon;
	align-self: start;
	margin-top: 1px;
	color: #C0392B;
}

.avco-pro-footer p {
	margin: 0;
}

.avco-pro-footer__text {
	grid-area: text;
	min-width: 0;
}

.avco-pro-footer__text strong {
	font-weight: 600;
	color: var(--avco-color-text);
}

/* The title and PRO pill on their own line, the description under them. */
.avco-pro-footer__headline {
	display: block;
	margin-top: 2px;
}

.avco-pro-footer__actions {
	grid-area: actions;
	display: flex;
	align-items: center;
	gap: 12px;
	white-space: nowrap;
}

.avco-pro-footer__price {
	color: var(--avco-color-text-lighter);
}

.avco-pro-footer__hide {
	position: absolute;
	top: 50%;
	right: 14px;
	width: 24px;
	height: 24px;
	margin-top: -12px;
	font-size: 16px;
	line-height: 24px;
	text-align: center;
	text-decoration: none;
	color: var(--avco-color-text-lighter);
	border-radius: 50%;
}

.avco-pro-footer__hide:hover,
.avco-pro-footer__hide:focus {
	color: var(--avco-color-text);
	background: #F5C6C0;
}

@media screen and (max-width: 960px) {
	.avco-pro-footer {
		grid-template-columns: 20px minmax(0, 1fr);
		grid-template-areas:
			"icon text"
			". actions";
		align-items: start;
	}

	/* Button first, then Learn More; the price under them as a caption. */
	.avco-pro-footer__actions {
		flex-wrap: wrap;
		gap: 6px 14px;
		white-space: normal;
	}

	.avco-pro-footer__actions .avco-pro-cta {
		order: 1;
	}

	.avco-pro-footer__actions .avco-pro-link {
		order: 2;
	}

	.avco-pro-footer__price {
		order: 3;
		flex-basis: 100%;
		font-size: 12px;
	}

	.avco-pro-footer__hide {
		top: 8px;
		right: 8px;
		margin-top: 0;
	}
}

/* --- Upgrade to PRO page ------------------------------------------------ */

.avco-upgrade .avco-page-sub {
	margin: -12px 0 var(--avco-space-md);
	color: var(--avco-color-text-light);
}

/* Hero: the pitch on the left, a small picture of it on the right. */
.avco-pro-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 32px;
	align-items: center;
	margin: 0 0 var(--avco-space-md);
	padding: 28px 32px;
	background: #FDF0EE;
	border: 1px solid #F5C6C0;
	border-radius: var(--avco-radius-md);
}

.avco-pro-hero .avco-pro-hero__eyebrow {
	margin: 0 0 6px;
	font-size: var(--avco-font-size-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #C0392B;
}

.avco-pro-hero h2 {
	margin: 0 0 10px;
	padding: 0;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.15;
	color: var(--avco-color-text);
	border: 0;
}

.avco-pro-hero__text > p:not([class]) {
	max-width: 520px;
	margin: 0;
	font-size: 14px;
	color: var(--avco-color-text-light);
}

.avco-pro-hero .avco-pro-hero__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	margin: 18px 0 0;
}

.avco-pro-hero .avco-pro-price {
	color: var(--avco-color-text-light);
}

/* The picture: three times of a day, each with three places. */
.avco-pro-demo {
	padding: 10px;
	background: #fff;
	border: 1px solid #F5C6C0;
	border-radius: var(--avco-radius-md);
}

.avco-pro-demo__row {
	display: grid;
	grid-template-columns: 64px 1fr auto;
	gap: 10px;
	align-items: center;
	padding: 7px 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--avco-color-text);
	border-radius: 6px;
}

.avco-pro-demo__row + .avco-pro-demo__row {
	margin-top: 4px;
}

.avco-pro-demo__places {
	display: flex;
	gap: 5px;
}

.avco-pro-demo__places i {
	width: 14px;
	height: 14px;
	border: 2px solid #c3c4c7;
	border-radius: 4px;
}

.avco-pro-demo__places i.is-taken {
	background: #E74C3C;
	border-color: #E74C3C;
}

.avco-pro-demo__state {
	padding: 1px 8px;
	font-size: 11px;
	color: #0a6b2e;
	background: #dff5e6;
	border-radius: 10px;
}

.avco-pro-demo__row.is-full {
	background: #FDF0EE;
}

.avco-pro-demo__row.is-full .avco-pro-demo__state {
	color: #fff;
	background: #C0392B;
}

/* Six features, one line each. */
.avco-pro-tiles {
	display: grid;
	/* Eight features: two rows of four on a wide screen. */
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: var(--avco-space-md);
}

.avco-pro-tile {
	padding: 16px;
	background: #fff;
	border: 1px solid var(--avco-color-border-light);
	border-radius: var(--avco-radius-md);
}

.avco-pro-tile__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin-bottom: 10px;
	color: #C0392B;
	background: #FDF0EE;
	border-radius: 10px;
}

.avco-pro-tile h2 {
	margin: 0 0 4px;
	padding: 0;
	font-size: 14px;
	line-height: 1.3;
	border: 0;
}

.avco-pro-tile p {
	margin: 0;
	font-size: var(--avco-font-size-sm);
	line-height: 1.45;
	color: var(--avco-color-text-light);
}

/* Before You Upgrade: three facts, one line each. */
.avco-pro-before__list {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.avco-pro-before__list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	color: var(--avco-color-text-light);
}

.avco-pro-before__list .avco-icon {
	color: var(--avco-color-text-lighter);
}

.avco-pro-before__list li.is-warning,
.avco-pro-before__list li.is-warning .avco-icon {
	color: var(--avco-color-warning-text);
}

.avco-pro-before__list li > span {
	padding-top: 1px;
}

.avco-pro-before__tips {
	margin: var(--avco-space-md) 0 0;
	padding-top: 12px;
	border-top: 1px solid var(--avco-color-border-light);
	color: var(--avco-color-text-lighter);
	font-size: var(--avco-font-size-sm);
}

@media screen and (max-width: 1100px) {
	.avco-pro-tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (max-width: 782px) {
	.avco-pro-hero {
		grid-template-columns: 1fr;
		padding: 24px;
	}

	.avco-pro-tiles {
		grid-template-columns: 1fr;
	}
}

/* ============================================
   INTEGRATION PAGE (Connect fields, 3.1)
   Builder tabs and steps, two ways to connect, field lists.
   ============================================ */
.avco-integration .avco-page-sub {
	margin: -12px 0 var(--avco-space-md);
	color: var(--avco-color-text-light);
}

.avco-integration .avco-card h2 {
	margin: 0 0 4px;
	font-size: 15px;
}

.avco-integration .avco-lead {
	margin: 0 0 var(--avco-space-md);
	color: var(--avco-color-text-light);
}

/* Elements switched by the builder choice, tabs and layout stay hidden whatever their display. */
.avco-integration [hidden] {
	display: none !important;
}

/* Card header: title on the left, an optional tool on the right; the same height on every card. */
.avco-card-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	/* Tall enough for a WordPress button (up to 40px), so headings sit at the same height on every card. */
	min-height: 40px;
	margin: 0 0 var(--avco-space-md);
}

.avco-wrap .avco-card-head h2 {
	margin: 0;
	padding: 0;
	font-size: 15px;
	line-height: 1.4;
}

.avco-card-head__tools {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.avco-card-head__tools label {
	font-weight: 600;
}

/* Card 1: one tab per form builder, sharing the card's width; the tab row's border divides it from the steps. */
.avco-btabs {
	/* Positioned, so the hidden "On This Site" labels stay inside the scrolling row on phones. */
	position: relative;
	display: flex;
	margin: calc(-1 * var(--avco-space-lg)) calc(-1 * var(--avco-space-lg)) var(--avco-space-lg);
	padding: 0 8px;
	border-bottom: 1px solid var(--avco-color-border-light);
	/* Scrolls sideways only when the tabs don't fit; never up and down. */
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: thin;
}

.avco-btabs [role="tab"] {
	position: relative;
	display: inline-flex;
	flex: 1 1 0;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: max-content;
	margin-bottom: 0;
	padding: 14px 10px 11px;
	border: 0;
	border-bottom: 3px solid transparent;
	background: none;
	color: var(--avco-color-text-light);
	font: inherit;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
}

.avco-btabs [role="tab"]:hover {
	color: var(--avco-color-text);
}

.avco-btabs [role="tab"][aria-selected="true"] {
	color: var(--avco-color-text);
	border-bottom-color: var(--avco-color-primary);
}

.avco-btabs [role="tab"]:focus-visible {
	outline: 2px solid var(--avco-color-primary);
	outline-offset: -2px;
}

/* Builder installed on this site. */
.avco-here-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--avco-color-success);
}

/* Each tab opens with its own heading and one line under it. */
.avco-integration .avco-panel-h {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
}

.avco-panel-lead {
	max-width: 62ch;
	margin: 4px 0 0;
	color: var(--avco-color-text-light);
}

.avco-tm {
	margin: var(--avco-space-md) 0 0;
	font-size: 12px;
	color: var(--avco-color-text-lighter);
}

.avco-how {
	display: grid;
	grid-template-columns: 1fr auto 1fr auto 1fr;
	align-items: center;
	gap: 12px;
}

.avco-how figure {
	display: grid;
	gap: 8px;
	justify-items: center;
	margin: 0;
	text-align: center;
}

.avco-drawing {
	width: 100%;
	max-width: 190px;
	height: auto;
}

.avco-how figcaption > strong {
	display: block;
	font-size: var(--avco-font-size-base);
}

.avco-how figcaption span {
	font-size: var(--avco-font-size-sm);
	color: var(--avco-color-text-light);
}

.avco-how__arrow {
	color: var(--avco-color-border);
	font-size: 22px;
}

.avco-tabcard {
	padding: 0;
}

.avco-ctabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 0 16px;
	border-bottom: 1px solid var(--avco-color-border-light);
}

.avco-ctabs [role="tab"] {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: -1px;
	padding: 14px 10px 11px;
	border: 0;
	border-bottom: 3px solid transparent;
	background: none;
	color: var(--avco-color-text-light);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.avco-ctabs [role="tab"]:hover {
	color: var(--avco-color-text);
}

.avco-ctabs [role="tab"][aria-selected="true"] {
	color: var(--avco-color-text);
	border-bottom-color: var(--avco-color-primary);
}

.avco-ctabs [role="tab"]:focus-visible {
	outline: 2px solid var(--avco-color-primary);
	outline-offset: -2px;
}

.avco-rec {
	padding: 1px 7px;
	border-radius: 999px;
	background: #edfaef;
	color: #00752a;
	font-size: var(--avco-font-size-xs);
}

.avco-cpanel {
	padding: 24px 24px 8px;
}

.avco-plead {
	max-width: 62ch;
	margin: 0 0 var(--avco-space-md);
}

.avco-field-row label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.avco-field-row__controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.avco-field-row__controls select {
	min-width: 260px;
	max-width: 100%;
}

/* Tab 2: steps on the left, the builder's settings drawing on the right. */
.avco-gpane {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 220px;
	gap: 24px;
	align-items: start;
	margin-top: 20px;
}

.avco-gpane .avco-drawing--setting {
	max-width: 220px;
}

.avco-nsteps {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: avco-step;
}

.avco-nsteps li {
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	margin: 0;
	counter-increment: avco-step;
}

.avco-nsteps li::before {
	content: counter(avco-step);
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--avco-color-primary);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
}

.avco-nsteps li > span {
	padding-top: 2px;
}

.avco-note {
	margin: 12px 0 0 36px;
	color: var(--avco-color-text-lighter);
	font-size: var(--avco-font-size-sm);
}

.avco-note + .avco-note {
	margin-top: 4px;
}

/* Click to Connect: the page list, the button under it. */
.avco-connect-controls {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin-top: 20px;
}

.avco-connect-controls select {
	width: 280px;
	max-width: 100%;
}

/* Manual Setup, step 2: the class names, one row per way to set up the form (One Field, Separate Fields). */
.avco-paste-wrap {
	display: grid;
	gap: 8px;
	margin-top: 8px;
}

.avco-paste {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
}

.avco-paste__layout {
	width: 110px;
	color: var(--avco-color-text-light);
	font-size: var(--avco-font-size-sm);
	font-weight: 600;
}

.avco-paste__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* A class name and its copy icon, joined in one box. */
.avco-code {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--avco-color-border-light);
	border-radius: var(--avco-radius-sm);
	background: #f6f7f7;
	overflow: hidden;
}

.avco-code code {
	padding: 2px 8px;
	background: none;
	font-size: 12.5px;
	line-height: 20px;
}

.avco-copy-icon {
	display: inline-grid;
	place-items: center;
	width: 28px;
	padding: 0;
	border: 0;
	border-left: 1px solid var(--avco-color-border-light);
	background: #fff;
	color: var(--avco-color-primary);
	cursor: pointer;
}

.avco-copy-icon:hover {
	background: #f0f6fc;
}

.avco-copy-icon:focus-visible {
	outline: 2px solid var(--avco-color-primary);
	outline-offset: -2px;
}

.avco-copy-icon__done {
	display: none;
}

.avco-copy-icon.is-copied {
	color: #00752a;
}

.avco-copy-icon.is-copied .avco-copy-icon__copy {
	display: none;
}

.avco-copy-icon.is-copied .avco-copy-icon__done {
	display: block;
}

/* Divi: the Field ID boxes inside its "type the Field ID" step. */
.avco-divi-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-top: 6px;
}

.avco-divi-form__row {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.avco-divi-form__row label {
	color: var(--avco-color-text-lighter);
	font-size: var(--avco-font-size-sm);
}

/* Connected Fields: below both tabs, no divider; one row per field, no table header. */
.avco-cfields {
	padding: 32px 24px 16px;
}

.avco-cfields h3 {
	margin: 0;
	font-size: var(--avco-font-size-base);
	font-weight: 600;
}

.avco-count {
	font-weight: 400;
	color: var(--avco-color-text-lighter);
}

.avco-cfields .avco-empty {
	margin: 8px 0 0;
}

.avco-frows {
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.avco-frow {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 12px 0;
	border-top: 1px solid var(--avco-color-bg);
}

.avco-frow[hidden] {
	display: none;
}

.avco-frow__main {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	font-size: 12.5px;
}

.avco-frow__name {
	display: flex;
	align-items: center;
	gap: 8px;
}

.avco-frow__name strong {
	font-weight: 600;
	overflow-wrap: anywhere;
}

.avco-frow__meta {
	color: var(--avco-color-text-lighter);
	overflow-wrap: anywhere;
}

.avco-frow__meta a {
	color: var(--avco-color-text-light);
}

/* Status dot beside the field name: working, not checked yet, not found. Its words are in a screen-reader-text span and the title. */
.avco-sdot {
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

.avco-sdot--ok {
	background: #00752a;
}

.avco-sdot--wait {
	background: var(--avco-color-text-lighter);
}

.avco-sdot--no {
	background: #b32d2e;
}

.avco-frow .button-link {
	flex: none;
	font-size: 12.5px;
	text-decoration: none;
}

.avco-frow .avco-disconnect {
	color: #b32d2e !important;
}

.avco-frow .avco-go-manual {
	color: var(--avco-color-text);
}

.avco-frow .button-link:hover,
.avco-frow .button-link:focus {
	text-decoration: underline;
}

.avco-frows-more {
	margin: 4px 0 0;
}

.avco-tbl-wrap {
	overflow-x: auto;
}

.avco-role {
	display: inline-block;
	padding: 2px 8px;
	border: 1px solid #c5d9ed;
	border-radius: 999px;
	background: #f0f6fc;
	color: var(--avco-color-primary-hover);
	font-size: 12px;
	white-space: nowrap;
}

.avco-role--plain {
	border-color: var(--avco-color-border-light);
	background: #f6f7f7;
	color: var(--avco-color-text-light);
}

.avco-fstatus {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: var(--avco-font-size-sm);
	white-space: nowrap;
}

.avco-dot {
	display: inline-block;
	flex: none;
	width: 9px;
	height: 9px;
	border-radius: 50%;
}

.avco-fstatus--ok .avco-dot {
	background: var(--avco-color-success);
}

.avco-fstatus--no {
	color: var(--avco-color-error);
}

.avco-fstatus--no .avco-dot {
	border: 2px solid var(--avco-color-error);
}

.avco-fstatus--wait {
	color: var(--avco-color-text-lighter);
}

.avco-fstatus--wait .avco-dot {
	border: 2px dashed var(--avco-color-text-lighter);
}

.avco-disconnect {
	color: var(--avco-color-error) !important;
}

.avco-inline-note {
	margin-top: 12px;
	padding: 2px 12px;
	border-left: 4px solid var(--avco-color-error);
	background: #fcf0f1;
}

.avco-check-line {
	margin: 16px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--avco-color-border-light);
	color: var(--avco-color-text-light);
	font-size: var(--avco-font-size-sm);
}

.avco-empty {
	margin: 0;
	color: var(--avco-color-text-light);
}

/* Availability page: where the rules are used, and what Basic does not do */
.avco-used-by {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border: 1px solid var(--avco-color-border-light);
	border-radius: 999px;
	background: #f6f7f7;
	font-size: var(--avco-font-size-sm);
}

.avco-basic-limit {
	margin: 10px 0 0;
	color: var(--avco-color-text-light);
	font-size: var(--avco-font-size-sm);
}

@media (max-width: 900px) {
	.avco-gpane {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 782px) {
	/* Availability, Custom Availability: a date row wraps instead of widening the page. */
	.date-override-row {
		flex-wrap: wrap;
	}

	.date-override-row input[type="date"] {
		flex: 1 1 100%;
		width: 100% !important;
		max-width: 100% !important;
	}

	.avco-cfields {
		padding: 24px 16px 16px;
	}

	.avco-how {
		grid-template-columns: 1fr;
	}

	.avco-how__arrow {
		justify-self: center;
		transform: rotate(90deg);
	}

	.avco-how figure {
		grid-template-columns: 110px minmax(0, 1fr);
		justify-items: start;
		align-items: center;
		text-align: left;
	}

	.avco-cpanel {
		padding: 16px;
	}


	.avco-ctabs {
		padding: 0 6px;
	}
}

/* Support tabs on small screens: share the row and wrap instead of pushing the page sideways. */
@media screen and (max-width: 782px) {
	.avco-tabs-wrapper .avco-tab {
		min-width: 0;
		flex: 1 1 auto;
		padding: 10px 12px;
	}
}
