/* Gabex Quote, front */

/* Przycisk "Dodaj do wyceny" */
.gabex-add-quote {
	display: inline-block;
	background: #fff;
	color: #E2001A;
	border: 1.5px solid #E2001A;
	border-radius: 999px;
	font-weight: 700;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.gabex-add-quote:hover { background: #E2001A; color: #fff; }
.gabex-add-quote.is-loading { opacity: .6; pointer-events: none; }
.gabex-add-quote--loop { margin-top: .5rem; padding: .45rem 1rem; font-size: .9rem; }
.gabex-add-quote--single { padding: .8rem 1.75rem; font-size: 1.05rem; }

/* Formularz wyceny na karcie produktu */
.gabex-single-cart { display: block; margin: 1.25rem 0; }
.gabex-single-row { display: flex; gap: .75rem; align-items: center; }
.gabex-single-qty .qty {
	width: 84px; padding: .7rem .6rem; text-align: center;
	border: 1px solid #E4E6E9; border-radius: 8px; font: inherit;
}

/* Wybór koloru (warianty) na karcie produktu */
.gabex-colors { margin: 0 0 1rem; }
.gabex-colors__label { display: block; font-weight: 700; color: #404C58; margin-bottom: .5rem; }
.gabex-colors__opts { display: flex; flex-wrap: wrap; gap: .6rem; align-items: stretch; }
.gabex-color-opt { display: flex; }
.gabex-color-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.gabex-color-swatch {
	display: flex; flex-direction: column; align-items: center; gap: .4rem;
	width: 88px; height: 100%; padding: .45rem; border: 2px solid #E4E6E9; border-radius: 10px;
	cursor: pointer; background: #fff;
	transition: border-color .12s ease, box-shadow .12s ease;
}
.gabex-color-swatch img { width: 66px; height: 66px; object-fit: cover; border-radius: 8px; background: #F4F5F6; }
.gabex-color-name { font-size: .78rem; font-weight: 600; text-align: center; line-height: 1.2; color: #1D1F24; }
.gabex-color-note { font-size: .68rem; font-weight: 700; text-align: center; line-height: 1.1; color: #E2001A; }
.gabex-color-opt:hover .gabex-color-swatch { border-color: #E2001A; }
.gabex-color-opt input:checked + .gabex-color-swatch { border-color: #E2001A; box-shadow: 0 0 0 1px #E2001A inset; }
.gabex-color-opt input:focus-visible + .gabex-color-swatch { outline: 2px solid #E2001A; outline-offset: 2px; }
.gabex-color-desc { margin: .85rem 0 0; color: #5C5A63; font-size: .9rem; line-height: 1.5; }
.gabex-color-desc:empty { display: none; }

/* Kolor w popupie i koszyku wyceny */
.gabex-popup__color { color: #5C5A63; margin-top: .15rem; font-size: .95rem; }
.gabex-popup__color strong { color: #1D1F24; }
.gabex-quote__color { display: block; color: #5C5A63; font-weight: 500; }
.gabex-quote__color strong { color: #1D1F24; }

/* Licznik w nagłówku */
.gabex-quote-count {
	display: inline-block;
	min-width: 1.4em;
	padding: 0 .35em;
	margin-left: .35em;
	background: #fff;
	color: #E2001A;
	border-radius: 999px;
	font-size: .8em;
	font-weight: 800;
	text-align: center;
	line-height: 1.4em;
}
.gabex-quote-count.is-empty { opacity: .55; }

/* Popup potwierdzenia */
.gabex-popup-overlay {
	position: fixed; inset: 0; z-index: 99999;
	display: flex; align-items: center; justify-content: center;
	background: rgba(29,31,36,.55);
	opacity: 0; transition: opacity .25s ease;
	padding: 1rem;
}
.gabex-popup-overlay.is-visible { opacity: 1; }
.gabex-popup {
	background: #fff; border-radius: 16px; width: 100%; max-width: 420px;
	padding: 1.75rem; position: relative;
	box-shadow: 0 24px 60px rgba(0,0,0,.28);
	transform: translateY(12px) scale(.98); transition: transform .25s ease;
}
.gabex-popup-overlay.is-visible .gabex-popup { transform: translateY(0) scale(1); }
.gabex-popup__close {
	position: absolute; top: 10px; right: 12px;
	background: none; border: none; font-size: 1.6rem; line-height: 1;
	color: #8A8A93; cursor: pointer;
}
.gabex-popup__close:hover { color: #1D1F24; }
.gabex-popup__head { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem; }
.gabex-popup__check {
	display: inline-flex; align-items: center; justify-content: center;
	width: 30px; height: 30px; border-radius: 50%;
	background: #1c7a3e; color: #fff; font-size: 1rem; font-weight: 700;
}
.gabex-popup__title { font-weight: 800; font-size: 1.15rem; color: #1D1F24; }
.gabex-popup__body { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.4rem; }
.gabex-popup__img {
	width: 64px; height: 64px; object-fit: cover; border-radius: 10px;
	background: #F4F5F6; flex: none;
}
.gabex-popup__name { font-weight: 700; color: #1D1F24; line-height: 1.3; }
.gabex-popup__count { color: #5C5A63; margin-top: .25rem; font-size: .95rem; }
.gabex-popup__count strong { color: #E2001A; }
.gabex-popup__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.gabex-popup__btn {
	flex: 1 1 auto; text-align: center; padding: .8rem 1rem;
	border-radius: 999px; font-weight: 700; cursor: pointer; text-decoration: none;
	font-size: .95rem; border: 1.5px solid transparent; white-space: nowrap;
}
.gabex-popup__btn--primary { background: #E2001A; color: #fff; }
.gabex-popup__btn--primary:hover { background: #B30015; color: #fff; }
.gabex-popup__btn--ghost { background: #fff; color: #404C58; border-color: #E4E6E9; }
.gabex-popup__btn--ghost:hover { border-color: #404C58; }

/* Strona wyceny */
.gabex-quote {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 2.5rem;
	align-items: start;
}
@media (max-width: 900px) { .gabex-quote { grid-template-columns: 1fr; } }

.gabex-quote__list { list-style: none; margin: 0; padding: 0; }
.gabex-quote__row {
	display: grid;
	grid-template-columns: 64px 1fr 90px 40px;
	gap: 1rem;
	align-items: center;
	padding: 1rem 0;
	border-bottom: 1px solid #E4E6E9;
}
.gabex-quote__thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: #F4F5F6; }
.gabex-quote__name a { font-weight: 700; color: #1D1F24; text-decoration: none; }
.gabex-quote__name small { display: block; color: #8A8A93; font-weight: 500; }
.gabex-quote__qty { width: 100%; padding: .5rem; border: 1px solid #E4E6E9; border-radius: 8px; text-align: center; }
.gabex-quote__remove {
	width: 34px; height: 34px; border: 1px solid #E4E6E9; background: #fff;
	border-radius: 8px; color: #8A8A93; font-size: 1.2rem; cursor: pointer; line-height: 1;
}
.gabex-quote__remove:hover { border-color: #E2001A; color: #E2001A; }
.gabex-quote__update { margin-top: 1rem; background: #F4F5F6; color: #404C58; border: 1px solid #E4E6E9; }
.gabex-quote__empty { color: #5C5A63; }

/* Karta formularza */
.gabex-quote__form-card {
	background: #fff;
	border: 1px solid #E4E6E9;
	border-radius: 14px;
	padding: 1.75rem;
	box-shadow: 0 8px 30px rgba(29,31,36,.06);
}
.gabex-quote__form-card h2 { margin-top: 0; font-weight: 800; }
.gabex-quote__form label { display: block; font-weight: 600; font-size: .9rem; color: #404C58; margin-bottom: .9rem; }
.gabex-quote__form input,
.gabex-quote__form textarea {
	width: 100%; margin-top: .35rem; padding: .7rem .8rem;
	border: 1px solid #E4E6E9; border-radius: 8px; font: inherit;
}
.gabex-quote__form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gabex-quote__submit {
	width: 100%; margin-top: .5rem; background: #E2001A; color: #fff;
	border: none; border-radius: 999px; padding: .95rem; font-weight: 800; cursor: pointer;
}
.gabex-quote__submit:hover { background: #B30015; }
.gabex-quote__hint { text-align: center; color: #8A8A93; font-size: .85rem; margin: .75rem 0 0; }

/* Notice */
.gabex-quote-notice { padding: 1rem 1.25rem; border-radius: 10px; margin-bottom: 1.5rem; font-weight: 600; }
.gabex-quote-notice--ok { background: #e8f6ec; color: #1c7a3e; border: 1px solid #b7e2c4; }
.gabex-quote-notice--err { background: #fdecee; color: #B30015; border: 1px solid #f4c2c8; }

/* Karta produktu: dostępność + notka logistyczna + box pomocy */
.gabex-single-meta { margin-top: 1.25rem; }
.gabex-stock { margin: 0 0 .5rem; color: #5C5A63; font-size: .95rem; }
.gabex-stock::before {
	content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%;
	background: #1c7a3e; margin-right: .5rem;
}
.gabex-stock--onbackorder::before,
.gabex-stock--outofstock::before { background: #B30015; }
.gabex-loco { margin: 0 0 1rem; color: #8A8A93; font-size: .85rem; line-height: 1.5; }
.gabex-help-box {
	background: #F4F5F6; border: 1px solid #E4E6E9; border-radius: 12px;
	padding: 1.1rem 1.25rem; color: #5C5A63; font-size: .92rem;
}
.gabex-help-box strong { color: #1D1F24; }
.gabex-help-box p { margin: .35rem 0 .6rem; line-height: 1.5; }
.gabex-help-box__link { font-weight: 700; }

/* Strona wyceny: pasek kroków */
.gabex-steps {
	list-style: none; margin: 0 0 2rem; padding: 0;
	display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
}
.gabex-steps__step {
	display: inline-flex; align-items: center; gap: .55rem;
	font-weight: 600; color: #8A8A93; font-size: .95rem;
}
.gabex-steps__step + .gabex-steps__step::before {
	content: "→"; color: #E4E6E9; margin-right: .75rem; font-weight: 400;
}
.gabex-steps__num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 28px; height: 28px; border-radius: 50%;
	background: #F4F5F6; border: 1.5px solid #E4E6E9;
	font-size: .85rem; font-weight: 800; color: #5C5A63;
}
.gabex-steps__step.is-done { color: #5C5A63; }
.gabex-steps__step.is-done .gabex-steps__num { background: #e8f6ec; border-color: #b7e2c4; color: #1c7a3e; }
.gabex-steps__step.is-active { color: #1D1F24; font-weight: 700; }
.gabex-steps__step.is-active .gabex-steps__num {
	background: #E2001A; border-color: #E2001A; color: #fff;
}

/* Karta produktu: box "Ważne informacje" */
.gabex-info-note { margin: 0 0 .5rem; color: #5C5A63; font-size: .95rem; line-height: 1.5; }
.gabex-info-note p { margin: 0 0 .25rem; color: #5C5A63; }
.gabex-info-note ul { list-style: none; margin: 0; padding: 0; }
.gabex-info-note li { margin: 0 0 .25rem; }

/* Strona wyceny: notka o transporcie */
.gabex-transport-note {
	margin-top: 1.5rem; padding: 1rem 1.25rem;
	background: #F4F5F6; border: 1px solid #E4E6E9; border-left: 3px solid #E2001A;
	border-radius: 10px; color: #5C5A63; font-size: .92rem; line-height: 1.55;
}
.gabex-transport-note strong { color: #1D1F24; }

/* Formularz: grupowanie pól */
.gabex-quote__fieldset { border: none; margin: 0 0 .5rem; padding: 0; }
.gabex-quote__fieldset legend {
	font-weight: 800; font-size: .8rem; color: #8A8A93;
	text-transform: uppercase; letter-spacing: .6px;
	padding: 0; margin-bottom: .75rem;
}
