/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Priority Tags Section */
.priority-tags-section {
	margin-bottom: 1rem;
}

.priority-tags {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

/* Tag Labels with Remove Button */
.priority-tags .label {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding-right: 0.25rem;
}

.priority-tags .remove-tag {
	background: none;
	border: none;
	color: inherit;
	font-size: 1.2em;
	line-height: 1;
	padding: 0 0.25rem;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.2s;
}

.priority-tags .remove-tag:hover {
	opacity: 1;
}

/* Color Coding */
.priority-tags .label.alert {
	background-color: #cc4b37; /* Red for Banned */
	color: #fff;
}

.priority-tags .label.warning {
	background-color: #ffae00; /* Amber for Watchlist */
	color: #0a0a0a;
}

.priority-tags .label.success {
	background-color: #3adb76; /* Green for VIP/Top Spender */
	color: #0a0a0a;
}

/* Add Tag Button and Popup */
.priority-tags .add-tag-wrapper {
	position: relative;
	display: inline-block;
}

.add-tag-button {
	background: #3adb76;
	color: #0a0a0a;
	border: none;
	border-radius: 50%;
	width: 1.5rem;
	height: 1.5rem;
	font-size: 1.2em;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s, transform 0.1s;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.add-tag-button:hover {
	background: #22bb5b;
	transform: scale(1.1);
}

.add-tag-popup {
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 0.25rem;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	min-width: 150px;
	z-index: 1000;
}

.tag-option {
	padding: 0.5rem 0.75rem;
	cursor: pointer;
	transition: background-color 0.2s;
}

.tag-option:hover {
	background-color: #f0f0f0;
}

.tag-option:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
}

.tag-option:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
}

/* Spinner */
.tag-spinner {
	display: inline-block;
	animation: spin 1s linear infinite;
	font-size: 1.2em;
}

@keyframes spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* Customer Notes Section */

.customer-notes-section h4 {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.add-note-wrapper {
	padding: 1rem;
	border-bottom: 1px solid #ddd;
	margin-bottom: 1rem;
}

.add-note-form .form-row {
	margin-bottom: 1rem;
}

.add-note-form .form-row:last-child {
	margin-bottom: 0;
}

.add-note-form .form-row-inline {
	display: flex;
	gap: 0.5rem;
	align-items: center;
}

.add-note-form textarea {
	width: 100%;
	max-width: 600px;
}

.add-note-form select {
	flex: 1;
	max-width: 200px;
}

/* Notes List */
.notes-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.note-item {
	padding: 1rem;
	border-bottom: 1px solid #ddd;
}

.note-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 0.75rem;
	flex-wrap: wrap;
}


.note-category.category-events {
	background-color: #3adb76;
	color: #0a0a0a;
}

.note-category.category-customer-management {
	background-color: #1779ba;
	color: #fff;
}

.note-category.category-subscriptions {
	background-color: #ffae00;
	color: #0a0a0a;
}

.note-category.category-shipping {
	background-color: #8a8a8a;
	color: #fff;
}

.note-category.category-premium-gifts {
	background-color: #cc4b37;
	color: #fff;
}

.note-category.category-other {
	background-color: #e6e6e6;
	color: #0a0a0a;
}

.note-meta {
	font-size: 0.875rem;
	color: #666;
}

.note-content {
	margin-bottom: 0.75rem;
	line-height: 1.6;
}

.note-content textarea {
	width: 100%;
	max-width: 600px;
}

.note-content select {
	margin-bottom: 0.5rem;
}

.note-actions {
	display: flex;
	gap: 1rem;
}

.note-actions a {
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	font-size: 10px;
}

.note-actions a:hover {
	opacity: 0.7;
}

.no-notes {
	color: #666;
	font-style: italic;
}

/* Notes Spinner */
.notes-spinner {
	display: inline-block;
	animation: spin 1s linear infinite;
	font-size: 1.2em;
}