#packlink-shipping-modal .inside {
	padding: 0;
	margin: 0;
}

#packlink-shipping-modal .pl-order-detail-section {
	margin-bottom: 1.33em;
}

#packlink-shipping-modal .pl-order-detail-section dl {
	counter-reset: pl-counter;
}

#packlink-shipping-modal .pl-order-detail-section dl dd {
	margin-left: 20px;
}

#packlink-shipping-modal .pl-order-detail-section dl dd::before {
	content: counter(pl-counter, disc);
	counter-increment: pl-counter;
	margin-right: 5px;
}

#packlink-shipping-modal .pl-carrier-image {
	width: 50px;
	height: 30px;
}

#packlink-shipping-modal .pl-order-detail-section.pl-create-draft {
	margin-top: 1.33em;
	text-align: center;
}

#packlink-shipping-modal h4 {
	margin-bottom: 0;
}

#packlink-shipping-modal .pl-timestamp {
	line-height: 1.4em;
	font-size: 13px;
	padding: 2px 0 1px;
	display: inline !important;
	height: auto !important;
}

#packlink-shipping-modal .pl-timestamp:before {
	font: 400 20px/1 dashicons;
	content: "\f145";
	position: relative;
	top: -1px;
	speak: none;
	display: inline-block;
	margin-left: -1px;
	padding-right: 3px;
	vertical-align: top;
	-webkit-font-smoothing: antialiased;
}

#packlink-shipping-modal .pl-button-view {
	float: left;
	margin-bottom: 1em;
}

#packlink-shipping-modal button.button.button-primary {
	float: right;
}

#packlink-shipping-modal .pl-button-view.pl-carrier-button {
	float: right;
	margin-right: 20px;
}

#packlink-shipping-modal .order_actions,
#packlink-shipping-modal .order_actions li.wide {
	overflow: visible;
}

/* overflow:visible (needed for the documents dropdown) removes WooCommerce's
   float containment, letting floated buttons escape the box — clear them here. */
#packlink-shipping-modal .order_actions li.wide::after {
	content: "";
	display: block;
	clear: both;
}

#packlink-shipping-modal .pl-documents-section {
	clear: both;
	margin-top: 1.33em;
	border-top: 1px solid #e0e0e0;
	padding-top: 1em;
	overflow: visible;
}

#packlink-shipping-modal .pl-documents-section h4 {
	margin: 0 0 4px;
}

#packlink-shipping-modal .pl-documents-subtitle {
	margin: 0 0 10px;
	color: #666;
	font-size: 12px;
}

#packlink-shipping-modal .pl-document-dropdown {
	display: inline-block;
	position: relative;
}

#packlink-shipping-modal .pl-doc-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

#packlink-shipping-modal .pl-dropdown-arrow {
	font-size: 10px;
	line-height: 1;
}

#packlink-shipping-modal .pl-dropdown-menu {
	position: absolute;
	z-index: 100;
	top: 100%;
	left: 0;
	min-width: 100%;
	background: #fff;
	border: 1px solid #ccc;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	display: none;
	margin-top: 2px;
}

#packlink-shipping-modal .pl-dropdown-menu.pl-open {
	display: block;
}

#packlink-shipping-modal .pl-dropdown-item {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	color: #2271b1;
	text-decoration: none;
	white-space: nowrap;
}

#packlink-shipping-modal .pl-dropdown-item:hover {
	background: #f1f1f1;
	color: #135e96;
}

#packlink-shipping-modal .pl-dropdown-item .dashicons,
.pl-documents-section .pl-dropdown-item .dashicons,
.pl-documents-section .pl-doc-btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Documents dropdown rendered in the order-details meta box (outside the modal). */
.pl-documents-section .pl-dropdown-item {
	display: flex;
	align-items: center;
	gap: 6px;
}

/* Dropdown trigger button (shipping-label icon + type label + arrow). */
.pl-documents-section .pl-doc-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
