/* Status modal - start */
.alsendo_connect_status_modal {
	display: none;
	position: absolute;
	z-index: 99999999999
}
.alsendo_connect_status_modal.active {
	display: block;
}
.modalCover {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	opacity: 0.8;
	-moz-opacity: 0.8;
	background: #000;
	z-index: 912931293923
}
.modalContext {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	padding: 20px 30px;
	border-radius: 4px;
	font-size: 16px;
	z-index: 91293129392323;
	max-height: 80vh; /* Set maximum height to 80% of viewport height */
	max-width: 90vw; /* Set maximum width to 90% of viewport width */
	overflow-y: auto; /* Enable vertical scrolling */
	overflow-x: hidden; /* Hide horizontal scrolling */
}

/* Add smooth scrolling */
.modalContext::-webkit-scrollbar {
	width: 8px;
}

.modalContext::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 4px;
}

.modalContext::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 4px;
}

.modalContext::-webkit-scrollbar-thumb:hover {
	background: #555;
}
.alsendo_connect_status_modal_text_wrapper {
	text-align: center;
}
.alsendo_connect_status_modal_title {
	text-align: center;
}
.alsendo_connect_status_modal_text {
	text-align: center;
}

.alsendo_connect_status_modal_text > p {
	margin-bottom: 5px;
	margin-top: 0;
}

.alsendo_connect_status_modal_close_button {
	border: 0 !important;
	font-size: 19px !important;
	font-weight: 400;
	line-height: 28px;
	box-shadow: 0 15px 30px -18px rgba(0,0,0,90%) !important;
	color: #fff;
	-webkit-transition: all .3s;
	transition: all .3s;
	display: block;
	vertical-align: middle;
	text-align: center;
	background-color: #2DF7C2;
	padding: 7px 30px 12px 30px;
	margin-top: 20px;
	margin-left: auto;
	margin-right: auto;
	border-radius: 5px;
	margin-bottom: 15px;
}
.alsendo_connect_status_modal_close_button:hover {
	cursor: pointer;
}
.alsendo_connect_status_modal_text_wrapper > img {
	max-width: 100px;
}

.alsendo_connect_status_modal_text {
	min-width: 270px;
}

.tracking-events {
	border-collapse: collapse;
	width: 100%;
}

.tracking-events th,
.tracking-events td {
	border: 1px solid #ddd;
	padding: 8px;
	text-align: left;
}

.tracking-events th {
	background-color: #f2f2f2;
}
.tracking-events-container {
	max-height: 40vh;
	overflow-y: auto;
}

.tracking-events {
	width: 100%;
}

.tracking-events thead {
	position: sticky;
	top: 0;
	background-color: #fff;
	z-index: 1;
}

.shipment-details {
	padding: 10px;
}

.info-grid {
	display: grid;
	gap: 15px;
}

.sender-receiver {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}

.section {
	background: #f8f8f8;
	padding: 15px;
	border-radius: 4px;
}

.section h4 {
	margin: 0 0 8px 0;
	color: #333;
	font-size: 14px;
}

.section p {
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
}

.details-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
}

.detail-item {
	display: flex;
	flex-direction: column;
}

.detail-item label {
	font-weight: bold;
	font-size: 12px;
	color: #666;
	margin-bottom: 2px;
}

.detail-item span {
	font-size: 13px;
}


/* Close button X styling */
.alsendo_connect_status_modal_close {
	position: absolute;
	top: 10px;
	right: 10px;
	cursor: pointer;
}

.close-x {
	font-size: 24px;
	font-weight: bold;
	color: #666;
	line-height: 1;
}

.close-x:hover {
	color: #333;
}

/* Action buttons container */
.alsendo_connect_status_modal_action {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-top: 20px;
}

/* Common button styles */
.alsendo_connect_status_modal_action button {
	padding: 8px 20px;
	border-radius: 4px;
	border: none;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	flex: 1; /* Make buttons take equal width */
}

/* Cancel button */
.btn-cancel {
	background-color: #666;
	color: white;
}

.btn-cancel:hover {
	background-color: #555;
}

/* Ok button (keeping your existing styles, just adding class) */
.btn-ok {
	background-color: #2DF7C2;
	color: white;
}

.btn-ok:hover {
	background-color: #25e0ae;
}

/* Go to order button */
.btn-goto {
	background-color: #007bff;
	color: white;
}

.btn-goto:hover {
	background-color: #0056b3;
}

/* Make sure modalContext has position relative for absolute positioning of X button */
/*
.modalContext {
	position: relative;
}
*/


/* Status modal - end */

.alsendo_connect_order_list_preloader {
	display: none;
	padding-left: 5px;
}
span.alsendo_connect_error_response {
	display: block;
}

a.alsendo_connect_order_list_create.button-secondary.btn-shipment-action img {
	width: 25px;
}


/* before create parcel */
.shipment-details-order {
	padding: 10px;
	font-size: 13px;
}

.section-order {
	background: #f8f8f8;
	padding: 12px;
	border-radius: 4px;
	margin-bottom: 10px;
}

.section-order:last-child {
	margin-bottom: 0;
}

.section-order h4 {
	margin: 0 0 8px 0;
	color: #333;
	font-size: 14px;
	border-bottom: 1px solid #ddd;
	padding-bottom: 4px;
}

.section-order p {
	margin: 0 0 5px 0;
	line-height: 1.4;
}

.address-comparison {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.details-grid-order {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}

.current-address, .woo-alsendo-address {
	background: #fff;
	padding: 8px;
	border-radius: 3px;
}

.services-info {
	background: #fff3cd;
}

.alsendo-strong {
	color: #555;
}

/*.alsendo_connect_shipping_statuses .post-type-shop_order .wp-list-table .order-preview, .woocommerce_page_wc-orders .wp-list-table .order-preview {
	float: none;
    width: 16px;
    padding: 20px 4px 4px 4px;
    height: 0;
    overflow: hidden;
    position: relative;
    border: 2px solid transparent;
    border-radius: 4px;
}*/

select#alsendo-connect-bulk-template-select {
	display: block !important;
	width: fit-content;
	min-width: 100%;
}