/**
 * Amazon Shipment Sync Styles
 *
 * Styles for the shipment confirmation meta box.
 *
 * @package MOMCS_Sync
 */

/* Meta box container */
.momcs-shipment-metabox {
	padding: 12px;
}

/* Shipment info */
.momcs-shipment-info {
	margin-bottom: 20px;
	padding: 10px;
	background: #f9f9f9;
	border-left: 4px solid #ea580c;
}

.momcs-shipment-info p {
	margin: 0;
}

/* Existing shipments table */
.momcs-existing-shipments {
	margin-bottom: 25px;
}

.momcs-existing-shipments h4 {
	margin-top: 0;
	margin-bottom: 12px;
	font-size: 14px;
	font-weight: 600;
}

.momcs-existing-shipments table {
	margin-bottom: 0;
}

.momcs-existing-shipments th,
.momcs-existing-shipments td {
	padding: 8px;
	font-size: 13px;
}

/* Shipment form */
.momcs-shipment-form h4 {
	margin-top: 0;
	margin-bottom: 15px;
	font-size: 14px;
	font-weight: 600;
	border-bottom: 1px solid #ddd;
	padding-bottom: 8px;
}

/* Packages container */
.momcs-packages-container {
	margin-bottom: 20px;
}

/* Individual package */
.momcs-package {
	margin-bottom: 20px;
	padding: 15px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.momcs-package-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 1px solid #e5e5e5;
}

.momcs-package-header h4 {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #23282d;
}

.momcs-remove-package-btn {
	padding: 4px 8px;
	color: #b32d2e;
	border-color: #b32d2e;
	background: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 4px;
}

.momcs-remove-package-btn:hover {
	color: #fff;
	background: #b32d2e;
	border-color: #b32d2e;
}

.momcs-remove-package-btn .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
}

/* Package fields */
.momcs-package-fields {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.momcs-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}

.momcs-field {
	display: flex;
	flex-direction: column;
}

.momcs-field label {
	margin-bottom: 5px;
	font-weight: 600;
	font-size: 13px;
	color: #23282d;
}

.momcs-field label .required {
	color: #d63638;
}

.momcs-field input[type="text"],
.momcs-field input[type="datetime-local"],
.momcs-field input[type="number"] {
	padding: 6px 8px;
	font-size: 13px;
	line-height: 1.4;
	border: 1px solid #8c8f94;
	border-radius: 3px;
	background-color: #fff;
}

.momcs-field input[type="text"]:focus,
.momcs-field input[type="datetime-local"]:focus,
.momcs-field input[type="number"]:focus {
	border-color: #ea580c;
	outline: 1px solid #ea580c;
	box-shadow: 0 0 0 1px #ea580c;
}

/* Order items selection */
.momcs-order-items {
	max-height: 250px;
	overflow-y: auto;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 3px;
	background: #fafafa;
}

.momcs-order-item {
	margin-bottom: 10px;
	padding: 8px;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 3px;
	transition: border-color 0.2s;
}

.momcs-order-item:hover {
	border-color: #ea580c;
}

.momcs-order-item.disabled {
	opacity: 0.5;
	pointer-events: none;
	background: #f5f5f5;
}

.momcs-order-item label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	cursor: pointer;
	font-weight: normal;
}

.momcs-order-item .item-checkbox {
	margin: 0;
	flex-shrink: 0;
}

.momcs-order-item .item-title {
	flex: 1;
	font-size: 13px;
}

.momcs-order-item .item-quantity {
	font-size: 12px;
	color: #646970;
}

.momcs-order-item .item-quantity-input {
	width: 60px;
	padding: 2px 6px;
	font-size: 12px;
	margin-left: auto;
}

/* Add package button */
.momcs-add-package-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

/* Shipment actions */
.momcs-shipment-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
	padding-top: 15px;
	border-top: 1px solid #ddd;
}

.momcs-confirm-shipment-btn {
	font-size: 14px;
	padding: 6px 12px;
}

.momcs-shipment-actions .spinner {
	margin: 0;
	float: none;
}

/* Messages */
.momcs-shipment-message {
	margin-top: 15px;
	padding: 12px;
	border-left: 4px solid;
}

.momcs-shipment-message.notice-success {
	background: #edfaef;
	border-color: #00a32a;
}

.momcs-shipment-message.notice-error {
	background: #fcf0f1;
	border-color: #d63638;
}

.momcs-shipment-message.notice-warning {
	background: #fcf9e8;
	border-color: #dba617;
}

.momcs-shipment-message p {
	margin: 0;
	font-size: 13px;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
	.momcs-field-row {
		grid-template-columns: 1fr;
	}

	.momcs-package-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.momcs-remove-package-btn {
		align-self: flex-end;
	}
}

/* Notice inline override for WordPress compatibility */
.momcs-shipment-metabox .notice.inline {
	margin: 0 0 15px 0;
	padding: 8px 12px;
}




