/*UIKIT override*/

html, body {
	line-height: 1.2;
	font-size: 14px;
}

html, body, h1, h2, h3, h4, h6, h6 {
	font-family: "Montserrat", sans-serif;
}

em {
	color: inherit;
}

ul {
	padding-left: 15px;
}

h1 {
	font-size: 36px;
	font-weight: 600;
}

h1 span {
	display: inline-block;
	margin-left: 30px;
	font-size: 20px;
	font-weight: 400;
	background: #F7F7F7;
	border-radius: 5px;
	padding: 5px 10px;
}

input {
	font-size: 12px !important;
	font-weight: 500 !important;
}

input[type="text"], input[type="password"], input[type="date"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], select.uk-select {
	border: none;
	border-bottom: 2px solid #a6cac9;
	background: transparent;
}

input[type="text"], input[type="password"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"] {
	background-image: url(img/mark_edit.svg) !important;
	background-position: center right +5px !important;
	background-repeat: no-repeat !important;
}

input[type="text"]:required, input[type="password"]:required, input[type="email"]:required, input[type="tel"]:required, input[type="url"]:required, input[type="number"]:required {
	background-image: url(img/mark_edit_required.svg) !important;
	background-repeat: no-repeat !important;
}

input[type="date"] {
	min-width: 160px;
}

.uk-input {
	height: 32px;
}

select.uk-select {
	background-image: url(img/mark_select.svg) !important;
	background-position: center right +5px !important;
	background-repeat: no-repeat !important;
	height: 32px !important;
}

.select2-container .select2-selection--single {
  box-sizing: border-box;
  cursor: pointer;
  display: block;
  height: 32px;
  user-select: none;
  -webkit-user-select: none;
}

.select2-container--default .select2-selection {
  border: none;
	border-bottom: 2px solid #a6cac9;
	background: transparent;
	border-radius: 0px;
	background-image: url(img/mark_select.svg) !important;
	background-position: center right +5px !important;
	background-repeat: no-repeat !important;
}

.select2-container--default .select2-selection--single {
  border: none;
	border-bottom: 2px solid #a6cac9;
	background: transparent;
  border-radius: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
	border: none !important;
}

.uk-form-label, h6 {
	font-size: 9px;
	font-weight: 500;
	text-transform: uppercase;
	color: #868787;
}

.uk-text-small {
	font-size: 12px;
}

.uk-subnav {
	background: #F7F7F7 !important;
	border-radius: 3px;
	margin-left: 0px !important;
	display: flex;
	justify-content: space-between;
}

.uk-subnav > li {
	padding: 0 !important;
}

.uk-subnav > li > a {
	padding: 10px 5px 10px 35px !important;
	font-size: 10px !important;
	font-weight: 600;
	text-transform: uppercase;
	text-decoration: none;
	color: #868787 !important;

	background-position: 10px center !important;
	background-repeat: no-repeat !important;
}

.uk-subnav > li.uk-active > a {
	background-color: #F4F0ED !important;
	color: #F68623 !important;
}

.uk-subnav > li > a.tab1 {
	background-image: url('img/tab_settings.svg');
}
.uk-subnav > li.uk-active > a.tab1 {
	background-image: url('img/tab_settings_active.svg');
}

.uk-subnav > li > a.tab2 {
	background-image: url('img/tab_code.svg');
}
.uk-subnav > li.uk-active > a.tab2 {
	background-image: url('img/tab_code_active.svg');
}

.uk-subnav > li > a.tab3 {
	background-image: url('img/tab_design.svg');
}
.uk-subnav > li.uk-active > a.tab3 {
	background-image: url('img/tab_design_active.svg');
}

.uk-accordion > li {
	/*border-bottom: 1px solid #FFF;*/
}

.uk-accordion-title {
	font-size: 14px;
}

.uk-accordion > :nth-child(n+2) {
  margin-top: 10px;
}

.uk-accordion-title::before {
	background: url(img/icon_plus.svg) center center no-repeat;
}

.uk-open > .uk-accordion-title::before {
	background: url(img/icon_minus.svg) center center no-repeat;
}

.uk-accordion-content {
	/*background: #F2F2F2;*/
	padding: 10px;
	margin-top: 10px;
}

.uk-card-body {
	padding: 5px !important;
}

.uk-modal {
	z-index: 1050 !important;
}

/* Перевизначення стилів тултіпу */
.uk-tooltip, .drop_help {
    background: #fff !important;             /* Білий фон */
    color: #333 !important;                  /* Темний текст */
    border: 2px solid #ffeb3b !important;    /* Яскрава жовта рамка */
    box-shadow: none !important;             /* Без тіні */
    padding: 8px 12px !important;
    font-size: 14px;
    border-radius: 6px;
	text-transform: none;
	font-weight: 500;
}

/* Стрілка тултіпу */
.uk-tooltip::after {
	content: "";
    border-color: #ffeb3b #ffeb3b transparent transparent; !important; /* Жовта рамка стрілки */
	position: absolute;
	top: -7px;
	left: 50%;
	margin-left: -15px;
	border-width: 2px;
	border-style: solid;

	background: #FFF;
	width: 10px;
	height: 10px;

	transform: rotate(-45deg);
}

.uk-tooltip-bottom::after {
	content: "";
    border-color: #ff0000 #ffeb3b transparent transparent; !important; /* Жовта рамка стрілки */
	position: absolute;
	top: calc(100% - 5px);
	left: 50%;
	margin-left: -15px;
	border-width: 2px;
	border-style: solid;

	background: #FFF;
	width: 10px;
	height: 10px;

	transform: rotate(135deg);
}

.drop_help::after {
	content: "";
    border-color: #ffeb3b #ffeb3b transparent transparent; !important; /* Жовта рамка стрілки */
	position: absolute;
	top: calc(100% - 5px);
	left: 50%;
	margin-left: -15px;
	border-width: 2px;
	border-style: solid;

	background: #FFF;
	width: 10px;
	height: 10px;

	transform: rotate(135deg);
}

.uk-button-primary, .uk-button-secondary, .uk-button-default, .uk-button-danger, .uk-button-white {
	box-sizing: border-box;
	height: 40px;
	border-radius: 5px;
	font-weight: 500;
	font-size: 12px;
}

.uk-button-primary {
	color: #FFF;
	background: #00a23b;
	border: 2px solid #00a23b;
}
.uk-button-primary:hover {
	background: #009032;
	border: 2px solid #009032;
}

.uk-button-default {
	color: #00a23b;
	border: 2px solid #00a23b;
}

.uk-button-default:hover {
	color: #009032;
	border: 2px solid #009032;
}

.uk-button-white {
	color: #FFF;
	border: 2px solid #FFF;
	background: transparent;
}

.uk-button-white:hover {
	color: #EEE !important;
	border: 2px solid #EEE !important;
	background: transparent;
}

.uk-button-flattext {
	border: none;
	color: #889998;
	height: 20px;
	background: transparent;
}
.uk-button-flattext:hover {
	color: #667766;
	background: transparent;
}

.flatbutton {
	border: none;
	background: none;
	position: relative;
	top: -2px;
}

.uk-button {
	line-height: 30px;
}

.uk-button-default.form_save {
	background: url(img/disk_g.svg) 16px center no-repeat;
	background-size: 16px auto;
	padding-left: 50px;
}

.uk-button-primary.form_save {
	background-image: url(img/disk_w.svg);
	background-position: 16px center;
	background-size: 16px auto;
	background-repeat: no-repeat;
	padding-left: 50px;
}


.top_icons img {
	margin-bottom: 5px;
	height: 24px;
	width: auto;
}

#main_head {
	margin-bottom: 15px !important;
}

.top_icons a {
	font-size: 10px;
	text-transform: uppercase;
	color: #424242;
	font-weight: 500;
}

#alt_head {
	background: #FFF;
	padding: 10px 0;
	z-index: 999;
}

#alt_head h3 {
	margin-bottom: 0px;
}

#alt_head a {
	display: inline-block !important;
	margin: 0 10px;
}

#contentblocks {
	margin-top: 0;
}

.contentblock {
	background: #F7F7F7;
	border-radius: 3px;
}

/* ----------------------------- Акордіон для карток лендінгів  */
.lp_card_select .uk-accordion-title::before {
    display: none !important;
}

/* Додаємо стрілку справа */
.lp_card_select .uk-accordion-title div.actop {
    position: relative;
    padding-right: 24px; /* Місце для стрілки */
    color: #FFF;
	width: 400px;
}

.drop_lp_cards {
	height: 60px;
	line-height: 1;
}

/* Стрілка вниз (згорнутий стан) */
.drop_lp_cards::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 35%;
    border: solid #FFF;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 5px;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.3s ease;
	z-index: 9999;
}

/* Стрілка вгору (відкритий стан) */
.drop_lp_cards_open::after {
    transform: translateY(-50%) rotate(-135deg);
	border: solid #f68623;
	border-width: 0 2px 2px 0;
}


.sidebar {
	background: #3a3f45;
	width: 175px;
	overflow-x: visible;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 175px;
  background: #3a3f45; /* Фон бокового меню */
  color: #FFF;
}

.menu a {
	color: #FFF !important;
	font-weight: 600;
	font-size: 10px;
}


.menuitem {
  padding: 5px 20px;
  position: relative;
  cursor: pointer;
}

.menuitem img {
	margin-right: 10px;
	height: 20px;
	width: auto;
}

.menu_active {
  background-color: #52575d; /* Фон обраного пункту */
}

/* Стрілка праворуч */
.menu_active::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  width: 0px;
  height: 0px;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 10px solid #52575d; /* Такий самий як фон обраного елемента */
  overflow: visible;
  box-sizing: content-box;
  z-index: 999;
}

.main_area {
	padding: 0 20px 20px;
}

h2.lp_title {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 0;

	max-width: 520px;

	display: -webkit-box;        /* для Safari/старих Chrome */
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	overflow: hidden;

}

.fontbox span.preview {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: 10px;
	background: #FFF;
	border: 1px solid #cccccc;
	border-radius: 5px;
}

#card_drop_container a:hover {
	text-decoration: none !important;
}

.lp_card {
	background: #F7F7F7;
	box-shadow: none;
	border-radius: 5px;
}

.cover {
	aspect-ratio: 4 / 3;
	width: 100%;
	max-height: 100%;
	background-size: cover;
	border-radius: 5px;
}

.uk-button .cover {
	width: 44px;
	height: 44px;
	border-radius: 50%;
}

.cover_small {
	aspect-ratio: 1 / 1;
	width: 50px;
	max-height: 100%;
	background-size: cover;
	border-radius: 50%;
}

.lp_card h3 {
	font-size: 20px;
	font-weight: 600;
	color: #424242;
	margin-bottom: 5px;
}


.lp_card b {
	font-size: 16px;
	font-weight: 400;
	color: #868787;
}

.badge {
	display: inline-block;
	box-sizing: border-box;
	color: #FFF;

	font-size: 10px;
	font-weight: 600;
	line-height: 1;
	padding: 4px 4px 0;
	border-radius: 3px;
	height: 18px;
}

.badge_wait {
	background: #777;
}

.badge_ok {
	background: #39B54A;
}

.badge_alert {
	background: #F0506E;
}

.block_badge {
	font-size: 10px;
	color: #868787;
}

.block_name {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	overflow: hidden;
}

table.dataTable tbody tr.even {
	background-color: #EEE;
}

#users_DT tbody tr > td:last-child {
	text-align: center;
}

form.largeform, form.normalform, .head_left {
	width: 500px;
}

.full_head {
	background: #FFF;
	padding-top: 20px;
}

#main_head a {
	display: inline-block;
	margin: 0 10px;
	padding: 5px 5px;
	box-sizing: border-box;
	min-width: 110px;
	text-align: center;
}

#main_head a.active {
	background: #EDF4F3;
	border-radius: 3px;
}

.preview_wrapper {
	background: #E0E0E0; overflow-y: scroll; max-height: 90vh;
	padding: 0 20px;
}

.lp_preview {
	margin: 0 auto;
}

#lp_preview {
	margin: 0 auto;
}

#lp_preview iframe {
	width: 100%;
	min-height: 80vh;
	height: 80vh;
}

.adminfooter {
	background: #000;
	color: #FFF;
}

.drag-handle {
	cursor: move; /* fallback if grab cursor is unsupported */
    cursor: grab;
    cursor: -moz-grab;
    cursor: -webkit-grab;
}

.drag-handle:active {
	cursor: grabbing;
    cursor: -moz-grabbing;
    cursor: -webkit-grabbing;
}

.drop-area {
	border: 2px dashed #ccc;
	border-radius: 6px;
	padding: 20px;
	text-align: center;
	cursor: pointer;
	background: #f9f9f9;
	transition: background 0.3s;
}
.drop-area:hover {
	background: #eef;
}
.drop-area.dragover {
	background: #ddeeff;
	border-color: #339;
}

.cards_edit_container li {
	list-style: none;
	background: #FFF;
	padding: 0;
}

.card_edit_content {
	padding: 10px;
}

.uploader-flex {
	display: flex;
	align-items: center;
	gap: 20px;
}
.uploader-flex .drop-area {
	flex: 1;
}
.uploader-flex .preview {
	max-width: 200px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
  }

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

  .slider {
    position: absolute;
    cursor: pointer;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }

  .slider:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
  }

  .toggle-switch input:checked + .slider {
    background-color: #39B54A; /* зелений — колір success з UIKit */
  }

  .toggle-switch input:checked + .slider:before {
    transform: translateX(24px);
  }

  /* Додатково — можна адаптувати під UIkit стилі */
  .uk-form-label.toggle-label {
    margin-right: 1rem;
  }

  /* ---------------------------------------------------------------- radio */
  .radio-group {
  display: flex;
  gap: 1rem;
  margin: 10px 5px;
}

.radio-icon {
  position: relative;
  cursor: pointer;
  display: inline-block;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 10px;
  transition: border 0.2s ease;
}

.radio-icon img {
  width: 90px;
  height: auto;
  display: block;
}

.radio_box input[type="radio"] {
  display: none;
}

.radio_box input[type="radio"]:checked + label {
  border-radius: 8px;
  border: 2px solid #f68623;
  background: #FFF;
}

/* ------------------------------------------------------------------ color */

input[type="color"] {
  -webkit-appearance: none; /* Прибирає стандартний стиль у WebKit */
  border: none;
  padding: 0; /* Прибираємо зайві відступи */
  width: 150px;
  height: 40px; /* Задаємо висоту */
  border-radius: 5px; /* Скруглені кути */
  cursor: pointer;
}

/* Chrome, Edge, Safari */
input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0; /* Прибирає внутрішній падінг */
}

input[type="color"]::-webkit-color-swatch {
  border: none; /* Прибирає рамку кольору */
  border-radius: 5px; /* Скруглює кути у вбудованій частині */
}

/* Firefox */
input[type="color"]::-moz-color-swatch {
  border: none;
  border-radius: 5px;
}

.color-picker-wrapper {
  display: inline-block;
  font-family: sans-serif;
  margin: 1em 0;
}
.color-value {
  display: flex;
  align-items: flex-end;
  margin-top: 0.5em;
  font-size: 14px;
  color: #333;
  gap: 0.3em;
}
.color-value code {
  color: #868787;
  background-color: transparent;
  font-family: inherit;
  font-size: 14px;
  padding: 0px !important;
}
.copy-btn, .copy-ip {
  cursor: pointer;
  border: none;
  background: none;
  font-size: 1em;
  color: #555;
  padding: 0px;
}
.copy-btn:hover {
  color: #000;
}

.uploadbox {
	border: 1px solid #444A4E;
	border-radius: 5px;
}

.uploadbox .preview .remove-image {
	display: none;
	width: 90%;
	aspect-ratio: 1 / 1;
	background: rgba(255, 255, 255, .8);
	border-radius: 3px;
	position: relative;
}

.uploadbox .preview:hover .remove-image {
	display: block;
}

.remove-image img {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/*-----------------------------------------------------------------------------------------------*/

.range_box {
	display: flex;
}

.range_box input[type="text"] {
	padding-right: 4px !important;
}

.uk-range {
	margin-top: 5px;
}
/* Базовий стиль track */
.uk-range::-webkit-slider-runnable-track {
  height: 2px;
  background: #a6cac9;
  border-radius: 1px;
}

.uk-range::-moz-range-track {
  height: 2px;
  background: #a6cac9;
  border-radius: 1px;
}

.uk-range:focus::-webkit-slider-runnable-track {
  background: #a6cac9;
}

/* Для Firefox */
.uk-range:focus::-moz-range-track {
  background: #a6cac9;
}

/* Повзунок (thumb) — Webkit */
.uk-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 22px;
  width: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #f68623;
  margin-top: -9px; /* центрування по треку */
  cursor: pointer;
  transition: box-shadow 0.2s;
}

/* Повзунок (thumb) — Firefox */
.uk-range::-moz-range-thumb {
  height: 22px;
  width: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #f68623;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

/* Optional: фокус або ховер */
.uk-range:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(166, 202, 201, 0.5);
}

.uk-range:focus::-moz-range-thumb {
  box-shadow: 0 0 0 3px rgba(166, 202, 201, 0.5);
}


input.range_preview {
	background-image: none !important;
	border-bottom: none !important;
	padding: 0 4px;
	max-width: 40px !important;
}

.edit_block_head {
	background: #f2f2f2;
	border-radius: 10px;
	padding: 10px;
}

.edit_small_head {
	background: #f2f2f2;
	border-radius: 5px;
	padding: 5px 5px;
}

.card_head {
	background: #CFD1D2;
	border-radius: 5px;
	padding: 5px 5px;
}


  .editor-wrapper {
    margin-bottom: 2em;
  }

  .fp-input {
    padding: 0.5em 0.75em;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    color: #111;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
  }

.iframe-container-desktop {
    width: 100%;
    overflow: hidden;
}

.iframe-container-desktop iframe {
    transform: scale(0.8); /* Масштаб 80% */
    transform-origin: top left;
    width: 125%; /* Компенсація зменшення */
    height: 125%;
}

.modal_dark {
	background: #444A4E !important;
	color: #FFF;
	padding: 40px 80px !important;
}

.modal_dark h3 {
	font-size: 18px;
	font-weight: bold;
	color: #FFF;
}

.modal_dark hr {
	border-bottom: 2px solid #f68623;
	border-top: none;
}

.modal_dark button {
	width: 215px !important;
}

.modal_dark label {
	color: #FFF !important;
}

.card_head a {
	font-size: 14px;
	font-weight: bold;
	color: #333;
}

.card_pale {
	filter: contrast(0.4) brightness(1.4);
}

@media (max-width: 1800px) {
	#main_head a {
		margin: 0 5px;
		padding: 5px 5px;
		min-width: 90px;
	}

	.preview_wrapper {
		padding: 0 10px;
	}
}

@media (max-width: 1680px) {

	#main_head a {
		margin: 0 0;
		padding: 5px 0;
		min-width: 80px;
		font-size: 9px;
	}

	form.largeform, .head_left, form.normalform {
		width: 480px;
	}
}

@media (max-width: 1480px) {
	form.largeform, .head_left, form.normalform {
		width: 480px;
	}
}
