/* ---------- Base fields ---------- */
.bs-field {
	margin-bottom: 14px;
}

.bs-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.bs-field-flex {
	display: flex;
	gap: 12px;
	width: 100%;
}

.bs-field-flex .bs-field {
	width: 48%;
}

.bs-field-flex .bs-field input {
	width: 100%;
	line-height: 37px;
	border-radius: 3px;
	border: 1px solid #c8c8c8;
	text-align: center;
}

.select{
  width: 100%;
}

/* ---------- Wholesale radios styled as checkboxes ---------- */
.bs-wholesale__option {
	margin: 10px 0;
}

.bs-wholesale__option input[type="radio"].bs-choice {
	appearance: none;
	-webkit-appearance: none;
	width: 16px;
	height: 16px;
	margin-right: 8px;
	border: 2px solid #555;
	border-radius: 3px;
	display: inline-block !important;
	position: relative;
	vertical-align: -3px;
	background: #fff;
}

.bs-wholesale__option input[type="radio"].bs-choice:checked {
	background: #111;
	border-color: #111;
}

.bs-wholesale__option input[type="radio"].bs-choice:checked::after {
	content: "";
	position: absolute;
	left: 3px;
	top: 0px;
	width: 6px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.bs-option-help {
	font-size: 13px;
	color: #555;
	margin: 6px 0 0 26px;
}

.bs-option-help[hidden] {
	display: none !important;
}

.bs-wholesale__add {
	margin-top: 12px;
}

/* ---------- Wholesale note modal ---------- */
.bs-wholesale__modal .bs-modal__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .45);
}

.bs-wholesale__modal .bs-modal__panel {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	width: min(92vw, 640px);
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
	z-index: 999;
}

.bs-modal__title {
	margin: 0 0 6px;
	width: fit-content;
}

.bs-modal__desc {
	margin: 0 0 10px;
	color: #555;
}

.bs-modal__textarea {
	width: 100%;
}

.bs-modal__close,
.bs-modal__close:hover,
.bs-modal__close:focus {
	position: absolute;
	top: 8px;
	right: 12px;
	border: none;
	background: transparent;
	font-size: 16px;
	font-weight: 400;
	border-radius: 100%;
	padding: 5px 10px;
	cursor: pointer;
	color: #000;
}

.bs-modal__actions {
	margin-top: 12px;
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

/* ---------- Cart table ---------- */
.bs-inquiry-table textarea {
	width: 100%;
}

.bs-inquiry-table th,
.bs-inquiry-table td {
	vertical-align: top;
}

.bs-inquiry-table .bs-remove {
	font-size: 18px !important;
	text-decoration: none;
	color: #fff !important;
	background-color: #000;
	padding: 5px 10px 5px 10px;
	border-radius: 50%;
	line-height: 0px;
}

#bsInquiryCartBody td {
	align-content: center;
}

td .bs-qty {
	line-height: 25px;
	border-radius: 3px;
	border: 1px solid #c8c8c8;
	text-align: center;
}

/* ---------- Section separators ---------- */
.bs-inquiry-sep {
	margin: 18px 0;
	border: 0;
	border-top: 1px solid #eee;
}

/* ---------- ORDER FORM: card + headings (no fieldsets) ---------- */
.bs-form-card {
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 26px;
	margin-top: 22px;
	background: #fff;
}

.bs-form-title {
	font-size: 28px;
	line-height: 1.2;
	margin: 0 0 18px;
	font-weight: 800;
}

.bs-section {
	margin: 18px 0 22px;
}

.bs-section-title {
	font-size: 22px;
	line-height: 1.25;
	margin: 0 0 10px;
	font-weight: 700;
}

.bs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
}

.bs-inquiry-order-form .bs-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.bs-inquiry-order-form input[type="text"],
.bs-inquiry-order-form input[type="email"],
.bs-inquiry-order-form input[type="tel"],
.bs-inquiry-order-form input[type="date"],
.bs-inquiry-order-form select,
.bs-inquiry-order-form textarea {
	width: 100%;
}

.bs-subtext {
	color: #666;
	font-size: 13px;
	margin: 6px 0 12px;
}

.bs-attachments {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bs-attachment-row {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: 10px;
	align-items: end;
}

.bs-attach-file small {
	display: block;
	color: #777;
}

.bs-attach-remove {
	display: inline-block;
	width: 32px;
	height: 32px;
	line-height: 30px;
	text-align: center;
	border: 1px solid #eee;
	border-radius: 4px;
	color: #c00;
	text-decoration: none;
}

.bs-attach-remove:hover {
	background: #f9eaea;
	cursor: pointer;
}

.bs-attach-add{
	font-size: 12px;
    padding: 5px 8px;
	font-weight: 600;
	color: #fff;
	background: #000;
	border-radius: 4px;
    border: 2px solid #24262b;
	cursor: pointer;
}

.bs-checks label {
	display: block;
	margin-right: 14px;
	margin-bottom: 10px;
}

.bs-grid-3 {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.bs-phone {
	display: flex;
	gap: 8px;
	align-items: center;
}

.bs-delivery-extra[hidden] {
	display: none !important;
}

/* ---------- Empty state ---------- */
.bs-empty-inquiry {
	padding: 18px;
	background: #f9f9f9;
	border: 1px solid #eee;
	border-radius: 8px;
	text-align: center;
}

.bs-empty-inquiry .msg {
	margin: 0 0 14px;
	font-weight: 600;
	font-size: 16px;
}

/* ---------- Misc ---------- */
.update-message {
	width: 100%;
	text-align: left;
	padding: 12px;
	background: #f2f2f2;
	color: #333;
}

/* Drawer overlay */
#bsInquiryOverlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .35);
	z-index: 99998;
	display: none;
}

#bsInquiryOverlay.show {
	display: block;
}

body.bs-inquiry-drawer-open {
	overflow: hidden;
}

/* ---------- Make inquiry table responsive on mobile ---------- */
@media (max-width: 768px) {
	#bsInquiryCartBody{
		position: relative !important;
	}

	.bs-inquiry-table,
	.bs-inquiry-table thead,
	.bs-inquiry-table tbody,
	.bs-inquiry-table th,
	.bs-inquiry-table td,
	.bs-inquiry-table tr,
	  .bs-inquiry-table .bs-qty{
	  display: block;
	  width: 100%;
	}
	  
	.bs-inquiry-table thead{
		  display:none;
	}

	.bs-remove{
		padding: 0px 10px !important;
		font-size: 18px !important;
		position: absolute !important;
		right: 15px !important;
		top: 25px !important;
	}
  
	.bs-inquiry-table tr {
	  border: 1px solid #eee;
	  border-radius: 10px;
	  margin: 10px 0;
	  padding: 12px;
	}
  
	.bs-inquiry-table td {
	  border: 0;
	  padding: 8px 0;
	}

	.bs-wholesale__modal .bs-modal__panel{
		transform: none !important;
		left: 4% !important;
		width: 400px !important;
	}

	.bs-attachment-row{
		display: flex !important;
		flex-direction: column !important;
		gap: 10px !important;
		align-items: baseline !important;
	}

	.bs-modal__confirm{
		width: 100% !important;
	}
  
  }