/* Julhas Request for Quotation - Scoped Styles (.jh-rfq-*) */

/* Single product widget placed directly below Share icons */
.jh-rfq-box {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	width: 100%;
	box-sizing: border-box;
}

.jh-rfq-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px;
}

.jh-rfq-qty-wrap {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid #d5d8dc;
	border-radius: 4px;
	background: #ffffff;
	overflow: hidden;
	height: 44px;
	box-sizing: border-box;
}

.jh-rfq-qty-btn {
	width: 36px;
	min-width: 36px;
	height: 100%;
	border: 0 !important;
	background: #f7f7f7 !important;
	color: #333333 !important;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	padding: 0 !important;
	margin: 0 !important;
	cursor: pointer;
	transition: background-color 0.15s ease;
	box-shadow: none !important;
}

.jh-rfq-qty-btn:hover {
	background: #ebebeb !important;
}

.jh-rfq-qty-input {
	width: 64px !important;
	min-width: 54px !important;
	height: 100% !important;
	border: 0 !important;
	border-left: 1px solid #e6e8eb !important;
	border-right: 1px solid #e6e8eb !important;
	padding: 0 6px !important;
	margin: 0 !important;
	text-align: center !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	color: #222222 !important;
	background: #ffffff !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	-moz-appearance: textfield !important;
	appearance: textfield !important;
}

.jh-rfq-qty-input::-webkit-outer-spin-button,
.jh-rfq-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.jh-rfq-add-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	padding: 0 22px !important;
	background-color: #83b735 !important;
	color: #ffffff !important;
	border: 0 !important;
	border-radius: 4px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
	box-shadow: 0 2px 6px rgba(131, 183, 53, 0.25) !important;
}

.jh-rfq-add-btn:hover {
	background-color: #6f9e29 !important;
	color: #ffffff !important;
}

.jh-rfq-add-btn:active {
	transform: translateY(1px);
}

.jh-rfq-feedback {
	margin-top: 10px;
	font-size: 13.5px;
	line-height: 1.5;
}

.jh-rfq-feedback-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 14px;
	background: #f3f9ea;
	border: 1px solid #cce3a4;
	border-radius: 4px;
	color: #2c4a0d;
}

.jh-rfq-view-link {
	display: inline-block;
	padding: 5px 12px;
	background: #83b735;
	color: #ffffff !important;
	border-radius: 3px;
	font-weight: 600;
	font-size: 13px;
	text-decoration: none !important;
	white-space: nowrap;
}

.jh-rfq-view-link:hover {
	background: #6f9e29;
	color: #ffffff !important;
}

/* Floating Quotation Pill (bottom-left so it never overlaps WhatsApp/scroll-to-top on right) */
.jh-rfq-floating-pill {
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 9990;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 10px 16px;
	background: #222222;
	color: #ffffff !important;
	border-radius: 999px;
	text-decoration: none !important;
	font-size: 13.5px;
	font-weight: 600;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.jh-rfq-floating-pill:hover {
	background: #83b735;
	color: #ffffff !important;
	transform: translateY(-2px);
}

.jh-rfq-pill-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	background: #83b735;
	color: #ffffff;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.jh-rfq-floating-pill:hover .jh-rfq-pill-badge {
	background: #222222;
}

/* Quotation Page Layout */
.jh-rfq-page-wrap {
	max-width: 1120px;
	margin: 10px auto 40px;
	padding: 0;
	box-sizing: border-box;
}

.jh-rfq-empty-card,
.jh-rfq-success-card {
	text-align: center;
	padding: 44px 24px;
	background: #ffffff;
	border: 1px solid #e6e8eb;
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.jh-rfq-empty-card h3,
.jh-rfq-success-card h3 {
	margin: 0 0 10px;
	font-size: 22px;
	color: #222222;
}

.jh-rfq-empty-card p,
.jh-rfq-success-card p {
	margin: 0 0 20px;
	color: #666666;
	font-size: 15px;
}

.jh-rfq-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 26px !important;
	background: #83b735 !important;
	color: #ffffff !important;
	border: 0 !important;
	border-radius: 4px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.jh-rfq-btn-primary:hover {
	background: #6f9e29 !important;
	color: #ffffff !important;
}

.jh-rfq-btn-primary:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.jh-rfq-btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px !important;
	background: #f5f6f7 !important;
	color: #333333 !important;
	border: 1px solid #d5d8dc !important;
	border-radius: 4px !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	cursor: pointer;
}

.jh-rfq-btn-secondary:hover {
	background: #eaecef !important;
}

.jh-rfq-table-card {
	background: #ffffff;
	border: 1px solid #e6e8eb;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 24px;
}

.jh-rfq-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.jh-rfq-table th {
	background: #f8f9fa;
	padding: 13px 16px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	color: #444444;
	text-align: left;
	border-bottom: 1px solid #e6e8eb;
}

.jh-rfq-table td {
	padding: 14px 16px;
	border-bottom: 1px solid #eeeeee;
	vertical-align: middle;
	font-size: 14px;
	color: #333333;
}

.jh-rfq-table tr:last-child td {
	border-bottom: 0;
}

.jh-rfq-item-thumb {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid #e6e8eb;
	display: block;
}

.jh-rfq-item-title {
	font-weight: 700;
	color: #222222;
	text-decoration: none;
	display: block;
	margin-bottom: 4px;
}

.jh-rfq-item-title:hover {
	color: #83b735;
}

.jh-rfq-item-code {
	display: inline-block;
	font-size: 12px;
	color: #666666;
	background: #f4f5f6;
	padding: 2px 8px;
	border-radius: 3px;
}

.jh-rfq-remove-btn {
	background: transparent !important;
	border: 1px solid #e2e5e9 !important;
	color: #c62828 !important;
	width: 32px;
	height: 32px;
	border-radius: 4px !important;
	font-size: 18px;
	line-height: 1;
	padding: 0 !important;
	cursor: pointer;
}

.jh-rfq-remove-btn:hover {
	background: #fdecea !important;
	border-color: #f5c6cb !important;
}

.jh-rfq-table-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	background: #fafafa;
	border-top: 1px solid #e6e8eb;
}

.jh-rfq-summary-text {
	font-size: 14px;
	color: #333333;
	font-weight: 600;
}

/* Buyer Form Card */
.jh-rfq-form-card {
	background: #ffffff;
	border: 1px solid #e6e8eb;
	border-radius: 8px;
	padding: 26px 28px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.jh-rfq-form-card h3 {
	margin: 0 0 6px;
	font-size: 20px;
	color: #222222;
}

.jh-rfq-form-sub {
	margin: 0 0 20px;
	font-size: 14px;
	color: #666666;
}

.jh-rfq-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 20px;
	margin-bottom: 20px;
}

.jh-rfq-field label {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	color: #333333;
	margin-bottom: 6px;
}

.jh-rfq-field label .req {
	color: #d63638;
}

.jh-rfq-field input {
	width: 100% !important;
	height: 44px !important;
	padding: 8px 12px !important;
	border: 1px solid #d0d5dd !important;
	border-radius: 4px !important;
	font-size: 14.5px !important;
	color: #222222 !important;
	background: #ffffff !important;
	box-sizing: border-box !important;
}

.jh-rfq-field input:focus {
	outline: none;
	border-color: #83b735 !important;
	box-shadow: 0 0 0 2px rgba(131, 183, 53, 0.16) !important;
}

.jh-rfq-form-error {
	margin-bottom: 14px;
	padding: 11px 14px;
	background: #fdecea;
	border: 1px solid #f5c6cb;
	border-radius: 4px;
	color: #9b1c1c;
	font-size: 14px;
	display: none;
}

.jh-rfq-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
	.jh-rfq-controls {
		flex-direction: row;
		align-items: stretch;
	}

	.jh-rfq-add-btn {
		flex: 1 1 auto;
		padding: 0 14px !important;
		font-size: 13px !important;
	}

	.jh-rfq-floating-pill {
		left: 12px;
		bottom: 12px;
		padding: 9px 14px;
		font-size: 12.5px;
	}

	.jh-rfq-table thead {
		display: none;
	}

	.jh-rfq-table,
	.jh-rfq-table tbody,
	.jh-rfq-table tr,
	.jh-rfq-table td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.jh-rfq-table tr {
		padding: 14px;
		border-bottom: 1px solid #e6e8eb;
		position: relative;
	}

	.jh-rfq-table td {
		border: 0;
		padding: 5px 0;
	}

	.jh-rfq-table td[data-label="Image"] {
		margin-bottom: 6px;
	}

	.jh-rfq-table td[data-label]::before {
		content: attr(data-label) ": ";
		font-weight: 700;
		color: #555555;
		margin-right: 4px;
	}

	.jh-rfq-table td[data-label="Image"]::before,
	.jh-rfq-table td[data-label="Action"]::before {
		content: "";
	}

	.jh-rfq-table td[data-label="Action"] {
		position: absolute;
		top: 12px;
		right: 12px;
		width: auto;
	}

	.jh-rfq-form-card {
		padding: 20px 16px;
	}

	.jh-rfq-form-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.jh-rfq-btn-primary {
		width: 100%;
	}
}
