/*!
 * WX Scroll To Up Plugin - Admin Panel Styles
 * -------------------------------------------------
 * Admin styles for plugin settings page, including:
 * - Form fields focus effects
 * - Icon selector styling
 * - Custom SVG upload field
 * - Settings page layout (left and right panel)
 * - Donate button section
 * - Responsive styles for mobile devices
 *
 * Author: Wooprex
 * Website: https://wooprex.com
 * License: GPLv2 or later
 */

.wrap.wstp-scroll-up-setting {
	margin: 10px;
}
.wstp-scroll-up-setting input[type="checkbox"]:focus,
.wstp-scroll-up-setting input[type="color"]:focus,
.wstp-scroll-up-setting input[type="date"]:focus,
.wstp-scroll-up-setting input[type="email"]:focus,
.wstp-scroll-up-setting input[type="radio"]:focus,
.wstp-scroll-up-setting input[type="tel"]:focus,
.wstp-scroll-up-setting input[type="text"]:focus,
.wstp-scroll-up-setting input[type="url"]:focus,
.wstp-scroll-up-setting select:focus,
.wstp-scroll-up-setting textarea:focus {
	border-color: #0057ff !important;
	box-shadow: 0 0 0 1px #0057ff !important;
}
.wstp-scroll-up-setting select:hover {
	color: #0057ff !important;
}
.wstp-scroll-up-setting select:focus,
.wstp-scroll-up-setting .button.wp-color-result:focus,
.wstp-scroll-up-setting .button.wp-picker-clear:focus {
	border-color: #0057ff !important;
	color: #0057ff !important;
	box-shadow: 0 0 0 1px #0057ff !important;
}

.wstp-scroll-up-setting .header-title {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 20px;
}

.wstp-scroll-up-setting .wstp-wrapper {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}
.wstp-scroll-up-setting .wstp-wrapper .inner-left,
.wstp-scroll-up-setting .wstp-wrapper .inner-right {
	flex: 0 0 auto;
}
.wstp-scroll-up-setting .wstp-wrapper .inner-left form {
	padding: 0 30px 0 0;
}
.wstp-scroll-up-setting .wstp-wrapper .inner-left {
	width: 69%;
	border-right: 1px solid #ddd;
}
.wstp-scroll-up-setting .wstp-wrapper .inner-right {
	width: 30%;
}
/* Icon option*/
.wstp-scroll-up-setting #wstp-icon-options i::before {
	font-family: "flaticon_scrolltoup" !important;
}

.wstp-scroll-up-setting #wstp-icon-options {
	border: none;
}

.wstp-scroll-up-setting #wstp-icon-options label {
	transition: all 0.2s ease;
	display: inline-block;
	margin: 5px;
	text-align: center;
	cursor: pointer;
	border: 2px solid transparent;
	padding: 2px;
}
.wstp-scroll-up-setting #wstp-icon-options label:hover {
	border: 2px solid #0057ff !important;
}
.wstp-scroll-up-setting #wstp-icon-options label.selected {
	border: 2px solid #0057ff;
}

.wstp-scroll-up-setting #wstp-icon-options label .icon {
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.wstp-scroll-up-setting #wstp-icon-options label .title {
	font-size: 10px;
}

/* Custom SVG field */
.wstp-scroll-up-setting #wstp-icon-options label.custom-svg-field {
	display: inline-block;
	margin: 5px;
	text-align: center;
	cursor: pointer;
}
.wstp-scroll-up-setting #wstp-icon-options #wstp-svg-preview {
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px dashed #ccc;
}
.wstp-scroll-up-setting #wstp-icon-options #wstp-svg-preview img {
	width: 100%;
}

.wstp-scroll-up-setting #wstp-icon-options .custom-svg-title {
	font-size: 10px;
}
.wstp-scroll-up-setting select {
	min-width: 200px;
	max-width: 200px;
}
.wstp-scroll-up-setting .submit .button {
	background-color: #0057ff;
	border: 1px solid #0057ff;
	color: #fff;
	transition: 0.3s;
	padding: 5px 35px;
	font-size: 15px;
}
.wstp-scroll-up-setting .submit .button:hover {
	background: transparent;
	color: #0057ff;
	border-color: #0057ff;
}
.wstp-scroll-up-setting .submit .button:focus {
	outline: none;
	box-shadow: none;
	background-color: #0057ff;
	color: #fff;
}
.wstp-scroll-up-setting .wstp_admin_logo {
	width: 40px;
}
/* Donate btn */
.wstp-scroll-up-setting .donate {
	padding: 0 30px;
}
.wstp-scroll-up-setting .donate h1 {
	margin-bottom: 10px;
}
.wstp-scroll-up-setting .donate p {
	line-height: 1.6em;
}
.wstp-scroll-up-setting svg{
	width: 45px;
}
/* Responsive style */
@media screen and (max-width: 768px) {
	.wstp-scroll-up-setting .wstp-wrapper .inner-left {
		width: 100%;
		padding-right: 0;
		border-right: none;
	}
	.wstp-scroll-up-setting .wstp-wrapper .inner-right {
		width: 100%;
		padding: 0px;
	}
	.wstp-scroll-up-setting .wstp-wrapper .inner-left form {
		padding: 0 0px 0 0;
	}
	.wstp-scroll-up-setting .donate {
		padding: 0px;
	}
}
