/* Ζητήστε προσφορά (page-business.php) — builds on web-design.css (.wd tokens, type, buttons). */

.page-template-page-business .erpc-ql-tab { display: none !important; } /* the list is on the page */

/* ---------- Top ---------- */
.biz-top { padding: clamp(28px, 4vw, 52px) 0 clamp(20px, 3vw, 32px); background: var(--wd-paper); }
.biz-top__title { margin: 0; font-family: var(--wd-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.6rem, 1.6rem + 4vw, 5rem); line-height: .9; color: var(--wd-ink); }
.biz-top__title em { font-style: normal; color: var(--wd-red); }
.biz-top__steps { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 20px 0 0; padding: 0; list-style: none; }
.biz-top__steps li { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--wd-ink); }
.biz-top__steps b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--wd-y); border: 1.5px solid var(--wd-ink); font-size: .85rem; }

/* ---------- App: range | quote ---------- */
.biz-app { padding: clamp(24px, 3vw, 40px) 0 clamp(56px, 7vw, 90px); background: var(--wd-paper); }
.biz-app__grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }

.biz-sets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.biz-sets__label { margin-right: 4px; font-weight: 800; color: var(--wd-ink); }
.biz-set { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px 8px 12px; border: 1.5px solid var(--wd-ink); border-radius: 999px; background: #fff; font: inherit; font-size: .9rem; font-weight: 700; color: var(--wd-ink); cursor: pointer; transition: background .15s; }
.biz-set:hover { background: var(--wd-y); }
.biz-set svg { width: 17px; height: 17px; }
.biz-set i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--wd-red); color: #fff; }
.biz-set i svg { width: 14px; height: 14px; }

.biz-grid { display: grid; grid-auto-flow: row dense; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.biz-card { position: relative; display: flex; overflow: hidden; background: #fff; border: 1.5px solid var(--erp-line-strong); border-radius: 16px; transition: border-color .2s, box-shadow .2s; }
.biz-card:hover, .biz-card:has([aria-expanded="true"]) { border-color: var(--wd-ink); }
.biz-card:has([aria-expanded="true"]) { box-shadow: 5px 5px 0 var(--wd-red); }
.biz-card.is-in { border-color: var(--wd-ink); }
.biz-card__open { display: flex; flex-direction: column; width: 100%; padding: 0; border: 0; background: none; font: inherit; text-align: left; color: inherit; cursor: pointer; }
.biz-card__img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--wd-paper); }
.biz-card__img img { width: 100%; height: 100%; object-fit: cover; }
.biz-card__badge { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 7px; border: 2px solid #fff; border-radius: 999px; background: var(--wd-red); color: #fff; font-style: normal; font-weight: 900; font-size: .85rem; }
.biz-card__badge[hidden] { display: none; }
.biz-card__body { flex: 1; display: block; padding: 10px 12px 4px; }
.biz-card__name { display: block; font-size: .98rem; font-weight: 900; line-height: 1.25; color: var(--wd-ink); }
.biz-card__from { display: block; margin-top: 3px; font-size: .9rem; color: var(--erp-muted); }
.biz-card__from b { font-size: 1.1rem; color: var(--wd-red); }
.biz-card__from small { font-size: .78rem; }
.biz-card__more { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 6px 12px 12px; padding: 9px; border-radius: 10px; background: var(--wd-ink); color: #fff; font-weight: 800; font-size: .92rem; }
.biz-card__more svg { width: 17px; height: 17px; transition: transform .2s; }
[aria-expanded="true"] .biz-card__more { background: var(--wd-red); }
[aria-expanded="true"] .biz-card__more svg { transform: rotate(180deg); }

/* Products of the open category: a full-width row right after its card */
.biz-prods { grid-column: 1 / -1; padding: 16px; background: #fff; border: 1.5px solid var(--wd-ink); border-radius: 16px; box-shadow: 5px 5px 0 var(--wd-red); animation: biz-open .25s ease; }
@keyframes biz-open { from { opacity: 0; transform: translateY(-6px); } }
.biz-prods__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.biz-prods__head h3 { margin: 0; font-size: 1.1rem; font-weight: 900; color: var(--wd-ink); }
.biz-prods__head small { font-weight: 600; color: var(--erp-muted); }
.biz-prods__x { width: 34px; height: 34px; border: 1px solid var(--erp-line); border-radius: 50%; background: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.biz-prods__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; max-height: 520px; overflow-y: auto; overscroll-behavior: contain; }
.biz-prod { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--erp-line); border-radius: 12px; }
.biz-prod__img img { display: block; width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--wd-paper); }
.biz-prod__txt { min-width: 0; }
.biz-prod__txt a { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .88rem; font-weight: 700; line-height: 1.25; color: var(--wd-ink); text-decoration: none; }
.biz-prod__txt a:hover { text-decoration: underline; }
.biz-prod__txt span { display: block; margin-top: 2px; font-size: .8rem; color: var(--erp-muted); }
.biz-prod__txt b { color: var(--wd-red); }
.biz-prod__add { display: inline-flex; align-items: center; gap: 5px; padding: 8px 11px; border: 0; border-radius: 10px; background: var(--wd-red); color: #fff; font: inherit; font-size: .85rem; font-weight: 800; white-space: nowrap; cursor: pointer; }
.biz-prod__add svg { width: 15px; height: 15px; }
.biz-prod__add.is-on { background: var(--wd-ink); }
.biz-prods__unsure { margin-top: 10px; padding: 0; border: 0; background: none; font: inherit; font-size: .88rem; font-weight: 700; color: var(--erp-muted); text-decoration: underline; cursor: pointer; }
.biz-prods__unsure:hover { color: var(--wd-red); }
.biz-fine { margin: 14px 0 0; font-size: .85rem; color: var(--erp-muted); }

/* ---------- Quote panel ---------- */
.biz-quote { position: sticky; top: 90px; }
.biz-quote__box { display: flex; flex-direction: column; max-height: calc(100vh - 110px); padding: 18px; background: #fff; border: 1.5px solid var(--wd-ink); border-radius: 18px; box-shadow: 8px 8px 0 var(--wd-ink); }
.biz-quote h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1.2rem; font-weight: 900; color: var(--wd-ink); }
.biz-quote h2 span { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--wd-red); color: #fff; font-size: .85rem; }
.biz-quote__items { flex: 1 1 auto; min-height: 70px; overflow-y: auto; margin: 0 -6px 12px; padding: 0 6px; border-bottom: 1px solid var(--erp-line); overscroll-behavior: contain; }
.biz-quote__empty { margin: 0 0 12px; padding: 14px; border: 1.5px dashed var(--erp-line-strong); border-radius: 10px; color: var(--erp-muted); font-size: .9rem; text-align: center; }
.biz-qi { display: grid; grid-template-columns: 40px minmax(0, 1fr) 70px 28px; gap: 6px 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--erp-line); }
.biz-qi:first-child { border-top: 0; }
.biz-qi.is-new { animation: biz-flash 1.2s ease; }
@keyframes biz-flash { 0%, 40% { background: #fff6cc; } 100% { background: transparent; } }
.biz-qi img, .biz-qi__noimg { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; background: var(--wd-paper); }
.biz-qi small { display: block; font-size: .72rem; font-weight: 700; color: var(--wd-red); }
.biz-qi b { display: block; overflow: hidden; font-size: .88rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; color: var(--wd-ink); }
.biz-qi textarea[name="note"] { grid-column: 2 / -1; display: block; width: 100%; min-height: 36px; max-height: 200px; box-sizing: border-box; padding: 7px 9px; border: 1px solid var(--erp-line-strong); border-radius: 8px; font: inherit; font-size: .85rem; line-height: 1.4; resize: none; overflow-y: auto; field-sizing: content; }
/* Choices per product (variation + add-ons) */
.biz-qi__opts { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 8px; padding: 8px; border-radius: 10px; background: var(--wd-paper); }
.biz-qi__opts.is-loading { display: block; font-size: .8rem; color: var(--erp-muted); }
.biz-opt { display: grid; gap: 2px; min-width: 0; }
.biz-opt--wide { grid-column: 1 / -1; }
.biz-opt > span { font-size: .7rem; font-weight: 800; letter-spacing: .02em; color: var(--erp-muted); }
.biz-opt > span i { font-style: normal; font-weight: 600; }
.biz-opt select, .biz-opt input[type="text"] { width: 100%; min-width: 0; padding: 6px 8px; border: 1.5px solid var(--erp-line-strong); border-radius: 8px; background: #fff; font: inherit; font-size: .85rem; color: var(--wd-ink); }
.biz-opt select.is-empty { color: var(--erp-muted); }
.biz-opt select.is-invalid { border-color: var(--wd-red); box-shadow: 0 0 0 2px #fdecec; }
.biz-opt__alts, .biz-opt__chips { display: flex; flex-wrap: wrap; gap: 4px; }
.biz-opt__alts label, .biz-opt__chips label { position: relative; cursor: pointer; }
.biz-opt__alts input, .biz-opt__chips input { position: absolute; opacity: 0; }
.biz-opt__alts span, .biz-opt__chips span { display: inline-block; padding: 5px 9px; border: 1.5px solid var(--erp-line-strong); border-radius: 999px; background: #fff; font-size: .78rem; font-weight: 700; color: var(--wd-ink); }
.biz-opt__alts input:checked + span, .biz-opt__chips input:checked + span { border-color: var(--wd-ink); background: var(--wd-ink); color: #fff; }
.biz-opt__alts input:focus-visible + span, .biz-opt__chips input:focus-visible + span { outline: 2px solid var(--wd-c); outline-offset: 1px; }
.biz-opt__hint { margin: 0; padding: 6px 8px; border-radius: 8px; background: #fff6cc; font-size: .8rem; font-weight: 700; color: var(--wd-ink); }
.biz-qi__note { grid-column: 2 / -1; justify-self: start; padding: 2px 0; border: 0; background: none; font: inherit; font-size: .82rem; font-weight: 700; color: var(--erp-muted); cursor: pointer; }
.biz-qi__note:hover { color: var(--wd-ink); text-decoration: underline; }
.biz-prod__sw { margin-top: 4px; }
.biz-prod__sw .cg-swatches, .biz-prod__sw > * { flex-wrap: wrap; }
.biz-qi__files { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.biz-qi__attach { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1.5px dashed var(--erp-line-strong); border-radius: 8px; font-size: .8rem; font-weight: 700; color: var(--erp-muted); cursor: pointer; }
.biz-qi__attach:hover, .biz-qi__attach:focus-within { border-color: var(--wd-ink); color: var(--wd-ink); }
.biz-qi__attach input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.biz-qi__attach svg { width: 15px; height: 15px; }
.biz-file { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 4px 4px 4px 8px; border-radius: 8px; background: var(--wd-paper); font-size: .78rem; }
.biz-file svg { flex: none; width: 14px; height: 14px; color: var(--wd-red); }
.biz-file b { overflow: hidden; max-width: 170px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; color: var(--wd-ink); }
.biz-file small { color: var(--erp-muted); white-space: nowrap; }
.biz-file button { width: 22px; height: 22px; border: 0; border-radius: 6px; background: none; color: var(--erp-muted); font-size: 1rem; line-height: 1; cursor: pointer; }
.biz-file button:hover { background: #fdecec; color: #a11a1a; }
.biz-qi textarea[name="note"]:focus { outline: none; border-color: var(--wd-ink); box-shadow: 2px 2px 0 var(--wd-c); }
.biz-qi input[name="qty"] { width: 100%; padding: 7px 4px; border: 1.5px solid var(--erp-line-strong); border-radius: 8px; font: inherit; font-weight: 800; text-align: center; }
.biz-qi > button[data-rm] { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 6px; background: none; color: var(--erp-muted); font-size: 1.2rem; cursor: pointer; }
.biz-qi > button[data-rm]:hover { background: #fdecec; color: #a11a1a; }

.biz-quote__form { display: grid; gap: 8px; flex: none; }
.biz-quote__form[hidden] { display: none; }
.biz-quote__form label { display: grid; gap: 3px; min-width: 0; }
.biz-quote__form label > span { font-size: .72rem; font-weight: 800; letter-spacing: .02em; color: var(--erp-muted); }
.biz-quote__form input, .biz-quote__form textarea { width: 100%; padding: 8px 10px; border: 1.5px solid var(--erp-line-strong); border-radius: 8px; font: inherit; font-size: .95rem; }
.biz-quote__form input:focus, .biz-quote__form textarea:focus { outline: none; border-color: var(--wd-ink); box-shadow: 3px 3px 0 var(--wd-c); }
.biz-quote__form .is-invalid { border-color: var(--wd-red); }
.biz-quote__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.biz-quote__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.biz-quote__err { margin: 0; padding: 8px 10px; border-radius: 8px; background: #fdecec; color: #a11a1a; font-size: .88rem; font-weight: 700; }
.biz-quote__form .cg-btn { justify-content: center; }
.biz-quote__form .cg-btn.is-loading { opacity: .6; pointer-events: none; }
.biz-quote__fine { margin: 0; font-size: .8rem; text-align: center; color: var(--erp-muted); }
.biz-quote__fine a { color: var(--wd-ink); font-weight: 700; }
.biz-quote__done { padding: 20px 4px; text-align: center; }
.biz-quote__done svg { width: 48px; height: 48px; color: #1a9c55; }
.biz-quote__done h3 { margin: 8px 0 6px; font-size: 1.2rem; }
.biz-quote__done p { margin: 0; color: var(--erp-text); }

/* ---------- Mobile bottom bar ---------- */
.biz-bar { position: fixed; z-index: 95; left: 50%; bottom: 14px; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--wd-ink); color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transform: translateX(-50%); white-space: nowrap; }
.biz-bar[hidden] { display: none; }
.biz-bar b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 4px; border-radius: 999px; background: var(--wd-red); font-size: .8rem; }
.biz-bar em { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: var(--wd-red); font-style: normal; }
.biz-bar svg { width: 16px; height: 16px; }

@media (min-width: 1025px) { .biz-bar { display: none !important; } }
@media (max-width: 1024px) {
	.biz-app__grid { grid-template-columns: minmax(0, 1fr); }
	.biz-quote { position: static; scroll-margin-top: 80px; }
	.biz-quote__box { max-height: none; }
	.biz-quote__items { max-height: 340px; }
}
@media (max-width: 640px) {
	.biz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.biz-card__body { padding: 8px 10px 4px; }
	.biz-card__name { font-size: .88rem; }
	.biz-card__more { margin: 4px 8px 8px; padding: 8px; font-size: .82rem; }
	.biz-prods { padding: 12px; }
	.biz-prods__list { grid-template-columns: minmax(0, 1fr); max-height: none; }
	.biz-prod__add span { display: none; }
	.biz-prod__add { padding: 10px; }
	.biz-quote__row { grid-template-columns: minmax(0, 1fr); }
	.biz-quote__box { box-shadow: 5px 5px 0 var(--wd-ink); }
	.biz-top__steps { gap: 8px; font-size: .9rem; }
}
