/* WebRise Review Bar — Frontend Styles */

.wr-review-bar {
	position: fixed;
	left: 0; right: 0;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
	animation: wrReviewSlideIn .4s cubic-bezier(.22,1,.36,1) both;
	box-sizing: border-box;
}
.wr-review-bar *, .wr-review-bar *::before, .wr-review-bar *::after { box-sizing: border-box; }
.wr-review-bar--bottom { bottom: 0; }
.wr-review-bar--top { top: 0; }

@keyframes wrReviewSlideIn {
	from { transform: translateY(100%); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

.wr-review-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 24px;
	background: rgba(26, 26, 31, .96);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-top: 1px solid rgba(255,255,255,.08);
	color: #fff;
}

.wr-review-bar__info {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.wr-review-bar__badge {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: -.01em;
}

.wr-review-bar__customer {
	font-size: 13px;
	color: rgba(255,255,255,.5);
}

.wr-review-bar__actions {
	display: flex;
	gap: 8px;
}

.wr-review-bar__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border: 1.5px solid rgba(255,255,255,.15);
	border-radius: 8px;
	background: transparent;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all .15s;
	font-family: inherit;
	white-space: nowrap;
}

.wr-review-bar__btn:hover {
	background: rgba(255,255,255,.08);
	border-color: rgba(255,255,255,.25);
}

.wr-review-bar__btn--approve {
	background: var(--btn-color, #b3e31e);
	color: #1a1a1a;
	border-color: var(--btn-color, #b3e31e);
}
.wr-review-bar__btn--approve:hover {
	opacity: .9;
}

.wr-review-bar__minimize {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	border: 1px solid rgba(255,255,255,.1);
	background: transparent;
	color: rgba(255,255,255,.4);
	font-size: 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: all .15s;
}
.wr-review-bar__minimize:hover {
	background: rgba(255,255,255,.08);
	color: #fff;
}

/* Minimized state */
.wr-review-bar.minimized .wr-review-bar__inner {
	justify-content: center;
	padding: 8px 16px;
}
.wr-review-bar.minimized .wr-review-bar__info,
.wr-review-bar.minimized .wr-review-bar__actions { display: none; }

/* Modal */
.wr-review-modal {
	position: fixed;
	inset: 0;
	z-index: 9999999;
	display: none;
	align-items: center;
	justify-content: center;
}

.wr-review-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.5);
	backdrop-filter: blur(4px);
}

.wr-review-modal__content {
	position: relative;
	background: #fff;
	border-radius: 16px;
	padding: 28px;
	max-width: 480px;
	width: 90%;
	box-shadow: 0 24px 80px rgba(0,0,0,.3);
	animation: wrModalFadeIn .3s ease both;
}

@keyframes wrModalFadeIn {
	from { opacity: 0; transform: scale(.95) translateY(10px); }
	to { opacity: 1; transform: scale(1) translateY(0); }
}

.wr-review-modal__title {
	font-size: 18px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 16px;
}

.wr-review-modal__textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid #e0e0e0;
	border-radius: 10px;
	font-size: 14px;
	font-family: inherit;
	resize: vertical;
	outline: none;
	transition: border-color .15s;
}
.wr-review-modal__textarea:focus {
	border-color: #b3e31e;
}

.wr-review-modal__actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 16px;
}

.wr-review-modal__cancel {
	padding: 8px 18px;
	border: 1.5px solid #e0e0e0;
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	color: #555;
}

.wr-review-modal__submit {
	padding: 8px 18px;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	color: #1a1a1a;
}

/* Success animation */
.wr-review-bar__success {
	display: none;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #b3e31e;
	animation: wrSuccessPop .4s ease both;
}
@keyframes wrSuccessPop {
	0% { transform: scale(.8); opacity: 0; }
	60% { transform: scale(1.1); }
	100% { transform: scale(1); opacity: 1; }
}

/* Mobile */
@media (max-width: 767px) {
	.wr-review-bar__inner {
		flex-wrap: wrap;
		padding: 10px 16px;
		gap: 10px;
	}
	.wr-review-bar__actions {
		width: 100%;
		justify-content: center;
	}
	.wr-review-bar__btn {
		padding: 7px 12px;
		font-size: 12px;
	}
}
