div.wpspeed-header {
    padding-left: 70px;
    position: relative;
    margin: 30px 0 30px;
    height: 48px;
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
}

div.wpspeed-header::before {
    background: #f6f6f6 url(../images/wpspeed-logo.png) repeat-y;
	content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 64px;
    height: 64px;
    background-position: 0;
    background-repeat: no-repeat;
    background-size: contain;
}

/* Titolo */
.wpspeed-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0a0641;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
}

/* Version badge */
.wpspeed-header h1 span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2563eb;
  background: #eff6ff;
  padding: 4px 10px;
  border-radius: 9999px; /* pill shape */
  border: 1px solid #bfdbfe;
}

div.wpspeed-header div.notice {
	flex: 1 1 auto;
    margin: 0;
}

div.wpspeed-header div.notice.notice-info:not(.wpspeed-notice),
div.wpspeed-header div:not(#setting-error-settings_updated):not(.wpspeed-notice) {
	display: none !important;
}

#wpspeed-settings-form div.grid {
	gap: 0;
}

#wpspeed-settings-form ul.nav {
	border-bottom: 1px solid #2c3338;
}

#wpspeed-settings-form ul.nav li {
	margin-bottom: 0;
	border-top: 1px solid #f0f0f1;
}

div.title:hover > div.description {
    z-index: 100;
    box-sizing: content-box;
}

div.description {
    display: inline-block;
    width: 15px;
    height: 15px;
    position: relative;
    z-index: 1;
    margin-left: 6px;
}

div.description:hover > div:hover, div.description > div {
    width: 301px;
    background: #f6f6f6 url(../images/bkg_tooltip_left.png) repeat-y;
    opacity: 0;
    position: absolute;
    z-index: 999;
    left: -10px;
    bottom: 28px;
    padding: 5px 12px;
    color: #464d50;
    visibility: hidden;
}

div.description > div:before {
    position: absolute;
    top: -5px;
    left: 0;
    content: '';
    width: 325px;
    height: 5px;
    overflow: hidden;
    background: url(../images/bkg_tooltip_left.png) no-repeat -650px 0;
}

div.description > div:after {
    position: absolute;
    bottom: -14px;
    left: 0;
    content: '';
    width: 325px;
    height: 14px;
    overflow: hidden;
    background: url(../images/bkg_tooltip_left.png) no-repeat -324.5px 0;
}

div.description p {
    font-size: 14px;
    margin: 0.5em 0 1em;
    word-break: break-word;
}

.sticky-wp {
    position: fixed;
    top: 65px;
}

.wpspeed-group {
    border: 1px #ccc solid;
    padding: 0 10px 25px;
    background-color: #fff;
    margin: 14px 20px 30px 10px;
}

.wpspeed-group fieldset {
    background-color: #fdfdfd !important;
    /*   display: inline-block; */
    margin-right: 10px;
}

.wpspeed-group legend {
    margin-bottom: 10px;
    background-color: #3f3f3f;
    color: #fff;
    padding: 6px 12px;
    font-size: 15px;
    line-height: 15px;
}

.wpspeed-group td > div.settingdesc,
p.setting-header-description {
    margin-top: 15px;
    color: #9199A6;
}

.wpspeed-group .form-table th {
    padding: 20px 20px 5px 0;
    font-weight: 300;
    width: auto;
}

.wpspeed-group input[type=text] {
    padding: 0px 10px;
    border: 1px solid #cacaca;
}

.wpspeed-group select,
.wpspeed-group textarea {
    border: 1px solid #cacaca;
}

.wpspeed-group input[type=text],
.wpspeed-group textarea {
	max-width: 100%;
}

.wpspeed-group .form-table td {
    padding: 5px 10px;
}

h4.setting-header {
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 16px;
}

#files-container ul li.file:nth-child(odd),
#files-container ul li.file:nth-child(odd) input[type=text] {
    background-color: #fdfdfd;
}

#files-container ul li.file:nth-child(even),
#files-container ul li.file:nth-child(even) input[type=text] {
    background-color: #f1f1f1;
}

.wrap a:focus {
    box-shadow: none;
}

/**
Checkboxes
 */

.wpspeed-wp-checkboxes-grid-wrapper fieldset > ul {
    padding: 0;
    margin: 0;
    display: grid;
}

.wpspeed-wp-checkboxes-grid-wrapper fieldset > ul li input {
    margin: 0;

}

.wpspeed-wp-checkboxes-grid-wrapper.columns-4 fieldset > ul {
    width: 250px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.wpspeed-wp-checkboxes-grid-wrapper.columns-5 fieldset > ul {
    width: 320px;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

.wpspeed-wp-checkboxes-grid-wrapper.width-400 fieldset > ul {
    width: 400px !important;
}

/**
grid
 */

.row {
    margin-bottom: 30px;
}

h3.popover-header {
    margin: 0;
}

input[value="1"].btn-check:checked + .btn-outline-secondary {
    background-color: var(--bs-success);
    border-color: var(--bs-success);
}

input[value="0"].btn-check:checked + .btn-outline-secondary {
    background-color: var(--bs-danger);
    border-color: var(--bs-danger);
}

.btn-check + .btn-outline-secondary:hover {
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
}

#help-section .card {
    font-size: 16px;
    line-height: 24px;
    max-width: 100%;
    padding: 0;
}

#help-section .card p {
    font-size: 16px;
}

#help-section .card ol {
    margin-left: 0;
}

#help-section .card .img-thumbnail {
    box-sizing: border-box;
    border-radius: 0;
}

/**
  Form
 */
#wpspeed-settings-form ul.nav-pills li.nav-item a{
	position: relative;
    background-color: #2c3338;
    color: #FFF;
    border-radius: 0;
    border-left: 4px solid #2c3338;
    padding: .9rem .8rem .9rem 3rem;
    line-height: 1.5em;
}

#wpspeed-settings-form ul.nav-pills li.nav-item a:hover:not(.active){
    color: #72aee6;
    border-left: 4px solid #72aee6;
}

#wpspeed-settings-form ul.nav-pills li.nav-item a.active {
    background-color: #2271b1;
    border-left: 4px solid #2271b1;
}

#wpspeed-settings-form ul.nav-pills li.nav-item:first-child a.active {
	border-left: 4px solid #2271b1;
}

#wpspeed-settings-form ul.nav-pills li.nav-item a small{
    float: none;
    width: fit-content;
}

@media (max-width: 768px) {
	li.nav-item {
		width: 100%;	
	}
	#wpspeed-settings-form ul.nav-pills li.nav-item a {
		width: auto;
	}
}


/**
 * Utility
 */
div.savebtn.icon p {
    text-decoration: none;
    padding: 10px 10px 10px 0;
    line-height: 13px;
    box-sizing: content-box;
    margin: 0;
}

div.savebtn.icon p input {
    padding: 10px;
    line-height: 14px;
	border: 2px solid #f0f0f1;
    outline: 2px solid #2271b1
}

*.clearfix-both {
	clear: both;
}

/**
 * Admin side
 */
#optimize-log {
	border: 1px #CCC solid;
	list-style-type: none;
	padding: 10px;
	margin: 10px;
	overflow-y: auto;
	height: 300px;
}

#optimize-log li {
	font-size: 11px;
}

#optimize-status {
	padding: 7px;
	font-size: 12px;
	font-style: italic;
}

.collapsible h3 span {
	margin-left: 10px;
}

.collapsible.collapse-open h3 span:before {
	content: "\f151"
}

.collapsible.collapse-close h3 span:before {
	content: "\f150"
}

.form-horizontal .control-label .spacer hr {
	margin: 0 0 15px !important;
}

.admin-panel-block {
	padding: 40px 30px;
	border: solid 1px #d4d9d0;
	border-radius: 10px;
	background-color: #fff;
}

/* Ribbon container centrato e sticky */
.icons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 20px 0;
    padding: 12px 20px;
    max-width: fit-content;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .05);
    position: sticky;
    top: 60px;
    z-index: 20;
}

.icons-container .icon {
	margin: 0;
}

/* Singolo pulsante */
.icons-container .icon a.btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 90px;
  background: #f9fafb;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #e5e7eb;
  transition: all .25s ease;
  font-weight: 500;
  color: #374151;
}

/* Icone */
.icons-container .icon a.btn span.fas {
  font-size: 22px;
  margin-bottom: 6px;
  color: #3b82f6;
  transition: color .25s ease;
}

/* Hover */
.icons-container .icon a.btn:hover {
  transform: translateY(-3px) scale(1.03);
  background: linear-gradient(145deg, #3b82f6, #06b6d4);
  color: #fff;
  box-shadow: 0 6px 12px rgba(59,130,246,.25);
}

.icons-container .icon a.btn:hover span.fas {
  color: #fff;
}

/* Variante danger (per Clear Cache) */
.icons-container .icon#clear-cache a.btn:hover {
  background: linear-gradient(145deg, #ef4444, #f59e0b);
  box-shadow: 0 6px 12px rgba(239,68,68,.25);
}

/** New icons **/
div.icon {
	position: relative;
	margin: 0 12px 0 0;
	text-align: center;
}

div.icon a {
	text-decoration: none;
	padding: 10px;
	line-height: 13px;
	box-sizing: content-box;
}

div.icon p.submit {
	margin-bottom: 20px;
}

div.g-col-lg-10 div.icon p.submit {
	margin-left: 10px;
}

div.icon span.fig-caption {
	line-height: 1em;
	display: inline-block;
	z-index: 100;
	pointer-events: all;
}

div.icon span.fas {
	display: inline-block;
}

/** Popovers **/
.popover h4.list-header {
	font-weight: 500;
	margin: 0 0 1em 0;
	position: relative;
	z-index: 1;
	overflow: hidden;
	text-align: center;
}

.popover h4.list-header:before, .popover h4.list-header:after {
	position: absolute;
	top: 51%;
	overflow: hidden;
	width: 50%;
	height: 1px;
	content: '\a0';
	background-color: #ccc;
	margin-left: 20px;
}

.popover h4.list-header:before {
	margin-left: -60%;
	text-align: right;
}

.popover ul {
	min-width: 200px;
}

.popover li {
	margin: 0;
	display: flex;
	justify-content: space-between;
}

.popover i {
	margin: auto 0;
}

div.popover.bs-popover-bottom {
	z-index: 99999;	
}

span.select2-container {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
}

select.wpspeed-native-multiselect {
	border: 1px solid #cdcdcd;
    border-radius: 0.25rem;
    color: #212529;
    display: block;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    padding: 0.5rem 0.5rem 0.5rem 0.5rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    width: 300px;
    height: 150px !important;
}

img.wpspeed-multiselect-loading-image {
	width: 16px;
	height: 16px;
}

span.jspeed-checker{
    font-size: 12px;
    line-height: normal;
}

@media(max-width: 767px) {
	.wpspeed-group .form-table td {
		padding: 0;
	}

	#wpspeed-settings-form ul.nav li {
		border-bottom: 1px solid #f0f0f1;
	}
	
	#wpspeed-settings-form ul.nav-pills li.nav-item a {
		border-left: none;
	}
	
	div.title > div.description > div,
	div.title:hover > div.description > div  {
	    width: auto;
	    min-width:100px;
	    max-width: 150px;
	    background: #FAFAFA;
	    border-radius: 5px;
	    border: 1px solid #CCC;
	    left: -50px;
	}
	
	div.description > div::before,
	div.description > div::after {
		background: none;
		content: '';
		width: 0;
	}
}

/** =========================
 *  WPSpeed Settings Styling
 *  ========================= */
div.icons-container div.wpspeed-stats {
	display: none;
}

.wpspeed-stats {
  display: flex;
  gap: 20px;
}

.stats-th {
	margin-bottom: 20px;
}

.stat-card {
  flex: 1;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Label stile pillola comune */
.stat-card h4 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 5px 14px;
  background: #ebf4ff;
  border-radius: 9999px;
  font-size: 0.85em;
  font-weight: 600;
  color: #2563eb;
  transition: background 0.3s ease, color 0.3s ease;
}

.stat-card:hover h4 {
  background: #2563eb;
  color: #fff;
}

.stat-card h4::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: filter 0.3s ease;
}

/* Cache files → icona "cartella" */
.stat-card:first-child h4::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%232563eb' viewBox='0 0 24 24'%3E%3Cpath d='M10 4H2v16h20V6H12l-2-2z'/%3E%3C/svg%3E");
}

/* Cache size → icona "hard disk" */
.stat-card:last-child h4::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%232563eb' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16v16H4V4zm2 2v12h12V6H6zm2 10h8v-2H8v2z'/%3E%3C/svg%3E");
}

/* Inverti icona su hover */
.stat-card:hover h4::before {
  filter: brightness(0) invert(1);
}

.circle {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 10px;
}

.circle svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

circle.bg {
  fill: none;
  stroke: #e5e7eb;
  stroke-width: 12;
}

circle.progress {
  fill: none;
  stroke: url(#grad1);
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dasharray 1.5s ease;
}

.circle-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 22px;
  font-weight: bold;
  color: #111827;
}

/* Scope: fieldset gruppo impostazioni */
.wpspeed-group .form-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

/* Ogni riga diventa un box */
.wpspeed-group .form-table > tbody > tr {
  display: block;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 14px 0;
  box-shadow: 0 1px 1px rgba(0,0,0,.03);
}

@media(min-width: 1600px) {
	.wpspeed-group .form-table > tbody > tr {
		max-width: 50%;
	}
}

/* Colonna titolo/descrizione */
.wpspeed-group .form-table th {
	display: flex;
    padding: 0;
    border: 0;
    background: transparent;
    align-items: baseline;
}
.wpspeed-group .form-table .title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 6px 0;
}

/* Descrizione e icona info */
.wpspeed-group .form-table .description {
  display: inline-block;
  font-weight: 400;
  color: #6b7280;
  margin-top: 4px;
}
.wpspeed-group .form-table .description .fa-info-circle {
  color: #9ca3af;
  margin-right: 6px;
}
.wpspeed-group .form-table .description p {
  display: inline;
  margin: 0;
  max-width: 900px;
  white-space: normal;
}

/* Colonna input sotto al titolo */
.wpspeed-group .form-table td {
  display: block;
  padding: 10px 0 0 0;
  border: 0;
}

/* ==============================
   Switcher stile WP Compress
   ============================== */
.form-table .btn-group.wpswitch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

/* nascondi radio */
.form-table .btn-group.wpswitch input.btn-check {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* label cliccabili ma invisibili */
.form-table .btn-group.wpswitch label.btn {
  position: absolute;
  top: 0;
  width: 50%;
  height: 30px;
  cursor: pointer;
  border: 0;
  background: transparent;
  text-indent: -9999px;
}
.form-table .btn-group.wpswitch label[for$="0"] { left: 0; }
.form-table .btn-group.wpswitch label[for$="1"] { left: 50%; }

/* pista */
.form-table .btn-group.wpswitch::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #eef3f8;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
  transition: background .25s ease;
}

/* manopola */
.form-table .btn-group.wpswitch::after {
  content: '✕';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #c5cfda;
  color: #fff;
  font-size: 14px;
  line-height: 24px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
  transition: left .25s ease, background .25s ease;
}

/* stato ON (aggiunto via JS) */
.form-table .btn-group.wpswitch.on::before {
  background: #e7f1ff;
}
.form-table .btn-group.wpswitch.on::after {
  left: 33px;
  background: #4e8ef7;
  content: '✓';
}

/* rimuovi residui bootstrap */
.form-table .btn-group.wpswitch label.btn.btn-outline-secondary {
  border: 0 !important;
  background: transparent !important;
  color: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Leds */
div.circle-check {
    margin-right: 8px;
    color: #A0AAB6;
    transform: scale(.9);
    transition: all 250ms cubic-bezier(.4, 0, .23, 1);	
}

div.circle-check::before {
    display: inline-block;
    content: '';
    width: 10px;
    height: 10px;
    background: #A0AAB6;
    border-radius: 100%;
    animation: pushEffect 0.2s ease-out;
}

div.circle-check.active::before {
    animation: popEffect 0.3s ease-out;
    background: #5CB1FF;
}

@keyframes popEffect {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  70% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pushEffect {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  70% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}


/** Settings icons */
#wpspeed-settings-form a.nav-link::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 0;
  width: 48px;
  height: 48px;
  background-repeat: no-repeat;
  background-size: 24px 24px;
  background-position: center;
  transition: all .2s ease-out;
}

#wpspeed-settings-form a[href*="autoconfiguration-tab"]::before {
	background-image: url(../images/sidebar/auto-configuration.svg);
}

#wpspeed-settings-form a[href*="general-tab"]::before {
	background-image: url(../images/sidebar/general.svg);
}

#wpspeed-settings-form a[href*="assets-inclusions"]::before {
	background-image: url(../images/sidebar/assets-inclusions.svg);
}

#wpspeed-settings-form a[href*="assets-exclusions"]::before {
	background-image: url(../images/sidebar/assets-exclusions.svg);
}

#wpspeed-settings-form a[href*="lazy-load-tab"]::before {
	background-image: url(../images/sidebar/lazy-load.svg);
	left: -2px;
	top: -2px;
}

#wpspeed-settings-form a[href*="optimize-image-tab"]::before {
	background-image: url(../images/sidebar/optimize-images.svg);
}

#wpspeed-settings-form a[href*="adaptive-contents-tab"]::before {
	background-image: url(../images/sidebar/adaptive-contents.svg);
}

#wpspeed-settings-form a[href*="page-cache-tab"]::before {
	background-image: url(../images/sidebar/page-cache.svg);
}

#wpspeed-settings-form a[href*="remove-tab"]::before {
	background-image: url(../images/sidebar/assets-management.svg);
}

#wpspeed-settings-form a[href*="http2-tab"]::before {
	background-image: url(../images/sidebar/http2.svg);
}

#wpspeed-settings-form a[href*="media-tab"]::before {
	background-image: url(../images/sidebar/combine-images.svg);
}

#wpspeed-settings-form a[href*="cdn-tab"]::before {
	background-image: url(../images/sidebar/cdn.svg);
}

#wpspeed-settings-form a[href*="miscellaneous-tab"]::before {
	background-image: url(../images/sidebar/advanced.svg);
}

#wpspeed-settings-form a.nav-link.active::after {
    right: 0;
    border: solid 8px transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-right-color: #f0f0f1;
    top: 50%;
    margin-top: -8px;
}

.wpspeed-group .wpspeed-group-header {
  position: relative;
  padding-left: 60px; /* spazio per l'icona */
  margin-bottom: 12px;
  margin-left: 10px;
}

.wpspeed-group .wpspeed-group-header::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 0;
  width: 48px;
  height: 48px;
  background-repeat: no-repeat;
  background-size: 48px 48px;
  background-position: center;
  transition: all .2s ease-out;
}

.wpspeed-group .wpspeed-group-header:hover::before {
  transform: scale(1.1);
}

.wpspeed-group .autoconfiguration::before {
  background-image: url(../images/optimization-level.svg);
}

.wpspeed-group .general::before {
  background-image: url(../images/icon-exclude-list.svg);
}

.wpspeed-group .minifyassets::before {
  background-image: url(../images/tab-icon.svg);
}

.wpspeed-group .combineassets::before {
  background-image: url(../images/tab-icon.svg);
}

.wpspeed-group .optimizationsettings::before {
  background-image: url(../images/optimization-level.svg);
}

.wpspeed-group .includeassets::before {
  background-image: url(../images/tab-icon.svg);
}

.wpspeed-group .excludecss::before {
  background-image: url(../images/css-icon.svg);
}

.wpspeed-group .excludejsorder::before {
  background-image: url(../images/js-icon.svg);
}

.wpspeed-group .excludejswithoutorder::before {
  background-image: url(../images/js-icon.svg);
}

.wpspeed-group .excludeurls::before {
  background-image: url(../images/icon-exclude-list.svg);
}

.wpspeed-group .keeporiginalposition::before {
  background-image: url(../images/tab-icon.svg);
}

.wpspeed-group .lazyload::before {
  background-image: url(../images/lazyload.svg);
}

.wpspeed-group .lazyloadhtml::before {
  background-image: url(../images/htmlcode.svg);
}

.wpspeed-group .optimizeimages::before {
  background-image: url(../images/optimize-images.svg);
}

.wpspeed-group .srcsetmanage::before {
  background-image: url(../images/srcset.svg);
}

.wpspeed-group .adaptive::before {
  background-image: url(../images/adaptive.svg);
}

.wpspeed-group .pagecache::before {
  background-image: url(../images/general.svg);
}

.wpspeed-group .instantpage::before {
  background-image: url(../images/instantpage.svg);
}

.wpspeed-group .removecssfiles::before {
  background-image: url(../images/css-icon.svg);
}

.wpspeed-group .removejsfiles::before {
  background-image: url(../images/js-icon.svg);
}

.wpspeed-group .addcustomjs::before {
  background-image: url(../images/htmlcode.svg);
}

.wpspeed-group .addcustomcss::before {
  background-image: url(../images/htmlcode.svg);
}

.wpspeed-group .http2::before {
  background-image: url(../images/http2.svg);
}

.wpspeed-group .mediacombinesettings::before {
  background-image: url(../images/optimize-images.svg);
}

.wpspeed-group .cdntab::before {
  background-image: url(../images/cdn.svg);
}

.wpspeed-group .advancedtab::before {
  background-image: url(../images/extract.svg);
}

.wpspeed-group .reducedom::before {
  background-image: url(../images/reduce.svg);
}

.wpspeed-group .advancedsettings::before {
  background-image: url(../images/ux-settings.svg);
}

.select2-container--default .select2-selection--multiple {
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  min-height: 50px;
  align-items: center;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.select2-container--default .select2-selection--multiple:focus,
.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: #f0f7ff;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  padding: 6px 12px;
  margin: 4px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  max-width: -webkit-fill-available;
  overflow: hidden;
  align-items: center;
  transition: all 0.2s ease;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice:hover {
  background: #e0f2fe;
  border-color: #60a5fa;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    margin-right: 6px;
    color: #ffffff;
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
    transition: color 0.2s;
    background: #4e8ef7;
    padding: 3px;
    width: 10px;
    height: 10px;
    display: inline-block;
    line-height: 9px;
    border-radius: 50%;
    text-align: center;
    font-family: "Open Sans", sans-serif;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  background: #2a6edc;
  color: #FFF;
}

.select2-container--default .select2-selection--multiple .select2-search {
  flex: 1;
  min-width: 60px;
}

.select2-container--default .select2-selection--multiple .select2-search__field {
  padding-left: 5px;
}

.select2-container--default .select2-results>.select2-results__options {
    overflow-x: hidden;
}

body[class*="branch-7"] .bg-primary,
body[class*="branch-8"] .bg-primary,
body[class*="branch-9"] .bg-primary,
body[class*="branch-7"] #rangecontainer span.innerlabel.badge.bg-primary,
body[class*="branch-7"] #optimizationslist span.badge.bg-primary,
body[class*="branch-8"] #rangecontainer span.innerlabel.badge.bg-primary,
body[class*="branch-8"] #optimizationslist span.badge.bg-primary,
body[class*="branch-9"] #rangecontainer span.innerlabel.badge.bg-primary,
body[class*="branch-9"] #optimizationslist span.badge.bg-primary,
body[class*="branch-7"] #wpspeed-settings-form ul.nav-pills li.nav-item:first-child a.active,
body[class*="branch-7"] #wpspeed-settings-form ul.nav-pills li.nav-item a.active,
body[class*="branch-8"] #wpspeed-settings-form ul.nav-pills li.nav-item:first-child a.active,
body[class*="branch-8"] #wpspeed-settings-form ul.nav-pills li.nav-item a.active,
body[class*="branch-9"] #wpspeed-settings-form ul.nav-pills li.nav-item:first-child a.active,
body[class*="branch-9"] #wpspeed-settings-form ul.nav-pills li.nav-item a.active {
	background-color: #3858e9 !important;
}

body[class*="branch-7"] #wpspeed-settings-form ul.nav-pills li.nav-item:first-child a.active,
body[class*="branch-7"] #wpspeed-settings-form ul.nav-pills li.nav-item a.active,
body[class*="branch-8"] #wpspeed-settings-form ul.nav-pills li.nav-item:first-child a.active,
body[class*="branch-8"] #wpspeed-settings-form ul.nav-pills li.nav-item a.active,
body[class*="branch-9"] #wpspeed-settings-form ul.nav-pills li.nav-item:first-child a.active,
body[class*="branch-9"] #wpspeed-settings-form ul.nav-pills li.nav-item a.active,

body[class*="branch-7"] #wpspeed-settings-form ul.nav-pills li.nav-item a:hover:not(.active),
body[class*="branch-8"] #wpspeed-settings-form ul.nav-pills li.nav-item a:hover:not(.active),
body[class*="branch-9"] #wpspeed-settings-form ul.nav-pills li.nav-item a:hover:not(.active) {
	border-left: 4px solid #3858e9;
}

body[class*="branch-7"] #wpspeed-settings-form ul.nav-pills li.nav-item a,
body[class*="branch-8"] #wpspeed-settings-form ul.nav-pills li.nav-item a,
body[class*="branch-9"] #wpspeed-settings-form ul.nav-pills li.nav-item a {
	border-left: 4px solid #0c0c0c;
}

body[class*="branch-7"] #wpspeed-settings-form ul.nav-pills li.nav-item a,
body[class*="branch-8"] #wpspeed-settings-form ul.nav-pills li.nav-item a,
body[class*="branch-9"] #wpspeed-settings-form ul.nav-pills li.nav-item a {
    background-color: #0c0c0c;
}

body[class*="branch-7"] div.savebtn.icon p input,
body[class*="branch-8"] div.savebtn.icon p input,
body[class*="branch-9"] div.savebtn.icon p input {
    outline: 2px solid #3858e9;
}


body[class*="branch-7"] .form-table .btn-group.wpswitch.on::after,
body[class*="branch-8"] .form-table .btn-group.wpswitch.on::after,
body[class*="branch-9"] .form-table .btn-group.wpswitch.on::after,
body[class*="branch-7"] div.circle-check.active::before,
body[class*="branch-8"] div.circle-check.active::before,
body[class*="branch-9"] div.circle-check.active::before {
	background: #3858e9;
}

body[class*="branch-7"] a#pagespeed-test,
body[class*="branch-8"] a#pagespeed-test,
body[class*="branch-9"] a#pagespeed-test {
	background-color: #3858e9 !important;
	border-color: #3858e9;
}

body[class*="branch-7"] .select2-container--default .select2-selection--multiple .select2-selection__choice__remove,
body[class*="branch-8"] .select2-container--default .select2-selection--multiple .select2-selection__choice__remove,
body[class*="branch-9"] .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    background: #3858e9;
}

body[class*="branch-7"] .select2-container--default .select2-results__option--highlighted[aria-selected],
body[class*="branch-8"] .select2-container--default .select2-results__option--highlighted[aria-selected],
body[class*="branch-9"] .select2-container--default .select2-results__option--highlighted[aria-selected] {
	background-color: #3858e9;
}

body[class*="branch-7"] .select2-container--default .select2-selection--multiple:focus, .select2-container--default.select2-container--focus .select2-selection--multiple,
body[class*="branch-8"] .select2-container--default .select2-selection--multiple:focus, .select2-container--default.select2-container--focus .select2-selection--multiple,
body[class*="branch-9"] .select2-container--default .select2-selection--multiple:focus, .select2-container--default.select2-container--focus .select2-selection--multiple {
	border-color: #3858e9;
}