/**
 * ZipWP NPS Survey Styles
 *
 * @package zipwp-client
 * @since 1.3.2
 */

@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;600&display=swap");

#zipwpNpsSurveyPopup {
	position: fixed;
	bottom: 16px;
	right: 16px;
	width: 480px;
	max-width: calc( 100vw - 32px );
	background: #1f2937;
	border-radius: 8px;
	padding: 24px;
	color: #fff;
	box-shadow: 0 4px 20px rgba( 0, 0, 0, 0.5 );
	font-family: Figtree, sans-serif;
	z-index: 10000;
	border: 1px solid #374151;
}

.zipwp-nps-survey-title {
	font-size: 14px;
	margin-bottom: 8px;
	color: #9ca3af;
	font-weight: 400;
}

.zipwp-nps-survey-question {
	font-size: 16px;
	margin-bottom: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: #fff;
}

.zipwp-nps-score-container {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
	flex-wrap: wrap;
	justify-content: flex-start;
}

.zipwp-nps-score {
	flex: 0 0 calc( 10% - 7.2px );
	min-width: 32px;
	height: 40px;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	border: 1px solid #4b5563;
	cursor: pointer;
	transition: all 0.2s;
	font-weight: 600;
	font-size: 14px;
	color: #fff;
	background: #1f2937;
}

@media ( max-width: 480px ) {
	.zipwp-nps-score {
		flex: 1 1 calc( 20% - 6.4px );
		max-width: 40px;
	}
}

.zipwp-nps-score:hover {
	background-color: #f2f4f7;
	color: #1f2937;
	border-color: #f2f4f7;
}

.zipwp-nps-score.selected {
	background-color: #3d4592;
	border-color: #3d4592;
	color: #fff;
}

.zipwp-nps-tag-container {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.zipwp-nps-tag {
	padding: 6px 12px;
	border-radius: 9999px;
	cursor: pointer;
	font-size: 12px;
	font-weight: 500;
	border: 1px solid #4b5563;
	background: #1d2939;
	color: #9ca3af;
	transition: all 0.2s;
	user-select: none;
}

.zipwp-nps-tag:hover {
	background: #344054;
	color: #fff;
}

.zipwp-nps-tag.selected {
	background: #3d4592;
	border-color: #3d4592;
	color: #fff;
}

.zipwp-nps-feedback-textarea {
	width: 100%;
	min-height: 96px;
	max-height: 200px;
	resize: vertical;
	padding: 8px 12px;
	border-radius: 6px;
	border: 1px solid #4b5563;
	background: #1f2937;
	color: #fff;
	box-sizing: border-box;
	font-family: Figtree, sans-serif;
	font-size: 14px;
	margin-bottom: 12px;
}

.zipwp-nps-feedback-textarea:hover {
	border-color: #6b7280;
}

.zipwp-nps-feedback-textarea:focus {
	outline: none;
	border-color: #3d4592;
	background: #1f2937 !important;
	color: #fff !important;
}

.zipwp-nps-buttons {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	height: 36px;
}

#zipwpNpsSurveyPopup .zipwp-nps-btn {
	padding: 8px 16px !important;
	border-radius: 6px !important;
	cursor: pointer !important;
	border: none !important;
	transition: all 0.2s !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	font-family: Figtree, sans-serif !important;
	line-height: 1.5 !important;
	text-decoration: none !important;
	display: inline-block !important;
	box-shadow: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
}

#zipwpNpsSurveyPopup .zipwp-nps-btn-primary {
	background-color: #3d4592 !important;
	color: #fff !important;
	border: none !important;
}

#zipwpNpsSurveyPopup .zipwp-nps-btn-primary:hover:not( :disabled ) {
	background-color: #4f56a8 !important;
	color: #fff !important;
}

#zipwpNpsSurveyPopup .zipwp-nps-btn-primary:disabled {
	opacity: 0.5 !important;
	cursor: not-allowed !important;
}

#zipwpNpsSurveyPopup .zipwp-nps-btn-secondary {
	background-color: #374151 !important;
	color: #fff !important;
	border: 1px solid #4b5563 !important;
}

#zipwpNpsSurveyPopup .zipwp-nps-btn-secondary:hover {
	background-color: #4b5563 !important;
	color: #fff !important;
}

#zipwpNpsSurveyPopup .zipwp-nps-btn-blank {
	background-color: transparent !important;
	color: #fff !important;
	padding: 8px 0 !important;
	border: none !important;
}

#zipwpNpsSurveyPopup .zipwp-nps-btn-blank:hover {
	color: #d1d5db !important;
	background-color: transparent !important;
}

.zipwp-nps-close-btn {
	position: absolute;
	top: 12px;
	right: 12px;
	cursor: pointer;
	font-size: 24px;
	color: #9ca3af;
	line-height: 1;
	padding: 4px 8px;
	transition: color 0.2s;
}

.zipwp-nps-close-btn:hover {
	color: #fff;
}

.zipwp-nps-countdown-text {
	font-size: 12px;
	font-weight: 500;
	color: #9ca3af;
}

.zipwp-nps-center-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 24px;
	padding: 16px 0;
	text-align: center;
}
