/* ST Product Review Generator admin UI */

:root {
	--stprg-bg: #f6f7fb;
	--stprg-card-bg: #ffffff;
	--stprg-card-border: #ff6b2c;
	--stprg-text: #131524;
	--stprg-muted: #737a8c;
	--stprg-primary: #ff6b2c;
	--stprg-primary-dark: #e25e25;
	--stprg-success: #20c773;
	--stprg-shadow: 0 16px 40px rgba(14, 25, 40, 0.08);
	--stprg-radius-lg: 20px;
	--stprg-radius-md: 12px;
	--stprg-border: 2px solid var(--stprg-card-border);
	--stprg-soft-bg: #f6f7fb;
	--stprg-stat-bg: #f7f8fd;
}
#wpcontent {
	padding-left: 0px;
}
body.woocommerce_page_st-product-review-generator {
	background: var(--stprg-soft-bg);
}

body.woocommerce_page_st-product-review-generator #wpcontent {
	padding-left: 0;
	padding-right: 0;
	background: transparent;
}

body.woocommerce_page_st-product-review-generator #wpbody-content {
	padding-top: 0;
	padding-bottom: 0;
}

.wrap.stprg-admin-wrap {
	margin: 0;
	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--stprg-text);
}

.stprg-admin-app {
	margin: 0 auto;
}

.stprg-header {
	display: flex;
	align-items: center;
	gap: 32px;
	border-bottom: 1px solid rgba(19, 21, 36, 0.08);
	flex-wrap: wrap;
	padding: 20px 30px;
	background: white;
}

.stprg-brand {
	display: flex;
	align-items: center;
	gap: 14px;
}

.stprg-brand img {
	width: 54px;
	height: 54px;
	object-fit: contain;
	filter: drop-shadow(0 6px 16px rgba(255, 138, 66, 0.35));
}

.stprg-brand-title {
	display: block;
	font-size: 19px;
	font-weight: 700;
	color: var(--stprg-text);
}

.stprg-brand-subtitle {
	font-size: 14px;
	color: #9aa2b1;
	font-weight: 500;
}

.stprg-nav {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	min-width: 0;
}

.stprg-nav-list {
	display: flex;
	align-items: center;
	gap: 42px;
	margin-left: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.stprg-nav-link {
	position: relative;
	font-weight: 600;
	text-decoration: none;
	color: #1d1f2c;
	padding-bottom: 10px;
	transition: color 0.2s ease, border-color 0.2s ease;
	font-size: 16px;
	background: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
	padding-left: 0;
	padding-right: 0;
}

.stprg-nav-link:visited {
	color: #1d1f2c;
}

.stprg-nav-link:hover,
.stprg-nav-link:focus {
	color: var(--stprg-primary);
}

.stprg-nav-link::after {
	content: "";
	position: absolute;
	left: -3px;
	width: calc(100% + 6px);
	bottom: 0;
	height: 4px;
	background: transparent;
	border-radius: 999px;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.2s ease, background 0.2s ease;
}

.stprg-nav-link:hover::after,
.stprg-nav-link:focus::after {
	background: rgba(255, 107, 44, 0.45);
	transform: scaleX(1);
}

.stprg-nav-link.is-active {
	color: var(--stprg-primary);
}

.stprg-nav-link.is-active::after {
	background: var(--stprg-primary);
	transform: scaleX(1);
}

.stprg-nav-link:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px rgba(255, 107, 44, 0.3);
	border-radius: 12px;
}

.stprg-nav .stprg-nav-link[aria-current='page'] {
	cursor: default;
	pointer-events: none;
}

.stprg-header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: 16px;
}

.stprg-icon-btn {
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	border: 1px solid rgba(111, 118, 134, 0.2);
	background: #ffffff;
	color: var(--stprg-muted);
	cursor: default;
}

.stprg-icon-btn:before {
	font-size: 15px;
	line-height: 1;
}

.stprg-header-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-left: auto;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.stprg-header-credits {
	display: inline-flex;
	align-items: center;
	padding: 6px 16px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 13px;
}

.stprg-header-upgrade {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border-radius: 999px;
	background-image: linear-gradient(120deg, #ff803d, #ff5b1a);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	font-size: 13px;
	box-shadow: 0 12px 28px rgba(255, 107, 44, 0.35);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stprg-credits--positive {
	background: rgba(32, 199, 115, 0.12);
	color: var(--stprg-success);
}

.stprg-credits--low {
	background: rgba(240, 68, 56, 0.14);
	color: #f04438;
}

.stprg-credits--zero {
	background: rgba(201, 42, 34, 0.2);
	color: #d92d20;
}

.stprg-header-upgrade:hover {
	color: #fff;
	background-image: linear-gradient(120deg, #ff5b1a, #ff803d);
	transform: translateY(-1px);
	box-shadow: 0 16px 32px rgba(255, 107, 44, 0.4);
}

.stprg-content {
	padding: 0px 30px 80px;
	display: flex;
	gap: 60px;
	align-items: start;
	justify-content: center;
}

.stprg-tabs {
	width: 100%;
}

.stprg-tab-panel {
	display: none;
}

.stprg-tab-panel.is-active {
	display: block;
}

.stprg-tab-panel[hidden] {
	display: none;
}

.stprg-main {
	width: 100%;
	display: grid;
	gap: 30px;
}

.stprg-main form {
	display: flex;
	flex-direction: column;
	gap: 30px;
}
.stprg-card {
	background: var(--stprg-card-bg);
	border: var(--stprg-border);
	border-radius: var(--stprg-radius-lg);
	box-shadow: var(--stprg-shadow);
	padding: 32px;
	position: relative;
}

.stprg-card h2 {
	margin-top: 0;
	margin-bottom: 22px;
	font-size: 26px;
	font-weight: 700;
	color: var(--stprg-text);
}

.stprg-field-grid {
	display: grid;
	gap: 24px;
}

.stprg-field-grid input {
	border-radius: var(--stprg-radius-md);
	border: 1px solid rgba(111, 116, 134, 0.18);
	padding: 14px;
	font-size: 15px;
	resize: vertical;
	line-height: 1.6;
	background: #ffffff;
}

.stprg-field-grid input:focus {
	border-color: var(--stprg-primary);
	box-shadow: 0 0 0 2px rgba(255, 107, 44, 0.18);
	outline: none;
}
.stprg-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 4px 0;
	position: relative;
}

.stprg-label {
	font-size: 14px;
	font-weight: 600;
}

.stprg-description {
	font-size: 13px;
	color: #8b93a7;
	margin: 0;
}

.stprg-description-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.stprg-description.is-note {
	color: var(--stprg-primary);
	font-weight: 600;
}

.stprg-description--subtle {
	margin-top: 12px;
}

.stprg-description--lock {
	margin-top: 6px;
	color: var(--stprg-primary);
	font-weight: 600;
}

.stprg-description--warning {
	margin-top: 8px;
	color: var(--stprg-primary);
	font-weight: 600;
}

.stprg-field.is-locked .stprg-label {
	color: #a5acbd;
}

.stprg-input,
.select2-container--default .select2-selection--multiple,
.select2-container--default .select2-selection--single {
	height: 48px;
	border-radius: var(--stprg-radius-md);
	border: 1px solid rgba(111, 118, 134, 0.2);
	padding: 0 14px;
	font-size: 15px;
	display: flex;
	align-items: center;
	background: #ffffff;
}

.select2-results__option--highlighted {
	background-color: #ff6b2c !important;	
}

.select2-results__option--selected {
	background-color: #ff6b2c54 !important;	
}

.stprg-input {
	width: 100%;
}

.stprg-input:focus {
	border-color: var(--stprg-primary);
	box-shadow: 0 0 0 2px rgba(255, 107, 44, 0.18);
	outline: none;
}

.stprg-input.is-locked {
	background: #f1f3fb;
	border-color: rgba(111, 118, 134, 0.2);
	color: #9aa2b1;
	cursor: not-allowed;
}

.stprg-field.is-locked .stprg-input:focus {
	border-color: var(--stprg-primary);
	box-shadow: 0 0 0 2px rgba(255, 107, 44, 0.18);
	outline: none;
}

.stprg-textarea {
	min-height: 180px;
	border-radius: var(--stprg-radius-md);
	border: 1px solid rgba(111, 116, 134, 0.18);
	padding: 14px;
	font-size: 15px;
	resize: vertical;
	line-height: 1.6;
	background: #ffffff;
}

.stprg-textarea:focus {
	border-color: var(--stprg-primary);
	box-shadow: 0 0 0 2px rgba(255, 107, 44, 0.18);
	outline: none;
}

.stprg-multi-inputs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 22px;
}

.stprg-footer {
	text-align: center;
	margin-top: 28px;
}

.stprg-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: none;
	border-radius: 10px;
	padding: 14px 28px;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background-image: linear-gradient(120deg, #ff803d, #ff5b1a);
	color: #fff;
	cursor: pointer;
	/* box-shadow: 0 14px 35px rgba(255, 107, 44, 0.35); */
	transition: background 0.2s ease, transform 0.2s ease;
	width: 100%;
}

.stprg-submit:hover {
	background-image: linear-gradient(120deg, #ff6f31, #ff4812);
	transform: translateY(-1px);
}

.stprg-submit:focus-visible {
	outline: 3px solid rgba(255, 107, 44, 0.35);
	outline-offset: 2px;
}

.stprg-submit.is-blocked {
	opacity: 0.65;
	cursor: pointer;
}

.stprg-submit.is-blocked:hover {
	transform: none;
}

.stprg-sidebar {
	/* width: 550px; */
	width: 50%;
	display: grid;
	gap: 32px;
	position: sticky;
	top: 40px;
}

.stprg-overview-card {
	box-shadow: 0 24px 55px rgba(255, 107, 44, 0.12);
}

.stprg-overview-credit-wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.stprg-overview-card h2 {
	margin-bottom: 22px;
}

.stprg-overview-card h3 {
	margin: 0 0 14px;
	font-size: 18px;
	font-weight: 700;
}

.stprg-credit-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 18px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 20px;
}

.stprg-stat-list {
	display: grid;
	gap: 14px;
	margin: 24px 0;
	padding: 0;
	list-style: none;
}

.stprg-stat-item {
	border-radius: var(--stprg-radius-md);
	padding: 18px 20px;
	background: var(--stprg-stat-bg);
	border: 1px solid rgba(230, 233, 243, 0.8);
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 600;
	color: var(--stprg-text);
}

.stprg-stat-item span {
	color: #8b93a7;
	font-weight: 500;
}

.stprg-stat-item strong {
	font-size: 18px;
}

.stprg-plugin-meta {
	display: grid;
	gap: 8px;
	margin: 16px 0 0;
	font-size: 14px;
	color: #8b93a7;
}

.stprg-plugin-meta strong {
	color: var(--stprg-text);
	font-weight: 600;
}

.stprg-license-status {
	color: var(--stprg-success);
	font-weight: 700;
}

.stprg-license-status.is-inactive {
	color: #f04438;
}

.stprg-plugin-meta div {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.stprg-plugin-meta div + div {
	margin-top: 6px;
}

.stprg-compare {
	display: flex;
	justify-content: center;
	padding: 16px 0 48px;
}

.stprg-compare-card {
	max-width: 820px;
	margin: 0 auto;
	text-align: left;
}

.stprg-compare-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin-top: 24px;
	font-size: 15px;
	color: var(--stprg-text);
}

.stprg-compare-table thead th {
	background: rgba(255, 107, 44, 0.08);
	padding: 14px 18px;
	font-weight: 700;
	text-align: left;
}

.stprg-compare-table tbody th,
.stprg-compare-table tbody td {
	padding: 16px 18px;
	border-bottom: 1px solid rgba(19, 21, 36, 0.08);
	vertical-align: top;
}

.stprg-compare-table tbody tr:last-child th,
.stprg-compare-table tbody tr:last-child td {
	border-bottom: none;
}

.stprg-compare-table tbody th {
	font-weight: 600;
	width: 40%;
}

.stprg-compare-table tbody td {
	color: #5c6273;
}

.stprg-upgrade-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 28px;
	padding: 14px 32px;
	background-image: linear-gradient(120deg, #ff803d, #ff5b1a);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	border-radius: 999px;
	box-shadow: 0 18px 35px rgba(255, 107, 44, 0.35);
	transition: transform 0.2s ease, background-position 0.2s ease;
}

.stprg-upgrade-btn:hover {
	background-image: linear-gradient(120deg, #ff5b1a, #ff803d);
	color: #fff;
	transform: translateY(-1px);
}

.stprg-license-card {
	max-width: 540px;
	margin: 0 auto;
	text-align: left;
}

.stprg-license-notice {
	margin: 22px 0;
	padding: 14px 18px;
	border-radius: 14px;
	font-weight: 600;
	font-size: 14px;
}

.stprg-license-notice--success {
	background: rgba(32, 199, 115, 0.12);
	border: 1px solid rgba(32, 199, 115, 0.4);
	color: var(--stprg-success);
}

.stprg-license-notice--error {
	background: rgba(255, 107, 44, 0.12);
	border: 1px solid rgba(255, 107, 44, 0.35);
	color: var(--stprg-primary-dark);
}

.stprg-license-form {
	margin-top: 24px;
	display: grid;
	gap: 18px;
}

.stprg-license-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: center;
}

.stprg-license-actions .stprg-submit {
	flex: 1 1 220px;
	max-width: 260px;
	width: auto;
}

.stprg-secondary-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 26px;
	border-radius: 999px;
	border: 1px solid rgba(19, 21, 36, 0.16);
	background: #ffffff;
	color: var(--stprg-text);
	font-weight: 600;
	flex: 1 1 180px;
	max-width: 220px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.stprg-secondary-btn:hover {
	color: var(--stprg-primary);
	border-color: rgba(255, 107, 44, 0.5);
	box-shadow: 0 10px 18px rgba(255, 107, 44, 0.15);
}

.stprg-modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.stprg-modal[aria-hidden='false'] {
	display: flex;
}

.stprg-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(13, 18, 28, 0.45);
}

.stprg-modal__dialog {
	position: relative;
	background: #ffffff;
	border-radius: 20px;
	max-width: 460px;
	width: calc(100% - 32px);
	padding: 32px;
	box-shadow: 0 28px 60px rgba(13, 18, 28, 0.25);
	z-index: 1;
}

.stprg-modal__close {
	position: absolute;
	top: 14px;
	right: 18px;
	border: none;
	background: transparent;
	color: #98a0b3;
	font-size: 26px;
	cursor: pointer;
}

.stprg-modal__content h2 {
	margin-top: 0;
	margin-bottom: 12px;
	font-size: 22px;
	font-weight: 700;
}

.stprg-modal__content p {
	margin-top: 0;
	margin-bottom: 24px;
	color: #5c6273;
}

.stprg-modal__actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.stprg-modal__actions .stprg-header-upgrade {
	box-shadow: 0 18px 38px rgba(255, 107, 44, 0.35);
}

.stprg-modal-open {
	overflow: hidden;
}

.select2-container {
	width: 100% !important;
}

.select2-container--default .select2-selection--multiple {
	min-height: 48px;
	padding: 8px 10px;
	background: #ffffff;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
	background: rgba(255, 107, 44, 0.12);
	border: none;
	border-radius: 999px;
	color: var(--stprg-primary);
	padding: 4px 12px;
	margin-top: 4px;
	font-size: 13px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
	color: var(--stprg-primary);
	margin-right: 3px;
	border: none;
	position: relative;
}

.select2-selection__clear {
	margin-top: 0px !important;
}

.select2-selection__clear span {
	margin-top: 0px !important;
	background: red !important;
    border-radius: 50px;
    color: white;
    padding: 0px 5px !important;
}
.select2-selection__rendered {
	margin: 0;
}
.select2-search__field {
	margin-top: 0px !important;
	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.select2-results__options {
	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	color: var(--stprg-text);
	line-height: 46px;
	padding-left: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 46px;
}

.select2-dropdown {
	/* border-radius: 16px !important; */
	border-color: rgba(111, 118, 134, 0.16) !important;
	box-shadow: 0 22px 40px rgba(21, 34, 50, 0.16) !important;
	overflow: hidden;
}

.select2-selection--multiple {
	height: auto !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
	border-radius: 10px !important;
	border-color: #ff6b2c;
}

.stprg-feedback {
	/* margin-bottom: 24px 0px; */
	padding: 30px;
}

.stprg-alert {
	padding: 16px 18px;
	border-radius: var(--stprg-radius-md);
	font-size: 14px;
	font-weight: 600;
	background: rgba(255, 107, 44, 0.12);
	color: var(--stprg-primary-dark);
	border: 1px solid rgba(255, 107, 44, 0.35);
}

.stprg-alert.is-success {
	background: rgba(32, 199, 115, 0.12);
	border-color: rgba(32, 199, 115, 0.45);
	color: var(--stprg-success);
}

@media (max-width: 1200px) {
	.stprg-content {
		grid-template-columns: 1fr;
	}

	.stprg-sidebar {
		grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	}
}

@media (max-width: 782px) {
	body.woocommerce_page_st-product-review-generator #wpcontent {
		padding-left: 12px;
		padding-right: 12px;
	}

	/* .wrap.stprg-admin-wrap {
		padding: 24px 12px 40px;
	} */

	.stprg-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}

	.stprg-header-meta {
		margin-left: 0;
		width: 100%;
		justify-content: space-between;
	}

	.stprg-header-actions {
		margin-left: 0;
	}

	.stprg-nav {
		flex-wrap: wrap;
	}

	.stprg-footer {
		text-align: center;
	}

	.stprg-submit {
		width: 100%;
	}
}
