/**
 * Стили админ-панели TU Crypto Widgets
 */

/* Основной контейнер страницы */
.tu-crypto-widgets-page {
	max-width: 1170px;
	margin: 0 auto;
	padding: 0 20px 0 0;
	position: relative;
	min-height: 100vh;
}

/* Декоративные элементы фона */
.tu-crypto-widgets-page::before {
	content: '';
	position: fixed;
	top: -200px;
	right: -200px;
	width: 600px;
	height: 600px;
	background: linear-gradient(135deg, rgba(0, 163, 42, 0.08) 0%, rgba(0, 163, 42, 0.03) 100%);
	border-radius: 50%;
	z-index: 0;
	pointer-events: none;
}

.tu-crypto-widgets-page::after {
	content: '';
	position: fixed;
	bottom: -150px;
	left: -150px;
	width: 500px;
	height: 500px;
	background: linear-gradient(45deg, rgba(255, 255, 255, 0.9) 0%, rgba(0, 163, 42, 0.05) 100%);
	border-radius: 50%;
	z-index: 0;
	pointer-events: none;
}

/* Заголовок страницы */
.tu-widgets-page-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 20px 0 28px;
	padding: 0;
	position: relative;
	z-index: 1;
}

.tu-widgets-page-header h1 {
	margin: 0;
	font-size: 28px;
	font-weight: 600;
	color: #1d2327;
}


/* Список виджетов */
.tu-widgets-list {
	display: flex;
	flex-direction: column;
	gap: 40px;
	position: relative;
	z-index: 1;
}

/* Секция виджета */
.tu-widget-section {
	background: #FBFBFB;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	position: relative;
	transition: box-shadow 0.3s ease;
}

.tu-widget-section:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.tu-widget-section::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 200px;
	height: 200px;
	background: linear-gradient(135deg, rgba(0, 163, 42, 0.06) 0%, rgba(0, 163, 42, 0.02) 100%);
	border-radius: 0 0 0 100%;
	pointer-events: none;
	z-index: 0;
}

.tu-widget-section-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	padding: 0;
	position: relative;
	z-index: 1;
	min-height: 300px;
	overflow: hidden;
}

/* Информация о виджете (левая колонка) */
.tu-widget-info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
	z-index: 2;
	padding: 80px 50px;
	border-radius: 8px;
}

/* Для четных элементов текст должен быть справа */
.tu-widget-reversed .tu-widget-info {
	margin-left: auto;
	grid-column: 2;
}

.tu-widget-title {
	margin: 0 0 16px 0;
	font-size: 24px;
	font-weight: 600;
	color: #1d2327;
	line-height: 1.3;
}

.tu-widget-description {
	margin: 0 0 30px 0;
	color: #646970;
	font-size: 16px;
	line-height: 1.6;
}

.tu-widget-actions {
	margin-top: auto;
}

.tu-install-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #2271b1;
	color: #ffffff;
	padding: 12px 24px;
	border-radius: 6px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.2s ease;
	border: none;
	cursor: pointer;
}

.tu-install-button:hover {
	background: #135e96;
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
}

.tu-install-button:active {
	transform: translateY(0);
}

.tu-install-button .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

/* Область превью - на всю высоту блока, прижата к краю */
.tu-widget-preview-area {
	position: absolute;
	top: 0;
	bottom: 0;
	height: 100%;
	width: 50%;
	background: #fbfbfb;
	background-position: center;
	background-repeat: no-repeat;
	background-size: auto 350px;
	z-index: 1;
}

/* Картинки справа - прижаты к правому краю */
.tu-widget-section:not(.tu-widget-reversed) .tu-widget-preview-area {
	right: 0;
	left: auto;
	border-radius: 0 12px 12px 0;
}

/* Картинки слева - прижаты к левому краю */
.tu-widget-reversed .tu-widget-preview-area {
	left: 0;
	right: auto;
	border-radius: 12px 0 0 12px;
}

.tu-widget-ticker .tu-widget-section-content {
	grid-template-columns: 1fr;
	min-height: 350px;
}

.tu-widget-ticker .tu-widget-preview-area {
	width: 100%;
	left: 0;
	right: 0;
	border-radius: 12px;
}

.tu-widget-ticker .tu-widget-info {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 35%;
	z-index: 3;
	margin: 0;
	grid-column: auto;
}

.tu-widget-ticker-compact .tu-widget-section-content {
	grid-template-columns: 1fr;
	min-height: 350px;
}

.tu-widget-ticker-compact .tu-widget-preview-area {
	width: 100%;
	left: 0;
	right: 0;
	border-radius: 12px;
}

.tu-widget-ticker-compact .tu-widget-info {
	position: absolute;
	right: 0;
	left: auto;
	top: 0;
	bottom: 0;
	width: 35%;
	z-index: 3;
	margin: 0;
	grid-column: auto;
}

.tu-widget-news .tu-widget-section-content {
	grid-template-columns: 1fr;
	min-height: 350px;
}

.tu-widget-news .tu-widget-preview-area {
	width: 100%;
	left: 0;
	right: 0;
	border-radius: 12px;
}

.tu-widget-news .tu-widget-info {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 35%;
	z-index: 3;
	margin: 0;
	grid-column: auto;
}

.tu-widget-asset-news .tu-widget-section-content {
	grid-template-columns: 1fr;
	min-height: 350px;
}

.tu-widget-asset-news .tu-widget-preview-area {
	width: 100%;
	left: 0;
	right: 0;
	border-radius: 12px;
}

.tu-widget-asset-news .tu-widget-info {
	position: absolute;
	right: 0;
	left: auto;
	top: 0;
	bottom: 0;
	width: 35%;
	z-index: 3;
	margin: 0;
	grid-column: auto;
}

.tu-widget-forecast .tu-widget-section-content {
	grid-template-columns: 1fr;
	min-height: 350px;
}

.tu-widget-forecast .tu-widget-preview-area {
	width: 100%;
	left: 0;
	right: 0;
	border-radius: 12px;
}

.tu-widget-forecast .tu-widget-info {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 35%;
	z-index: 3;
	margin: 0;
	grid-column: auto;
}

.tu-widget-technical .tu-widget-section-content {
	grid-template-columns: 1fr;
	min-height: 350px;
}

.tu-widget-technical .tu-widget-preview-area {
	width: 100%;
	left: 0;
	right: 0;
	border-radius: 12px;
}

.tu-widget-technical .tu-widget-info {
	position: absolute;
	right: 0;
	left: auto;
	top: 0;
	bottom: 0;
	width: 35%;
	z-index: 3;
	margin: 0;
	grid-column: auto;
}

.tu-widget-preview-area::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	/* background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 163, 42, 0.05) 100%); */
	z-index: 1;
	pointer-events: none;
}

.tu-widget-preview-area::after {
	content: '';
	position: absolute;
	top: -20px;
	width: 100px;
	height: 100px;
	background: linear-gradient(135deg, rgba(0, 163, 42, 0.1) 0%, rgba(255, 255, 255, 0.8) 100%);
	border-radius: 50%;
	z-index: 0;
}

/* Декоративный элемент для правых картинок */
.tu-widget-section:not(.tu-widget-reversed) .tu-widget-preview-area::after {
	right: -20px;
}

/* Декоративный элемент для левых картинок */
.tu-widget-reversed .tu-widget-preview-area::after {
	left: -20px;
}

/* Адаптивная верстка */
@media (max-width: 1200px) {
	.tu-widget-section-content {
		gap: 30px;
	}
}

@media (max-width: 768px) {
	.tu-crypto-widgets-page {
		padding: 0 15px;
		max-width: 500px;
	}

	.tu-widgets-page-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
		margin: 20px 0 30px;
	}

	.tu-widget-section-content {
		grid-template-columns: 1fr;
		gap: 30px;
		padding: 30px 20px;
	}

	.tu-widget-title {
		font-size: 20px;
	}

	.tu-widget-description {
		font-size: 15px;
	}

	.tu-widget-preview-area {
		min-height: 150px;
	}

	.tu-widgets-list {
		gap: 30px;
	}

	.tu-widgets-list .tu-widget-section .tu-widget-section-content {
		display: flex;
		flex-direction: column;
		gap: 0;
		min-height: 0;
	}

	.tu-widgets-list .tu-widget-section .tu-widget-preview-area {
		position: relative;
		order: -1;
		width: 100%;
		left: auto;
		right: auto;
		top: auto;
		bottom: auto;
		height: auto;
		min-height: 260px;
		border-radius: 12px 12px 0 0;
		background-size: 100% auto;
		background-position: top center;
	}

	.tu-widgets-list .tu-widget-section .tu-widget-info {
		position: relative;
		order: 1;
		width: 100%;
		left: auto;
		right: auto;
		top: auto;
		bottom: auto;
		margin: 0;
		grid-column: auto;
		padding: 20px 20px 0;
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		min-width: 0;
		box-sizing: border-box;
	}

	.tu-widgets-list .tu-widget-section .tu-widget-title,
	.tu-widgets-list .tu-widget-section .tu-widget-description {
		min-width: 0;
	}

	.tu-widgets-list .tu-widget-section .tu-widget-title {
		margin-top: 0;
	}

	.tu-widgets-list .tu-widget-section .tu-widget-description {
		overflow-wrap: break-word;
		word-wrap: break-word;
	}

	.tu-widgets-list .tu-widget-section .tu-install-button {
		margin-bottom: 10px;
	}
}

@media (max-width: 480px) {
	.tu-widgets-page-header h1 {
		font-size: 24px;
	}

	.tu-widget-section-content {
		padding: 25px 15px;
	}

	.tu-widget-title {
		font-size: 18px;
	}

	.tu-widget-description {
		font-size: 14px;
		margin-bottom: 20px;
	}

	.tu-install-button {
		padding: 10px 20px;
		font-size: 13px;
	}

	.tu-widgets-list .tu-widget-section .tu-widget-info {
		padding: 20px 16px 0;
	}
}

/* Страница настроек */
.tu-crypto-widget-settings {
	/* max-width: 1400px; */
}

.tu-crypto-widget-settings h1 span {
	font-size: 18px;
}

.tu-widget-settings-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 20px;
}

.tu-widget-settings-form {
	background: #fff;
	padding: 20px;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
}

.tu-widget-preview {
	background: #fff;
	padding: 20px;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
}

.tu-shortcode-output {
	margin-bottom: 30px;
}

.tu-shortcode-output textarea {
	font-family: 'Courier New', monospace;
	font-size: 13px;
	margin-bottom: 10px;
	height: 90px;
	width: 100%;
}

.tu-widget-preview-container {
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 20px;
	min-height: 200px;
	background: #f9f9f9;
	overflow: visible;
}

.tu-widget-preview-wrapper {
	position: relative;
	overflow: visible;
	border-radius: 4px;
	min-height: 174px;
	background: #f6f7f7;
	padding: 4px;
	box-sizing: content-box;
	border: 1px solid #ddd;
}

.tu-widget-preview-wrapper .tu-widget-placeholder {
	overflow: visible !important;
	width: 100% !important;
}

/* Прелоадер для виджета */
.tu-widget-loader {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.95);
	z-index: 1000;
}

.tu-widget-loader-spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #2271b1;
	border-radius: 50%;
	animation: tu-widget-spin 1s linear infinite;
	margin-bottom: 15px;
}

.tu-widget-loader-text {
	color: #646970;
	font-size: 14px;
}

@keyframes tu-widget-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Для виджета новостей используем CSS для показа только области виджета */

.tu-widget-preview-container iframe {
	width: 100%;
	min-height: 300px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
	display: block;
	overflow: auto;
}

.tu-widget-settings-form h3 {
	margin-top: 20px;
	margin-bottom: 15px;
	font-size: 16px;
	border-bottom: 1px solid #ddd;
	padding-bottom: 10px;
}

.tu-widget-settings-form .form-table th {
	width: 200px;
}

.settings__buttons {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}

.button-gray {
	background-color: #f0f0f1;
	border: 1px solid #c3c4c7;
	color: #2c3338;
	padding: 8px 16px;
	border-radius: 3px;
	cursor: pointer;
	font-size: 13px;
	line-height: 2.15384615;
	text-decoration: none;
	display: inline-block;
	transition: all 0.2s ease;
}

.button-gray:hover {
	background-color: #dcdcde;
	border-color: #8c8f94;
	color: #1d2327;
}

.button-gray:active {
	background-color: #c3c4c7;
	border-color: #8c8f94;
}

.button-green {
	background-color: #00a32a;
	border: 1px solid #00a32a;
	color: #fff;
	padding: 8px 16px;
	border-radius: 3px;
	cursor: pointer;
	font-size: 13px;
	line-height: 2.15384615;
	text-decoration: none;
	display: inline-block;
	transition: all 0.2s ease;
}

.button-green:hover {
	background-color: #008a20;
	border-color: #008a20;
}

.button-green:active {
	background-color: #007017;
	border-color: #007017;
}

.button-green:disabled {
	background-color: #c3c4c7;
	border-color: #c3c4c7;
	color: #8c8f94;
	cursor: not-allowed;
	opacity: 0.6;
}

.settings-search-wrapper {
	position: relative;
	display: inline-block;
	width: 100%;
}

.settings__input-symbol {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	font-size: 14px;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.settings__input-symbol:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	outline: none;
}

.symbol-suggestions {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #8c8f94;
	border-top: none;
	border-radius: 0 0 4px 4px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	max-height: 200px;
	overflow-y: auto;
	margin-top: -1px;
}

.symbol-suggestions-item {
	padding: 10px 12px;
	cursor: pointer;
	border-bottom: 1px solid #f0f0f1;
	transition: background-color 0.15s ease-in-out;
}

.symbol-suggestions-item:hover,
.symbol-suggestions-item.selected {
	background-color: #f6f7f7;
}

.symbol-suggestions-item.selected {
	background-color: #e5f5fa;
}

.symbol-suggestions-item:last-child {
	border-bottom: none;
}

.symbol-suggestions-item strong {
	color: #2271b1;
}

/* Стили для select с поиском (asset-news) */
.tu-symbol-select-wrapper {
	position: relative;
}

.tu-symbol-select-container {
	position: relative;
}

.tu-symbol-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.tu-symbol-input-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 1;
	display: flex;
	align-items: center;
	pointer-events: none;
}

.tu-symbol-input-icon img {
	width: 20px;
	height: 20px;
	display: block;
}

.tu-symbol-select-input {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.5;
	background-color: #fff;
}

.tu-symbol-select-input.has-icon {
	padding-left: 40px;
}

.tu-symbol-select-input:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	outline: none;
}

.tu-symbol-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #8c8f94;
	border-top: none;
	border-radius: 0 0 4px 4px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	max-height: 300px;
	overflow-y: auto;
	z-index: 1000;
	margin-top: -1px;
}

.tu-symbol-dropdown-list {
	max-height: 300px;
	overflow-y: auto;
}

.tu-symbol-dropdown-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	cursor: pointer;
	border-bottom: 1px solid #f0f0f0;
	transition: background-color 0.2s;
}

.tu-symbol-dropdown-item:hover,
.tu-symbol-dropdown-item.selected {
	background-color: #f0f6fc;
}

.tu-symbol-dropdown-item:last-child {
	border-bottom: none;
}

.tu-symbol-dropdown-item img {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.tu-symbol-dropdown-item-symbol {
	font-weight: 600;
	color: #2271b1;
	margin-right: 8px;
}

.tu-symbol-dropdown-item-name {
	color: #666;
	font-size: 13px;
}

.tu-symbol-dropdown-item strong {
	color: #2271b1;
	font-weight: 700;
}

.tu-symbol-dropdown-loading {
	padding: 15px;
	text-align: center;
	color: #666;
	font-size: 14px;
}

.tu-symbol-dropdown-empty {
	padding: 15px;
	text-align: center;
	color: #999;
	font-size: 14px;
}

/* Специальная раскладка для forecast виджета */
.tu-widget-forecast-layout .tu-widget-settings-container {
	grid-template-columns: 1fr 1fr;
}

.tu-widget-forecast-layout .tu-widget-preview-fullwidth {
	grid-column: 1 / -1;
	background: #fff;
	padding: 20px;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	margin-top: 30px;
}

.tu-widget-forecast-layout .tu-widget-preview-shortcode-only {
	background: #fff;
	padding: 20px;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
}

@media (max-width: 1200px) {
	.tu-widget-settings-container {
		grid-template-columns: 1fr;
	}
	
	.tu-widget-forecast-layout .tu-widget-settings-container {
		grid-template-columns: 1fr;
	}
	
	.tu-widget-forecast-layout .tu-widget-preview-fullwidth {
		grid-column: 1;
	}
	
	.tu-widget-settings-form .form-table #widget-timeframe,
	.tu-widget-settings-form .form-table #widget-language,
	.tu-widget-settings-form .form-table #widget-loading-strategy {
		width: 100% !important;
		max-width: 100% !important;
	}
}

@media (max-width: 768px) {
	.tu-widgets-grid {
		grid-template-columns: 1fr;
	}
}

/* Стили для ticker виджетов с категориями */
.tu-ticker-symbol-select-wrapper {
	position: relative;
}

.tu-ticker-symbol-select-container {
	position: relative;
}

.tu-ticker-search-input-wrap {
	margin-bottom: 10px;
}

.tu-ticker-search-input {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

.tu-ticker-search-input:focus {
	border-color: #2271b1;
	outline: none;
	box-shadow: 0 0 0 1px #2271b1;
}

.tu-ticker-category-options {
	display: flex;
	gap: 5px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.tu-ticker-category-btn {
	padding: 6px 12px;
	border: 1px solid #ddd;
	background: #fff;
	border-radius: 4px;
	cursor: pointer;
	font-size: 13px;
	color: #555;
	transition: all 0.2s;
}

.tu-ticker-category-btn:hover {
	background: #f5f5f5;
	border-color: #2271b1;
	color: #2271b1;
}

.tu-ticker-category-btn.active {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}

.tu-ticker-symbol-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	max-height: 400px;
	overflow-y: auto;
	margin-top: 4px;
}

.tu-ticker-symbol-dropdown-loading {
	padding: 15px;
	text-align: center;
	color: #666;
	font-size: 14px;
}

.tu-ticker-symbol-dropdown-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tu-ticker-symbol-dropdown-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	cursor: pointer;
	border-bottom: 1px solid #f0f0f0;
	transition: background 0.2s;
}

.tu-ticker-symbol-dropdown-item:last-child {
	border-bottom: none;
}

.tu-ticker-symbol-dropdown-item:hover {
	background: #f5f5f5;
}

.tu-ticker-symbol-dropdown-item img {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.tu-ticker-double-logo {
	position: relative;
	width: 28px;
	height: 20px;
	flex-shrink: 0;
	border-radius: 6px;
}
.tu-ticker-double-logo img {
	position: absolute;
	width: 18px;
	height: 14px;
	object-fit: cover;
	border-radius: 3px;
}
.tu-ticker-double-logo img:first-child {
	left: 2px;
	top: -4px;
	z-index: 2;
}
.tu-ticker-double-logo img:last-child {
	right: 2px;
	bottom: 2px;
	left: auto;
	top: auto;
	z-index: 1;
}
.tu-ticker-symbol-dropdown-item .tu-ticker-double-logo img {
	width: 18px;
	height: 14px;
}
.tu-ticker-selected-item-content .tu-ticker-double-logo img {
	width: 18px;
	height: 14px;
}

.tu-ticker-symbol-dropdown-item span {
	flex: 1;
	font-size: 14px;
	color: #333;
}

.tu-ticker-symbol-dropdown-item span strong {
	font-weight: 600;
	color: #2271b1;
}

.tu-ticker-symbol-dropdown-empty {
	padding: 15px;
	text-align: center;
	color: #999;
	font-size: 14px;
	list-style: none;
}

/* Стили для списка выбранных тикеров */
.tu-ticker-selected-list-wrapper {
	margin-top: 15px;
}

.tu-ticker-selected-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tu-ticker-selected-item {
	margin-bottom: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
}

.tu-ticker-selected-item-content {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
}

.tu-ticker-selected-item-content img {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.tu-ticker-selected-item-title {
	flex: 1;
	font-size: 14px;
	color: #333;
	font-weight: 500;
}

.tu-ticker-selected-item-remove {
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	color: #666;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s;
}

.tu-ticker-selected-item-remove:hover {
	color: #d63638;
}

.tu-ticker-selected-item-remove svg {
	width: 14px;
	height: 14px;
}

/* Стили для кнопки Add symbol */
.settings__add-symbol {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: transparent;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	color: #2c3338;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
}

.settings__add-symbol:hover:not(:disabled) {
	background: #f0f0f1;
	border-color: #8c8f94;
	color: #1d2327;
}

.settings__add-symbol:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.settings__add-symbol svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.button-transparent {
	background: transparent;
	border: 1px solid #c3c4c7;
	color: #2c3338;
}

/* Переключатель размеров для technical виджета */
.tu-viewport-switcher {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 12px 16px;
	background: #f6f7f7;
	border: 1px solid #ddd;
	border-radius: 4px;
	margin-bottom: 3px;
}

.tu-viewport-devices {
	display: flex;
	gap: 8px;
}

.tu-viewport-device-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	color: #646970;
	transition: all 0.2s ease;
}

.tu-viewport-device-btn:hover {
	background: #f0f0f1;
	border-color: #8c8f94;
	color: #2c3338;
}

.tu-viewport-device-btn.active {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}

.tu-viewport-device-btn svg {
	width: 20px;
	height: 20px;
}

.tu-viewport-sizes {
	display: flex;
	align-items: center;
	gap: 8px;
}

.tu-viewport-size-field {
	width: 60px;
	padding: 6px 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 13px;
	text-align: center;
	color: #646970;
	background: #f6f7f7;
}

.tu-viewport-size-field:focus {
	outline: none;
	border-color: #2271b1;
}

.tu-viewport-size-separator {
	color: #646970;
	font-size: 14px;
	font-weight: 500;
}

/* Контейнер превью для technical виджета с адаптивным размером */
.tu-technical-preview-container {
	border-radius: 0 0 4px 4px;
	transition: all 0.3s ease;
	overflow: hidden;
}

.tu-technical-preview-container .tu-widget-preview-wrapper {
	transition: all 0.3s ease;
	margin: 0 auto;
	overflow: hidden;
}

/* Размеры устройств для technical виджета */
.tu-technical-preview-container[data-device="desktop"] .tu-widget-preview-wrapper {
	max-width: 100%;
}

.tu-technical-preview-container[data-device="tablet"] .tu-widget-preview-wrapper {
	max-width: 768px;
}

.tu-technical-preview-container[data-device="mobile"] .tu-widget-preview-wrapper {
	max-width: 375px;
}

/* Анимация переключения */
.tu-technical-preview-container .tu-widget-preview-wrapper {
	transform-origin: top center;
}

/* Стили для placeholder внутри переключаемого контейнера */
.tu-technical-preview-container .tu-widget-placeholder {
	width: 100% !important;
	max-width: 100% !important;
	transition: all 0.3s ease;
}

.tu-shortcode-instruction {
	margin: -10px 0 10px 0;
	color: #646970;
	font-size: 14px;
	line-height: 1.5;
}

.tu-preview-instruction {
	margin: 3px 0 15px 0;
	color: #646970;
	font-size: 14px;
	line-height: 1.5;
}

#copy-shortcode {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

#copy-shortcode .dashicons.dashicons-admin-page {
	position: relative;
	top: -1px;
	left: -2px;
	vertical-align: middle;
}

.tu-crypto-widget-settings select.regular-text {
	width: 100%;
}