/* =============================================================
   Captain Widgets Kit — Deactivation Feedback Modal
   assets/css/deactivate-feedback.css
   ============================================================= */

/* ── Global CSS Variables ────────────────────────────────────── */
#cwk-deactivate-modal {
	--cwk-primary:            #059669;
	--cwk-primary-dark:       #4A745B;
	--cwk-primary-light:      #ecfdf5;
	--cwk-primary-mid:        #d1fae5;
	--cwk-primary-border:     #6ee7b7;
	--cwk-primary-shadow:     rgba( 5, 150, 105, 0.2 );
	--cwk-primary-btn-shadow: rgba( 5, 150, 105, 0.35 );
}

/* ── Overlay ─────────────────────────────────────────────────── */
#cwk-deactivate-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba( 15, 15, 25, 0.65 );
	-webkit-backdrop-filter: blur( 4px );
	backdrop-filter: blur( 4px );
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ── Modal Box ──────────────────────────────────────────────── */
#cwk-deactivate-modal {
	background: #ffffff;
	border-radius: 16px;
	padding: 32px 36px 28px;
	width: 520px;
	max-width: 94vw;
	box-shadow: 0 24px 64px rgba( 0, 0, 0, 0.22 );
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
	position: relative;
	-webkit-animation: cwkSlideIn 0.28s cubic-bezier( 0.34, 1.56, 0.64, 1 ) both;
	animation: cwkSlideIn 0.28s cubic-bezier( 0.34, 1.56, 0.64, 1 ) both;
}

@-webkit-keyframes cwkSlideIn {
	from {
		opacity: 0;
		-webkit-transform: translateY( 18px ) scale( 0.97 );
		transform: translateY( 18px ) scale( 0.97 );
	}
	to {
		opacity: 1;
		-webkit-transform: none;
		transform: none;
	}
}

@keyframes cwkSlideIn {
	from {
		opacity: 0;
		transform: translateY( 18px ) scale( 0.97 );
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* ── Header ─────────────────────────────────────────────────── */
.cwk-modal-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f0f0f0;
	margin-bottom: 20px;
}

.cwk-modal-logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
}

.cwk-modal-logo img {
	width: 22px;
	height: 22px;
	display: block;
	border-radius: 4px;
}

.cwk-modal-title {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #1a1a2e;
	flex: 1;
	margin: 0;
	padding: 0;
	border: none;
	background: none;
	box-shadow: none;
}

.cwk-modal-close {
	background: none;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 18px;
	color: #999;
	cursor: pointer;
	line-height: 1;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: color 0.15s, border-color 0.15s;
	flex-shrink: 0;
}

.cwk-modal-close:hover {
	color: #333;
	border-color: #aaa;
}

/* ── Question Text ──────────────────────────────────────────── */
.cwk-modal-question {
	font-size: 15px;
	color: #2d2d3a;
	line-height: 1.6;
	margin: 0 0 20px;
}

.cwk-modal-question strong {
	color: #1a1a2e;
}

/* ── Thumb Toggle ───────────────────────────────────────────── */
.cwk-thumb-row {
	display: flex;
	gap: 12px;
	margin-bottom: 20px;
}

.cwk-thumb-btn {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 14px 10px;
	border: 2px solid #e5e5ef;
	border-radius: 12px;
	background: #fafafa;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: #666;
	transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.cwk-thumb-btn:hover {
	border-color: var( --cwk-primary-border );
	background: var( --cwk-primary-light );
	color: var( --cwk-primary-dark );
}

.cwk-thumb-btn.cwk-thumb-active {
	border-color: var( --cwk-primary );
	background: linear-gradient( 135deg, var( --cwk-primary-light ), var( --cwk-primary-mid ) );
	color: var( --cwk-primary-dark );
	box-shadow: 0 4px 14px var( --cwk-primary-shadow );
}

.cwk-thumb-icon {
	font-size: 26px;
}

/* ── Like it — optional message textarea ───────────────────── */
#cwk-like-section {
	margin-bottom: 4px;
}

#cwk-like-section textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 14px;
	border: 1.5px solid #ddd;
	border-radius: 10px;
	font-size: 13px;
	color: #333;
	font-family: inherit;
	resize: vertical;
	transition: border-color 0.15s;
	min-height: 80px;
}

#cwk-like-section textarea:focus {
	outline: none;
	border-color: var( --cwk-primary );
}

/* ── Reasons List ───────────────────────────────────────────── */
.cwk-reasons {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cwk-reason-label {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	color: #3a3a4a;
	cursor: pointer;
	padding: 10px 14px;
	border: 1.5px solid transparent;
	border-radius: 10px;
	transition: background 0.15s, border-color 0.15s;
	-webkit-user-select: none;
	user-select: none;
}

.cwk-reason-label:hover {
	background: var( --cwk-primary-light );
	border-color: var( --cwk-primary-border );
}

.cwk-reason-label input[type="radio"] {
	display: none;
}

.cwk-radio-circle {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	border: 2px solid #ccc;
	border-radius: 50%;
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
	position: relative;
	box-sizing: border-box;
}

.cwk-reason-label.cwk-reason-selected .cwk-radio-circle {
	border-color: var( --cwk-primary );
	background: var( --cwk-primary );
	box-shadow: inset 0 0 0 3px #fff;
}

.cwk-reason-label.cwk-reason-selected {
	background: var( --cwk-primary-light );
	border-color: var( --cwk-primary-border );
	color: var( --cwk-primary-dark );
	font-weight: 600;
}

/* ── Not Like it detail textarea ────────────────────────────── */
#cwk-message-wrap {
	margin-top: 12px;
}

#cwk-message {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 14px;
	border: 1.5px solid #ddd;
	border-radius: 10px;
	font-size: 13px;
	color: #333;
	font-family: inherit;
	resize: vertical;
	transition: border-color 0.15s;
	min-height: 80px;
}

#cwk-message:focus {
	outline: none;
	border-color: var( --cwk-primary );
}

/* ── Footer ─────────────────────────────────────────────────── */
.cwk-modal-footer {
	display: flex;
	align-items: center;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #f0f0f0;
}

.cwk-btn-primary {
	padding: 11px 26px;
	background: linear-gradient( 135deg, var( --cwk-primary ), var( --cwk-primary-dark ) );
	color: #ffffff;
	border: none;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.15s, transform 0.1s;
	box-shadow: 0 4px 14px var( --cwk-primary-btn-shadow );
	font-family: inherit;
	text-decoration: none;
	line-height: 1.4;
}

.cwk-btn-primary:hover {
	opacity: 0.9;
	transform: translateY( -1px );
	color: #ffffff;
}

.cwk-btn-primary:disabled {
	opacity: 0.65;
	cursor: not-allowed;
	transform: none;
}

/* ── Skip Button ────────────────────────────────────────────── */
.cwk-btn-ghost {
	background: none;
	border: none;
	font-size: 14px;
	color: #888;
	cursor: pointer;
	padding: 0 4px;
	font-family: inherit;
	transition: color 0.15s;
	text-decoration: none;
	line-height: 1.4;
}

.cwk-btn-ghost:hover {
	color: #333;
}

.cwk-btn-ghost:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Footer gap between buttons */
.cwk-modal-footer {
	gap: 16px;
}
