.wpot-cart-inquiry {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.wpot-cart-inquiry__button {
	min-height: 34px;
	padding: 6px 14px;
	font-size: 12px;
	line-height: 1.2;
}

.wpot-cart-inquiry__summary {
	color: var(--wd-text-color, #777);
	font-size: 13px;
}

.woocommerce-cart-form .quantity input.qty,
.woocommerce-cart-form input.qty,
.cart input.qty {
	width: 72px !important;
	min-width: 72px !important;
	max-width: 90px;
	text-align: center;
}

.woocommerce-cart-form .quantity,
.cart .quantity {
	min-width: 112px;
}

.cart-widget-side div.quantity input[type="number"],
.cart-widget-side .quantity input.qty,
.widget_shopping_cart div.quantity input[type="number"],
.widget_shopping_cart .quantity input.qty,
.woocommerce-mini-cart div.quantity input[type="number"],
.woocommerce-mini-cart .quantity input.qty,
.wd-side-hidden .widget_shopping_cart div.quantity input[type="number"],
.wd-side-hidden .widget_shopping_cart .quantity input.qty,
.wd-dropdown-cart div.quantity input[type="number"],
.wd-dropdown-cart .quantity input.qty {
	width: 100px !important;
	min-width: 100px !important;
	max-width: 100px !important;
	box-sizing: border-box;
	text-align: center;
}

.cart-widget-side .quantity,
.widget_shopping_cart .quantity,
.woocommerce-mini-cart .quantity,
.wd-side-hidden .widget_shopping_cart .quantity,
.wd-dropdown-cart .quantity {
	min-width: 140px;
}

body.wpot-hide-cart-paypal-buttons .ppc-button-wrapper,
body.wpot-hide-cart-paypal-buttons .ppcp-button-wrapper,
body.wpot-hide-cart-paypal-buttons .wc-ppcp-cart-button,
body.wpot-hide-cart-paypal-buttons .wc-ppcp-cart-payments,
body.wpot-hide-cart-paypal-buttons .wc-ppcp-cart-payments__container,
body.wpot-hide-cart-paypal-buttons .paypal-button-container,
body.wpot-hide-cart-paypal-buttons .paypal-buttons,
body.wpot-hide-cart-paypal-buttons #ppc-button,
body.wpot-hide-cart-paypal-buttons #ppcp-button,
body.wpot-hide-cart-paypal-buttons [id^="paypal-button"],
body.wpot-hide-cart-paypal-buttons [data-funding-source="paypal"] {
	display: none !important;
}

.wpot-cart-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
}

.wpot-checkout-total-quantity th,
.wpot-checkout-total-quantity td {
	padding-top: 7px;
	padding-bottom: 7px;
	border-top: 1px solid var(--brdcolor-gray-300, rgba(0, 0, 0, 0.105));
	color: var(--wd-title-color, #242424);
	font-size: 14px;
	line-height: 1.35;
}

.wpot-checkout-total-quantity td {
	text-align: right;
}

.wpot-checkout-total-quantity strong {
	color: #f6a10a;
	font-weight: 700;
}

.wpot-checkout-total-quantity span {
	margin-left: 4px;
	color: var(--color-gray-600, #666);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0;
}

.wpot-cart-modal.is-open {
	display: block;
}

.wpot-cart-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.48);
}

.wpot-cart-modal__dialog {
	position: relative;
	width: min(640px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	margin: 24px auto;
	overflow: hidden;
	background: var(--wd-main-bgcolor, #fff);
	border-radius: var(--wd-brd-radius, 4px);
	box-shadow: 0 18px 56px rgba(0, 0, 0, 0.24);
}

.wpot-cart-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	border-bottom: 1px solid var(--brdcolor-gray-300, rgba(0, 0, 0, 0.105));
}

.wpot-cart-modal__header h2 {
	margin: 0;
	font-size: 20px;
}

.wpot-cart-modal__close {
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	color: currentColor;
	font-size: 26px;
	line-height: 1;
}

.wpot-cart-modal__body {
	display: grid;
	gap: 16px;
	max-height: calc(100vh - 130px);
	overflow: auto;
	padding: 22px;
}

.wpot-cart-modal__body label span {
	display: block;
	margin-bottom: 6px;
	color: var(--wd-title-color, #242424);
	font-weight: 600;
}

.wpot-cart-modal__body textarea {
	width: 100%;
}

.wpot-cart-upload-grid {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 12px;
	padding: 12px;
	border: 1px solid var(--brdcolor-gray-300, rgba(0, 0, 0, 0.12));
	border-radius: var(--wd-brd-radius, 4px);
	background: var(--wd-main-bgcolor, #fff);
}

.wpot-cart-upload-grid__head {
	display: flex;
	flex-direction: column;
	flex: 1 1 150px;
	min-width: 145px;
	gap: 3px;
}

.wpot-cart-upload-grid__head span {
	margin: 0;
	color: var(--wd-title-color, #242424);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
}

.wpot-cart-upload-grid__head small {
	color: var(--wd-text-color, #777);
	font-size: 12px;
	line-height: 1.3;
}

.wpot-cart-upload-grid__toolbar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex: 2 1 300px;
	flex-wrap: wrap;
	gap: 8px;
}

.wpot-cart-upload-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	margin: 0;
	padding: 7px 13px;
	overflow: hidden;
	border: 1px solid var(--brdcolor-gray-300, rgba(0, 0, 0, 0.16));
	border-radius: var(--wd-brd-radius, 4px);
	background: var(--wd-main-bgcolor, #fff);
	color: var(--wd-title-color, #242424);
	cursor: pointer;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}

.wpot-cart-upload-button:hover {
	border-color: var(--wd-primary-color, #f59f17);
	color: var(--wd-primary-color, #f59f17);
}

.wpot-cart-upload-button span {
	display: inline;
	margin: 0;
	color: inherit;
	font: inherit;
}

.wpot-cart-upload-button input[type="file"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.wpot-cart-upload-grid__summary {
	flex: 1 0 100%;
	min-height: 16px;
	color: var(--wd-text-color, #777);
	font-size: 12px;
	line-height: 1.35;
}

.wpot-cart-upload-grid__summary[hidden] {
	display: none !important;
}

.wpot-cart-upload-selected__group {
	display: grid;
	gap: 5px;
}

.wpot-cart-upload-selected__group + .wpot-cart-upload-selected__group {
	margin-top: 8px;
}

.wpot-cart-upload-selected__group strong {
	display: block;
	color: var(--wd-title-color, #242424);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.25;
	text-transform: uppercase;
}

.wpot-cart-upload-selected__items {
	display: grid;
	gap: 5px;
}

.wpot-cart-upload-selected__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	color: var(--wd-title-color, #242424);
	font-size: 12px;
	line-height: 1.35;
}

.wpot-cart-upload-selected__item b {
	display: block;
	max-width: min(100%, 420px);
	overflow: hidden;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wpot-cart-upload-selected__remove {
	appearance: none;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 14px !important;
	height: 14px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #b32d2e !important;
	font-size: 13px !important;
	font-weight: 800;
	line-height: 14px !important;
	text-align: center;
	text-decoration: none !important;
	text-transform: none !important;
	cursor: pointer;
}

.wpot-cart-upload-selected__remove:hover {
	background: transparent !important;
	color: #8a2424 !important;
}

.wpot-cart-modal__hint {
	margin: 0;
	color: var(--wd-text-color, #777);
	font-size: 13px;
}

.wpot-cart-modal__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.wpot-cart-modal__status {
	color: var(--wd-primary-color, #f59f17);
	font-weight: 600;
}

body.wpot-cart-modal-open {
	overflow: hidden;
}

@media (max-width: 768px) {
	.wpot-cart-upload-grid {
		align-items: stretch;
	}

	.wpot-cart-upload-grid__toolbar {
		justify-content: flex-start;
	}

	.wpot-cart-upload-button {
		flex: 1 1 calc(50% - 8px);
	}
}

@media (max-width: 480px) {
	.wpot-cart-upload-button {
		flex-basis: 100%;
	}
}
