/* ================================================================
   DOPYTOVÝ KOŠÍK (modul Inquiry)
   Načítava sa iba v dopytovom režime (rolfx_inquiry_mode).
   Prevzaté 1:1 z témy bellory, ktorá dopyt používa ako prvá.
   ================================================================ */

/*** inquiry sidebar - rovnaky styl ako cart ***/
body.opened-inquiry {
    height: 100vh;
    overflow: hidden;
    z-index: 2000;
}

body.opened-inquiry:before {
    content: '';
    position: fixed;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    z-index: 2001;
}

.js-inquiry-box {
    display: block;
    position: fixed;
    height: 100vh;
    right: -1000px;
    top: 0;
    width: 350px;
    background: #fff;
    transform: translate(100%,0);
    transition: all 0.3s ease;
    z-index: 2002;
    padding-bottom: 60px;
    height: 100%;
}
.js-inquiry-box.opened {
    right: 0;
    transform: translate(0,0);
    transition: all 0.3s ease;
}
.js-inquiry-box .header { height: 70px; padding-left: 15px; padding-right: 15px; display: flex; align-items: center; border-bottom: 1px solid #f1f1f1; justify-content: space-between; }
.js-inquiry-box .header .title { font-weight: 600; }
.js-inquiry-box .js-inquiry-closer { font-size: 25px; color: rgba(0,0,0,0.19); }
.js-inquiry-box .js-inquiry-closer:hover { color: rgba(0,0,0,0.49); }
.js-inquiry-box .product-list { overflow: auto; height: calc(100% - 140px); }
.js-inquiry-box .product-item { display: flex; column-gap: 15px; padding: 15px; }
.js-inquiry-box .product-item:nth-of-type(even) { background: rgba(0,0,0,0.02); }
.js-inquiry-box .product-item .img-box { display: flex; align-items: center; justify-content: center; border: 1px solid #f1f1f1; width: 70px; height: 70px; }
.js-inquiry-box .product-item .img-box img { height: 100%; width: 100%; object-fit: contain; }
.js-inquiry-box .product-item .info-box { width: calc(100% - 70px); display: flex; flex-direction: column; justify-content: space-between; }
.js-inquiry-box .product-item .info-box .title { font-size: 13px; font-weight: 400; display: block; text-decoration: none; line-height: 1.3; color: #333; }
.js-inquiry-box .product-item .params { font-size: 11px; color: #777; padding-left: 0; list-style: none; margin-bottom: 0; }
.js-inquiry-box .product-item .price-box { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.js-inquiry-box .product-item .price-box .count { color: #888; font-size: 13px; }
.js-inquiry-box a.cart-btn { position: absolute; bottom: 0; left: 0; width: 100%; height: 60px; border-radius: 0; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.js-inquiry-box .product-list::-webkit-scrollbar { width: 3px; }
.js-inquiry-box .product-list::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.js-inquiry-box .product-list::-webkit-scrollbar-thumb { background: var(--main-color); border-radius: 4px; }
.js-inquiry-box .product-list::-webkit-scrollbar-thumb:hover { background: #999; border-radius: 4px; }

/* =========================================
   INQUIRY CART START
   ========================================= */

#inquiry-toast-container {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	gap: 10px;
	pointer-events: none;
}

.inquiry-toast {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 18px;
	min-width: 300px;
	max-width: 420px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
	border-left: 4px solid #22c55e;
	pointer-events: auto;
	transform: translateX(110%);
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.inquiry-toast-visible {
	transform: translateX(0);
	opacity: 1;
}

.inquiry-toast-error {
	border-left-color: #ef4444;
}

.inquiry-toast-icon {
	flex-shrink: 0;
	margin-top: 1px;
}

.inquiry-toast-success .inquiry-toast-icon {
	color: #22c55e;
}

.inquiry-toast-error .inquiry-toast-icon {
	color: #ef4444;
}

.inquiry-toast-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.inquiry-toast-message {
	font-size: 14px;
	font-weight: 500;
	color: #1f2937;
	line-height: 1.4;
}

.inquiry-toast-link {
	font-size: 13px;
	color: #3b82f6;
	text-decoration: none;
	font-weight: 500;
}

.inquiry-toast-link:hover {
	text-decoration: underline;
	color: #2563eb;
}

.inquiry-toast-close {
	flex-shrink: 0;
	background: none;
	border: none;
	font-size: 20px;
	line-height: 1;
	color: #9ca3af;
	cursor: pointer;
	padding: 0;
	margin: -2px -4px 0 0;
}

.inquiry-toast-close:hover {
	color: #4b5563;
}


.rsj-inquiry-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	background: #ef4444;
	border-radius: 9px;
	line-height: 1;
}

.rsj-inquiry-count.inquiry-pulse {
	animation: inquiry-pulse 0.6s ease;
}

@keyframes inquiry-pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.3); }
	100% { transform: scale(1); }
}

.rsj-add-to-inquiry.loading {
	pointer-events: none;
	opacity: 0.7;
}

@media (max-width: 480px) {
	#inquiry-toast-container {
		top: auto;
		bottom: 20px;
		right: 10px;
		left: 10px;
	}

	.inquiry-toast {
		min-width: auto;
		max-width: 100%;
	}
}

/* =========================================
   INQUIRY CART END
   ========================================= */
