/* ============================================================
   WooCommerce Review Editor — Admin Styles
   ============================================================ */

/* Wrapper */
.wre-wrap {
	padding: 4px 0 8px;
}

/* Individual field */
.wre-field {
	margin-bottom: 20px;
}

.wre-field label {
	display: block;
	font-weight: 600;
	font-size: 13px;
	color: #1d2327;
	margin-bottom: 6px;
}

/* Text inputs + textarea + select */
.wre-field input[type="text"],
.wre-field input[type="date"],
.wre-field input[type="time"],
.wre-field textarea,
.wre-field select {
	width: 100%;
	max-width: 600px;
	padding: 8px 10px;
	font-size: 14px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	background: #fff;
	color: #2c3338;
	box-sizing: border-box;
	transition: border-color 0.15s;
}

.wre-field input[type="text"]:focus,
.wre-field input[type="date"]:focus,
.wre-field input[type="time"]:focus,
.wre-field textarea:focus,
.wre-field select:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	outline: none;
}

.wre-field textarea {
	resize: vertical;
	min-height: 100px;
	font-family: inherit;
	line-height: 1.5;
}

/* Date + time side by side */
.wre-field--row {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	flex-wrap: wrap;
}

.wre-field--row > div {
	flex: 1;
	min-width: 140px;
	max-width: 220px;
}

.wre-field--randomize {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	min-width: 160px;
	max-width: 200px;
}

.wre-field--randomize .button {
	margin-top: 2px;
	font-size: 13px;
}

.wre-field--randomize .wre-hint {
	margin-top: 5px;
}

/* Flash animation when date is randomized */
@keyframes wre-flash {
	0%   { background: #fff8e1; }
	60%  { background: #fff8e1; }
	100% { background: #fff; }
}

.wre-randomized {
	animation: wre-flash 0.8s ease-out;
	border-color: #f0ad00 !important;
}

/* Star rating UI */
.wre-stars {
	display: flex;
	gap: 6px;
	margin-bottom: 4px;
}

.wre-star {
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	color: #ddd;
	transition: color 0.1s, transform 0.1s;
	user-select: none;
}

.wre-star:hover,
.wre-star.hover {
	color: #f0ad00;
	transform: scale(1.15);
}

.wre-star.active {
	color: #f0ad00;
}

/* Hint text */
.wre-hint {
	margin: 4px 0 0;
	font-size: 12px;
	color: #646970;
	font-style: italic;
}

.wre-hint strong {
	color: #2c3338;
	font-style: normal;
}

/* Badge in comment row actions */
.wre-badge {
	display: inline-block;
	background: #f0ad00;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 1px 6px;
	border-radius: 10px;
	margin-left: 4px;
	vertical-align: middle;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

/* Success / error notice */
.wre-notice {
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 500;
}

.wre-notice.success {
	background: #edfaef;
	border-left: 4px solid #00a32a;
	color: #1a5c2a;
}

.wre-notice.error {
	background: #fdf2f2;
	border-left: 4px solid #d63638;
	color: #8a1f1f;
}

/* Buy Me a Coffee banner */
.wre-coffee-banner {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
	padding: 12px 16px;
	background: #fffbf0;
	border: 1px solid #f0e0a0;
	border-radius: 6px;
	font-size: 13px;
	color: #5a4a00;
}

.wre-coffee-icon {
	font-size: 22px;
	line-height: 1;
	flex-shrink: 0;
}

.wre-coffee-text {
	line-height: 1.5;
}

.wre-coffee-text a {
	color: #a0522d;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px dashed #a0522d;
}

.wre-coffee-text a:hover {
	color: #7a3a1e;
	border-bottom-style: solid;
}

/* Meta box header tweak */
#woo-review-editor-box .postbox-header h2 {
	font-size: 14px;
}
