
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
	height: auto;
}

#visualizer-icon {
	background-image: url("../images/icon.png");
}

.visualizer-clearfix {
	*zoom: 1;
}

.visualizer-clearfix:before,
.visualizer-clearfix:after {
	display: table;
	line-height: 0;
	content: "";
}

.visualizer-clearfix:after {
	clear: both;
}

#visualizer-types {
	margin: 20px 0 10px;
}

.visualizer-list-item .visualizer-pro-only {
	text-decoration: line-through;
}
#visualizer-content-wrapper {
    padding: 0;
}

.visualizer-banner {
	margin: 40px 0;
}

#visualizer-library {
	width: auto;
	margin: 20px -10px;
    display: flex;
    flex-wrap: wrap;
}

#visualizer-library.visualizer-clearfix:before,
#visualizer-library.visualizer-clearfix:after {
    display: none;
}

#visualizer-content-wrapper {
	width: 100%;
}

.loader {
	position: absolute;
	top: 50%;
	left: 50%;
	margin-top: -16px;
	margin-left: -16px;
}
#visualizer-library .items {
    padding: 0 10px;
    width: 33.3333%;
}

.visualizer-chart {
	margin: 0 0px 24px 0;
	padding: 5px;
	border: 1px solid #ddd;
	background-color: #efefef;
	box-shadow: 0 0 8px #ddd;
}
.visualizer-chart-canvas {
	position: relative;
	width: 30%;
	height: 18.75%;
	border: 1px solid #ddd;
	background-color: white;
}

.visualizer-nochart-canvas {
	background-image: url("../images/notfound.png?v=4");
	background-repeat: repeat;
}

.visualizer-notfound {
	position: absolute;
	top: 50%;
	right: 0;
	left: 0;
	margin-top: -7px;
	font-size: 14px;
	font-weight: bold;
	text-align: center;
}

.visualizer-action-group{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
}

.visualizer-chart-action {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 2px 0 0;
	border-radius: 100%;
	text-decoration: none;
	color: #3F3F3F;
}

.visualizer-chart-action .tooltip-text {
  visibility: hidden;
  opacity: 0;
  background-color: #3F3F3F;
  color: #fff;
  text-align: center;
  padding: 5px 14px;
  position: absolute;
  border-radius: 2px;
  font-size: 12px;
  line-height: 14px;
  z-index: 1;
  white-space: nowrap;
  left: 50%;
  top: calc(100% + 9px);
  transform: translate(-50%, 0);
  transition: all .3s ease-in-out;
}
.visualizer-chart-action:focus {
	border: none;
	box-shadow: none;
}
.visualizer-chart-action .tooltip-text::before {
  content: '';
  position: absolute;
  display: block;
  width: 0px;
  left: 50%;
  top: 0;
  border: 10px solid transparent;
  border-top: 0;
  border-bottom: 10px solid #3F3F3F;
  transform: translate(-50%, -8px);
}
.visualizer-chart-action:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}
.visualizer-chart-action .dashicons{
	width: 16px;
	height: 16px;
	font-size: 16px;
}
.visualizer-chart-action .visualizer-action-label {
	font-size: 12px;
	line-height: 1;
}
.visualizer-action-group:not(.visualizer-nochart) .visualizer-chart-action:hover,
.visualizer-action-group:not(.visualizer-nochart) .visualizer-chart-action:focus {
	color: #3F3F3F;
	background: #ffffff;
}

.visualizer-chart-action.visualizer-chart-edit,
.visualizer-chart-action.visualizer-nochart-edit {
	margin-right: auto;
	width: auto;
	height: auto;
	padding: 0 10px;
	gap: 6px;
}
.visualizer-chart-action.visualizer-chart-edit .dashicons,
.visualizer-chart-action.visualizer-nochart-edit .dashicons {
	margin-right: 0;
	line-height: 1;
}
.visualizer-chart-action.visualizer-chart-edit .tooltip-text {
	display: none;
}
.visualizer-action-group:not(.visualizer-nochart) .visualizer-chart-action.visualizer-chart-delete:hover,
.visualizer-action-group:not(.visualizer-nochart) .visualizer-chart-action.visualizer-nochart-delete:hover {
	color: #DA1E28;
}

.visualizer-nochart-clone,
.visualizer-nochart-delete,
.visualizer-nochart-shortcode,
.visualizer-nochart-export,
.visualizer-nochart-image,
.visualizer-nochart-edit {
	opacity: 0.5;

	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
	filter: alpha(opacity=50);
}

.visualizer-chart-footer {
	margin-top: 4px;
    width: 100%;
}

.visualizer-list-item {
	float: left;
	margin-right: 20px;
}

#visualizer-search form {
	text-align: right;
}

.visualizer-sidebar-box {
    display: block;
    padding: 30px 34px;
    background: white;
}

.visualizer-sidebar-box h3{
    padding: 0;
    margin: 0 0 20px;
    display: block;
    width: 100%;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

.visualizer-sidebar-box ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.visualizer-sidebar-box ul li {
	color: #000;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    position: relative;
    padding-left: 26px;
}

.visualizer-sidebar-box ul li .icon{
    color: #00AA63;
    width: 16px;
    height: 16px;
    margin-top: 3px;
    position: absolute;
    left: 0;
    top: 3px;
}
.visualizer-sidebar-box .button {
    width: 155px;
    height: 39px;
    background: #007CBA;
    border-radius: 4px;
    display: flex;
    align-items: center;
    text-align: center;
    color: #FFFFFF;
    justify-content: center;
}
.visualizer-sidebar-box .button.button-secondary{
	background: #ffffff;
	color: #007CBA;
}
.visualizer-sidebar-box .we-offer{
    background-color: transparent;
    color: #007CBA;
    font-weight: 400;
    padding: 0px;
    font-size: 14px;
    font-style: italic;
    margin-bottom: 0;
}
.visualizer-sidebar-box .help-us-improve{
    display: none;
}
.visualizer-chart.viz-pro {
    padding: 0;
}
.two-col .viz-pro .two-columns{
    padding: 0;
    border: 1px solid #DDDDDD;
    border: 5px solid #007CBA;
}
#visualizer-library .items.two-col {
    width: 66.6666%;
}


/* The switch - the box around the slider */
.visualizer-switch {
	display: inline-block;
	position: relative;
	width: 30px;
	height: 18px;
}

/* Hide default HTML checkbox */
.visualizer-switch input {
	display: none;
}

/* The slider */
.visualizer-tracking sup {
	vertical-align: 3px;
}

.visualizer-slider {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: #ccc;
	cursor: pointer;
	-webkit-transition: 0.4s;
	transition: 0.4s;
}

.visualizer-slider:before {
	position: absolute;
	bottom: 1.5px;
	left: 2px;
	width: 15px;
	height: 15px;
	background-color: white;
	content: "";
	-webkit-transition: 0.4s;
	transition: 0.4s;
}

input:checked + .visualizer-slider {
	background-color: #0085ba;
}

input:focus + .visualizer-slider {
	box-shadow: 0 0 1px #0085ba;
}

input:checked + .visualizer-slider:before {
	-webkit-transform: translateX(11px);
	-ms-transform: translateX(11px);
	transform: translateX(11px);
}

/* Rounded sliders */
.visualizer-slider.visualizer-round {
	border-radius: 34px;
}

.visualizer-slider.visualizer-round:before {
	border-radius: 50%;
}

.visualizer-tracking p small sup {
	margin-left: -3px;
}

.visualizer-tracking p {
	padding-left: 14px;
	color: #23282d;
	font-size: 12px;
	line-height: 12px;
	text-align: left;
}

.visualizer-tracking span {
	margin-left: 10px;
	color: #23282d;
	background: none;
	font-size: 14px;
	font-weight: bold;
}

#visualizer-content-wrapper {
	display: table;
}

#visualizer-sidebar h3 {
	margin-top: 0;
}

#visualizer-sidebar.two-columns .visualizer-sidebar-box ul li {
    width: calc(50% - 26px)
}
#visualizer-sidebar.one-columns .visualizer-sidebar-box ul li {
    width: 100%;
}
#visualizer-sidebar.one-columns .visualizer-sidebar-box p {
    margin-top: 8px;
}
#visualizer-sidebar .visualizer-sidebar-box p {
	margin-bottom: 0;
}
#visualizer-sidebar .visualizer-sidebar-box p.vz-sidebar-box-action {
	display: flex;
	gap: 20px;
	margin-top: 25px;
}
#visualizer-sidebar .visualizer-sidebar-box p.vz-sidebar-box-action .button{
	width: 100%;
	text-align: center;
}
#visualizer-sidebar.one-columns {
    border-top: 5px solid #007CBA;
}

.visualizer-chart-title {
	padding-bottom: 5px;
	font-weight: bold;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
}

div.visualizer-library-form .viz-filter {
	vertical-align: middle;
}

button.media-modal-close {
	display: none !important;
}

.dataTables_wrapper {
    max-height: 300px;
    overflow: hidden !important;
}

/* datatables */
.dt-button {
	display: none !important;
}

/* chartjs */
#visualizer-library canvas.chartjs-render-monitor {
	height: 100% !important;
}

div#visualizer-types ul, div#visualizer-types form p {
	vertical-align: middle;
	margin: 0;
}

.visualizer-chart-status {
	padding: 3px 0;
	color: #aaa;
	text-shadow: 0 1px 0 #fff;
}

.visualizer-chart-status span.visualizer-error {
	float: right;
}

.visualizer-error i {
	color: green;
}
.visualizer-error i.error {
	color: red;
	cursor: pointer;
}
.goog-combobox input {
	min-height: auto;
}
.vz-library-chart-filter:not(:empty) {
	background-color: #ffffff;
	padding: 5px 0 5px 5px;
	border: 1px solid #ddd;
}
.google-visualization-controls-rangefilter {
	white-space: inherit !important;
}
.visualizer-languages-list {
	text-align: right;
}
.visualizer-languages-list a {
	text-decoration: none;
	display: inline-block;
	margin-left: 3px;
	padding: 0;
	border: none;
	outline: none;
	box-shadow: none;
}
.visualizer-languages-list a:focus {
	border: none;
	outline: none;
	box-shadow: none;
}
.visualizer-languages-list:not(.only-pro) i {
	display: none;
}
.visualizer-languages-list:not(.only-pro) a:hover img {
	display: none;
}
.visualizer-languages-list:not(.only-pro) a:hover img + i {
	display: block;
}
.visualizer-languages-list.only-pro a:last-child {
	display: none;
}
.visualizer-languages-list.only-pro:hover a:not(:last-child) {
	display: none;
}
.visualizer-languages-list.only-pro:hover a:last-child {
	display: block;
}
.visualizer-action-left {
	float: left;
}
.visualizer-action-right {
	float: right;
}
@media (-webkit-min-device-pixel-ratio: 2) and (min-width: 1000px) and (max-width: 1600px)  {
	#visualizer-sidebar.one-columns .visualizer-sidebar-box ul li:nth-child(+n+7) {
	    display: none;
	}
}
@media  (max-width: 1500px) {
	#visualizer-library .items .viz-pro{
		height: 100%;
		padding-bottom: 24px;
	}
	#visualizer-library .items .viz-pro .one-columns{
		height: 100%;
	}
	#visualizer-library .items .viz-pro .visualizer-sidebar-box{
		height: 100%;
	}
	#visualizer-library .items .viz-pro.two-columns{
		padding-bottom: 0;
	}
	#visualizer-sidebar.one-columns .visualizer-sidebar-box ul li:nth-child(+n+7) {
	    display: none;
	}
	.visualizer-chart{
		height: calc(100% - 24px);
	}
}



.vizualizer-renew-notice-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 999;
}

.vizualizer-renew-notice-popup {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: #fff;
	z-index: 1000;
	padding: 20px;
	border: 1px solid #ccc;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	max-width: 400px;
	font-weight: bold;
	margin-bottom: 20px;
}

.vizualizer-renew-notice-heading {
	color: #d32f2f;
	text-align: left;
	margin-bottom: 10px;
}

.vizualizer-renew-notice-message {
	word-wrap: break-word;
	width: 250px;
}

.vizualizer-renew-notice-buttons-container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	text-align: center;
	margin-top: 20px;
}

.vizualizer-renew-notice-button {
	padding: 10px 20px;
	cursor: pointer;
	color: white;
	border: none;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	font-size: 16px;
	width: 200px;
	height: 50px;
	border-radius: 4px;
	transition: background-color 0.3s;
	font-weight: bold;
	margin-top: 10px;
}

.vizualizer-renew-notice-renew-button {
	background-color: #008CBA;
}

.vizualizer-renew-notice-activate-button {
	background-color: #4CAF50;
}

.vizualizer-renew-notice-close-icon {
	position: absolute;
	top: -10px;
	right: -70px;
	cursor: pointer;
	color: #333;
	background: none;
	border: none;
	padding: 0;
	outline: none;
	/* Reset button styles */
	display: inline-block;
	font: inherit;
	text-align: inherit;
	text-decoration: none;
}

/* ── View toggle buttons ── */
span.viz-view-toggle-group {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: 0;
	margin-right: 8px;
	vertical-align: middle;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 1px;
	background: #f6f7f7;
}

.viz-view-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	cursor: pointer;
	background: transparent;
	border: none;
	border-radius: 3px;
	color: #646970;
	line-height: 1;
	text-decoration: none;
}

.viz-view-toggle.active {
	background: #007CBA;
	color: #fff;
}

.viz-view-toggle:hover:not(.active) {
	background: #e0e0e0;
	color: #1d2327;
}

.viz-view-toggle:focus {
	outline: 2px solid #007CBA;
	outline-offset: 0;
	box-shadow: none;
}

/* ── Edit button — more visible ── */
.visualizer-action-group:not(.visualizer-nochart) .visualizer-chart-action.visualizer-chart-edit {
	display: flex;
}

.visualizer-action-group:not(.visualizer-nochart) .visualizer-chart-action.visualizer-chart-edit:hover,
.visualizer-action-group:not(.visualizer-nochart) .visualizer-chart-action.visualizer-chart-edit:focus {
	background-color: #0069a6 !important;
	color: #fff !important;
}

/* ── Compact upsell banner ── */
#visualizer-library .items--upsell {
	width: 100%;
}

.viz-upsell-banner {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	border-left: 4px solid #007CBA;
	padding: 12px 16px;
	margin-bottom: 10px;
}

.viz-upsell-banner__icon {
	color: #007CBA;
	font-size: 20px;
	flex-shrink: 0;
}

.viz-upsell-banner__text {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.viz-upsell-banner__text strong {
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
}

.viz-upsell-banner__text span {
	font-size: 12px;
	color: #50575e;
}

.viz-upsell-banner__actions {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

/* ── Chart type badge (list view only) ── */
.viz-chart-type-badge {
	display: none;
	font-size: 11px;
	font-weight: 500;
	text-transform: capitalize;
	background: #e8f0f8;
	color: #007CBA;
	border: 1px solid #c3daf9;
	border-radius: 10px;
	padding: 2px 8px;
	white-space: nowrap;
	flex-shrink: 0;
}

/* ── List view: WP-style table ── */
#visualizer-library.view-list {
	display: block;
	margin: 20px 0;
}

.viz-charts-table {
	border-collapse: collapse;
	width: 100%;
}

.viz-charts-table thead th {
	padding: 10px 12px;
	font-size: 12px;
	font-weight: 700;
	color: #1d2327;
	text-align: left;
	background: #f6f7f7;
	border-bottom: 2px solid #c3c4c7;
	white-space: nowrap;
}

.viz-charts-table tbody tr {
	background: #fff;
	border-bottom: 1px solid #f0f0f1;
	transition: background 0.1s;
}

.viz-charts-table tbody tr:hover {
	background: #f6f7f7;
}

.viz-charts-table td {
	padding: 10px 12px;
	vertical-align: middle;
	font-size: 13px;
	color: #3c434a;
}

/* Column widths */
.viz-charts-table .col-id {
	width: 50px;
	font-weight: 600;
	color: #787c82;
}

.viz-charts-table .col-title {
	font-weight: 600;
	color: #1d2327;
}

.viz-charts-table .col-type {
	width: 110px;
}

.viz-charts-table .col-shortcode {
	width: 260px;
}

.viz-charts-table .col-actions {
	width: 1%;
	white-space: nowrap;
}

/* Type badge in table */
.viz-charts-table .viz-chart-type-badge {
	display: inline-block;
}

/* Shortcode cell */
.viz-shortcode-display {
	display: inline-block;
	font-size: 11px;
	background: #f6f7f7;
	border: 1px solid #ddd;
	border-radius: 3px;
	padding: 3px 7px;
	color: #50575e;
	white-space: nowrap;
	max-width: 260px;
	overflow: hidden;
	text-overflow: ellipsis;
	vertical-align: middle;
	font-family: Consolas, Monaco, monospace;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
}

.viz-shortcode-display:hover {
	background: #e8f0f8;
	border-color: #bfdbfe;
	color: #1d2327;
}

.viz-shortcode-display.viz-shortcode-copied {
	background: #dcfce7;
	border-color: #86efac;
	color: #15803d;
}

/* Action buttons in table: colored bordered icon buttons */
.viz-charts-table .visualizer-action-group {
	display: flex;
	flex-wrap: nowrap;
	gap: 4px;
	justify-content: flex-end;
}

.viz-charts-table .visualizer-chart-action {
	width: 32px;
	height: 32px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #fff;
	color: #646970;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.viz-charts-table .visualizer-chart-action:hover {
	background: #f6f7f7;
}

.viz-charts-table .visualizer-chart-action.visualizer-chart-delete {
	border-color: #fca5a5;
	color: #dc2626;
	margin-right: 0;
}

.viz-charts-table .visualizer-chart-action.visualizer-chart-delete:hover {
	background: #fef2f2;
}

.viz-charts-table .visualizer-chart-action.visualizer-chart-shortcode {
	color: #2563eb;
	border-color: #bfdbfe;
}

.viz-charts-table .visualizer-chart-action.visualizer-chart-shortcode:hover {
	background: #eff6ff;
}

.viz-charts-table .visualizer-chart-action.visualizer-chart-clone,
.viz-charts-table .visualizer-chart-action.visualizer-chart-export {
	color: #64748b;
	border-color: #cbd5e1;
}

.viz-charts-table .visualizer-chart-action.visualizer-chart-clone:hover,
.viz-charts-table .visualizer-chart-action.visualizer-chart-export:hover {
	background: #f8fafc;
}

.viz-charts-table .visualizer-action-group .visualizer-chart-action.visualizer-chart-edit {
	width: auto;
	height: auto;
	padding: 0 8px;
	gap: 6px;
}

/* Upsell banner after the table */
#visualizer-library.view-list .items--upsell {
	margin-top: 12px;
}

.viz-add-new-group {
	display: inline-flex;
	align-items: center;
	position: relative;
}

.viz-add-new-group .add-new-h2 {
	margin-right: 0;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}

.viz-add-new-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 30px;
	margin-left: 0;
	border: 1px solid #2271b1;
	border-left: 0;
	border-radius: 0 3px 3px 0;
	background: #f6f7f7;
	color: #2271b1;
	cursor: pointer;
	position: relative;
	top: -3px;
}

.viz-add-new-toggle .dashicons {
	font-size: 16px;
	line-height: 1;
	display: flex;
	justify-content: center;
	align-items: center;
}

.viz-add-new-toggle .dashicon {
	display: flex;
	justify-content: center;
	align-items: center;
}

.viz-add-new-toggle:hover,
.viz-add-new-toggle:focus {
	background: #2271b1;
	color: #fff;
	outline: none;
}

.viz-add-new-menu {
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 2px;
	min-width: 190px;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	padding: 6px 0;
	display: none;
	z-index: 100001;
}

.viz-add-new-group.is-open .viz-add-new-menu {
	display: block;
}

.viz-add-new-item {
	width: 100%;
	text-align: left;
	padding: 8px 12px;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 13px;
	color: #1d2327;
}

.viz-add-new-item:hover,
.viz-add-new-item:focus {
	background: #f6f7f7;
	outline: none;
}

@media screen and (max-width: 782px) {
	.viz-add-new-toggle {
		min-height: 40px;
	}
}