/**
 * WooCommerce EAN Nemhandel - Blocks styles
 *
 * @package WC_EAN_Nemhandel
 */

.wc-ean-nemhandel-fields {
	padding: 1rem 0;
}

.wc-ean-nemhandel-description {
	margin-bottom: 1rem;
	color: #666;
	font-size: 0.9em;
}

.wc-ean-nemhandel-field {
	margin-bottom: 1rem;
}

.wc-ean-nemhandel-field:last-child {
	margin-bottom: 0;
}

.wc-ean-nemhandel-field label {
	display: block;
	margin-bottom: 0.25rem;
	font-weight: 600;
	font-size: 0.9em;
}

.wc-ean-nemhandel-field label .required {
	color: #cc1818;
}

.wc-ean-nemhandel-field input {
	width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	font-size: 1em;
	line-height: 1.5;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.wc-ean-nemhandel-field input:focus {
	border-color: #007cba;
	box-shadow: 0 0 0 1px #007cba;
	outline: none;
}

.wc-ean-nemhandel-field input.has-error {
	border-color: #cc1818;
}

.wc-ean-nemhandel-field input.has-error:focus {
	box-shadow: 0 0 0 1px #cc1818;
}

.wc-ean-nemhandel-field input.has-success {
	border-color: #00a32a;
}

.wc-ean-nemhandel-field input.has-success:focus {
	box-shadow: 0 0 0 1px #00a32a;
}

.wc-ean-nemhandel-field input::placeholder {
	color: #a7aaad;
}

/* Input wrapper for potential icons */
.wc-ean-input-wrapper {
	position: relative;
}

/* Validation status feedback */
.wc-ean-status {
	display: flex;
	align-items: center;
	margin-top: 0.5rem;
	padding: 0.5rem 0.75rem;
	border-radius: 4px;
	font-size: 0.875em;
	line-height: 1.4;
}

.wc-ean-status-icon {
	margin-right: 0.5rem;
	font-size: 1.1em;
}

.wc-ean-status-message {
	flex: 1;
}

.wc-ean-status--loading {
	background-color: #f0f6fc;
	border: 1px solid #c5d9ed;
	color: #1d4ed8;
}

.wc-ean-status--loading .wc-ean-status-icon {
	animation: ean-spin 1s linear infinite;
}

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

.wc-ean-status--success {
	background-color: #edfaef;
	border: 1px solid #b8e6bf;
	color: #00450c;
}

.wc-ean-status--success .wc-ean-status-icon {
	color: #00a32a;
	font-weight: bold;
}

.wc-ean-status--error {
	background-color: #fcf0f1;
	border: 1px solid #f1c8c8;
	color: #8a1919;
}

.wc-ean-status--error .wc-ean-status-icon {
	color: #cc1818;
	font-weight: bold;
}

/* Error messages for other fields */
.wc-ean-nemhandel-error {
	display: block;
	margin-top: 0.25rem;
	color: #cc1818;
	font-size: 0.85em;
}

/* Classic checkout styles */
#wc-ean_nemhandel-form .form-row {
	margin-bottom: 1rem;
}

#wc-ean_nemhandel-form .form-row label {
	display: block;
	margin-bottom: 0.25rem;
}

#wc-ean_nemhandel-form .form-row label .required {
	color: #cc1818;
}

/* Admin order page styles */
.ean-nemhandel-data {
	margin-top: 1.5rem;
	padding: 1rem;
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
}

.ean-nemhandel-data h3 {
	margin-top: 0;
	margin-bottom: 0.75rem;
	font-size: 1.1em;
}

.ean-nemhandel-data p {
	margin: 0.5rem 0;
}

.ean-nemhandel-data p:last-child {
	margin-bottom: 0;
}
