/* ==========================================================================
   DRESSCODE - Fit asistent popup (Tabela veličina)
   ========================================================================== */

.gsz-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: stretch;
	justify-content: stretch;
	padding: 0;
	background: #fff;
	opacity: 0;
	transition: opacity 0.2s ease;
	font-family: 'Montserrat', -apple-system, sans-serif;
}
.gsz-modal.is-open { opacity: 1; }
.gsz-modal[hidden] { display: none; }
.gsz-backdrop { display: none; }

.gsz-shell {
	position: relative;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	padding: 16px 20px;
	background: #fff;
	overflow: hidden;
}

.gsz-close {
	position: absolute;
	top: 30px; right: 40px;
	z-index: 5;
	width: 44px; height: 44px;
	border: 0; background: transparent;
	color: #171717; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
}
.gsz-close svg { width: 24px; height: 24px; }
.gsz-close:hover { background: rgba(0, 0, 0, 0.07); }

.gsz-content {
	width: 100%;
	height: 100%;
	background: #F0F0F0;
	border-radius: 8px;
	display: flex;
	align-items: safe center;
	justify-content: center;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	padding: 28px 20px;
}

/* ===== Reset: ubij Elementor/temu (pink borderi, focus, box-shadow) ===== */
.gsz-modal button,
.gsz-modal input,
.gsz-modal a,
.gsz-modal .gsz-tab,
.gsz-modal .gsz-btn,
.gsz-modal .gsz-close,
.gsz-modal .gsz-pill {
	box-shadow: none !important;
	outline: none !important;
}
.gsz-modal button,
.gsz-modal .gsz-tab,
.gsz-modal .gsz-btn,
.gsz-modal .gsz-close { border: 0 !important; }
.gsz-modal input { border: 0 !important; }
.gsz-modal input:focus,
.gsz-modal button:focus,
.gsz-modal a:focus { box-shadow: none !important; outline: none !important; border-color: #DBDBDB !important; }
.gsz-modal .gsz-cm { border: 1px solid #DBDBDB !important; }
.gsz-modal .gsz-cm:focus-within { border-color: #171717 !important; }
.gsz-modal .gsz-cm input { background: transparent !important; }

/* X dugme - bez crvene, kao kabina (transparent, suptilan hover) */
.gsz-modal .gsz-close,
.gsz-modal .gsz-close:hover,
.gsz-modal .gsz-close:focus,
.gsz-modal .gsz-close:active {
	background: transparent !important;
	color: #171717 !important;
	border: 0 !important;
	box-shadow: none !important;
}
.gsz-modal .gsz-close:hover { background: rgba(0, 0, 0, 0.07) !important; }

/* Tabovi - bez crvenog hovera */
.gsz-modal .gsz-tab:hover,
.gsz-modal .gsz-tab:focus,
.gsz-modal .gsz-tab:active { background: transparent !important; color: #626262 !important; }
.gsz-modal .gsz-tab.is-active,
.gsz-modal .gsz-tab.is-active:hover,
.gsz-modal .gsz-tab.is-active:focus { background: #1A1A1A !important; color: #fff !important; }

/* ---------- View grid ---------- */
.gsz-view {
	display: grid;
	grid-template-columns: 40% 60%;
	align-items: stretch;
	gap: 0;
	width: min(980px, 100%);
	max-height: 100%;
	margin: auto;
	background: transparent;
}

.gsz-illu { background: transparent; overflow: hidden; }
.gsz-illu img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 14px; }
.gsz-view--input .gsz-illu { display: flex; align-items: center; justify-content: center; }
.gsz-view--input .gsz-illu img { object-fit: contain; }

.gsz-panel {
	padding: 32px 38px;
	color: #171717;
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

/* ---------- Head ---------- */
.gsz-head { display: flex; flex-direction: column; gap: 2px; }
.gsz-kicker { font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #747474; }
.gsz-title { font-size: 17px; font-weight: 700; }
.gsz-title--big { font-size: 22px; letter-spacing: 0.2px; }
.gsz-sub { font-size: 12.5px; color: #626262; }

/* ---------- Tabs ---------- */
.gsz-tabs { display: flex; gap: 5px; background: #fff; border-radius: 999px; padding: 5px; }
.gsz-tab {
	flex: 1; background: transparent !important; cursor: pointer;
	padding: 12px 8px; border-radius: 999px !important;
	font-family: inherit; font-size: 13px; font-weight: 600; color: #626262 !important;
	transition: background 0.15s, color 0.15s;
}
.gsz-tab.is-active { background: #1A1A1A !important; color: #fff !important; }

.gsz-pane { display: none; flex-direction: column; gap: 14px; }
.gsz-pane.is-active { display: flex; }

/* ---------- Fields ---------- */
.gsz-fields { display: flex; flex-direction: column; gap: 13px; }
.gsz-field { display: flex; flex-direction: column; gap: 7px; }
.gsz-label { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.gsz-tip {
	width: 16px; height: 16px; border-radius: 50%;
	border: 1px solid #BCBCBC; color: #828282; font-size: 10px; font-weight: 700;
	display: inline-flex; align-items: center; justify-content: center;
	cursor: help; position: relative; flex: 0 0 auto;
}
.gsz-tip:hover::after, .gsz-tip.is-open::after {
	content: attr(data-gsz-tip);
	position: absolute; bottom: 145%; left: 50%; transform: translateX(-50%);
	background: #171717; color: #fff; padding: 8px 11px; border-radius: 9px;
	font-size: 11px; font-weight: 400; line-height: 1.4;
	width: max-content; max-width: 210px; white-space: normal; text-align: center;
	z-index: 10; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}
.gsz-cm {
	display: flex; align-items: center;
	background: #fff; border: 1px solid #DBDBDB; border-radius: 12px; overflow: hidden;
}
.gsz-cm input {
	flex: 1; min-width: 0; border: 0; background: transparent;
	padding: 13px 14px; font-family: inherit; font-size: 14px; color: #171717; outline: none;
}
.gsz-cm span { padding: 0 14px; color: #919191; font-size: 12px; font-weight: 600; }

.gsz-err {
	background: #fbeaea; color: #9b2c2c; border-radius: 10px;
	padding: 10px 12px; font-size: 12.5px;
}

/* ---------- Foot ---------- */
.gsz-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 4px; }
.gsz-save { font-size: 12.5px; color: #626262; }

.gsz-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	border: 0; border-radius: 6px !important; cursor: pointer;
	font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 500;
	line-height: 21px; letter-spacing: 0.69px;
	padding: 13px 26px; transition: opacity 0.15s;
}
.gsz-btn svg { width: 17px; height: 17px; }
.gsz-btn--dark,
.gsz-btn--dark:hover,
.gsz-btn--dark:focus,
.gsz-btn--dark:active { background: #1A1A1A !important; color: #F0F0F0 !important; }
.gsz-btn--dark:hover { opacity: 0.9; }
.gsz-btn--dark[disabled] { opacity: 0.4; cursor: not-allowed; }
.gsz-btn--light,
.gsz-btn--light:hover,
.gsz-btn--light:focus,
.gsz-btn--light:active { background: #fff !important; color: #171717 !important; border: 1px solid #D4D4D4 !important; }
.gsz-btn--light:hover { background: #F5F5F5 !important; }
.gsz-btn.is-loading { opacity: 0.55; pointer-events: none; }

.gsz-link { color: #171717 !important; text-decoration: underline; text-underline-offset: 2px; font-size: 13px; font-weight: 600; }
.gsz-link:hover { color: #000 !important; }
.gsz-edit { align-self: flex-start; }

/* ---------- Chart (Tabela veličina tab) ---------- */
.gsz-chart-note { margin: 0; font-size: 12px; color: #626262; line-height: 1.45; }

/* Tabela veličina - IDENTIČNA accountu (gma-ts-*) */
.gma-ts-table-wrap { border: 1px solid #E5E5E5; border-radius: 12px; overflow: auto; -webkit-overflow-scrolling: touch; }
.gma-ts-table { width: 100%; border-collapse: collapse; min-width: 0; }
.gma-ts-table thead th { background: #0a0a0a; color: #fff; font-size: 12px; font-weight: 600; text-align: left; padding: 13px 14px; white-space: nowrap; }
.gma-ts-table tbody td { padding: 13px 14px; font-size: 12.5px; color: #525252; border-bottom: 1px solid #E9E9E9; vertical-align: middle; white-space: nowrap; }
.gma-ts-table tbody tr:last-child td { border-bottom: 0; }
.gma-ts-table tbody tr:nth-child(even) td { background: #F6F6F6; }
.gma-ts-table tbody tr.is-mine td { background: #eef7ef; }
.gma-ts-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 7px; border-radius: 50%; background: #171717; color: #fff; font-size: 11.5px; font-weight: 600; }
.gma-ts-table tbody tr.is-mine .gma-ts-badge { background: #2D7A3A; }

.gsz-fitbox { background: #fff; border-radius: 12px; padding: 14px 16px; }
.gsz-fitbox__head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.gsz-fitbox__head svg { width: 16px; height: 16px; flex: 0 0 auto; }
.gsz-fitbox p { margin: 0; font-size: 12.5px; color: #626262; line-height: 1.5; }

/* ---------- Result ---------- */
.gsz-view--result .gsz-panel { gap: 14px; }
.gsz-reco {
	position: relative; overflow: hidden;
	background: #0A0A0A; color: #fff;
	border-radius: 16px; padding: 22px 24px; text-align: center;
}
.gsz-reco__deco { position: absolute; top: -30px; right: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); }
.gsz-reco__label { font-size: 10.5px; letter-spacing: 1.4px; color: #BEBEBE; font-weight: 600; }
.gsz-reco__size { font-size: 56px; font-weight: 300; line-height: 1.15; margin: 4px 0 2px; }
.gsz-reco__sub { font-size: 12px; color: #ACACAC; }

.gsz-measures { background: #fff; border-radius: 14px; padding: 15px 18px; }
.gsz-measures__label { font-size: 10.5px; letter-spacing: 0.8px; color: #919191; font-weight: 700; margin-bottom: 11px; }
.gsz-measures__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.gsz-mrow { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; }
.gsz-mrow__k { color: #626262; }
.gsz-mrow__v { font-weight: 700; }
.gsz-mrow__v i { font-style: normal; color: #919191; font-size: 11px; font-weight: 400; }

.gsz-fitline { display: flex; gap: 11px; align-items: flex-start; }
.gsz-fitline__check {
	flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%;
	background: #1f8a4c; color: #fff; font-size: 12px;
	display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.gsz-fitline strong { font-size: 13px; }
.gsz-fitline p { margin: 3px 0 0; font-size: 12.5px; color: #626262; line-height: 1.5; }

/* Korisnikova veličina nije dostupna za ovaj model */
.gsz-fitline__check.is-warn { background: #b45309; font-weight: 700; }
.gsz-reco--unavail .gsz-reco__size { opacity: 0.55; }
.gsz-reco--unavail .gsz-reco__sub { color: #B5B5B5; }
/* Proizvod na posebnoj skali veličina (kupaći 3B/4B/5B…) - informativno, ne "rasprodano" */
.gsz-fitline__check.is-info { background: #6b7280; font-style: italic; font-weight: 700; font-family: Georgia, serif; }

.gsz-allsizes__label { font-size: 12px; color: #626262; margin-bottom: 8px; }
.gsz-allsizes__row { display: flex; gap: 8px; flex-wrap: wrap; }
.gsz-pill {
	min-width: 48px; text-align: center; padding: 11px 8px;
	border: 1px solid #D4D4D4; border-radius: 10px; background: #fff;
	font-size: 13px; font-weight: 600; color: #171717;
}
.gsz-pill.is-rec { background: #0A0A0A; color: #fff; border-color: #0A0A0A; }
.gsz-pill.is-out { opacity: 0.4; text-decoration: line-through; }
.gsz-pill[data-gsz-pick] { cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.gsz-pill[data-gsz-pick]:hover:not(.is-rec) { border-color: #0A0A0A; }
.gsz-noinfo { margin: 0; font-size: 12.5px; color: #626262; line-height: 1.5; }

.gsz-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.gsz-actions .gsz-btn { width: 100%; }

/* ---------- Oznaka veličine na stranici proizvoda ---------- */
.gsz-trigger-badge {
	display: inline-block; margin-left: 8px;
	background: #0A0A0A; color: #fff;
	font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px;
	vertical-align: middle;
}
.gpi-size-box.gsz-recommended { position: relative; border-color: #0A0A0A !important; box-shadow: 0 0 0 1.5px #0A0A0A inset; }
.gpi-size-box.gsz-recommended::after {
	content: "\2713"; position: absolute; top: -7px; right: -7px;
	width: 18px; height: 18px; border-radius: 50%;
	background: #0A0A0A; color: #fff; font-size: 10px;
	display: flex; align-items: center; justify-content: center;
}

html.gsz-modal-open, body.gsz-modal-open { overflow: hidden !important; overscroll-behavior: contain; }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
	.gsz-shell { padding: 8px; }
	.gsz-content { align-items: flex-start; justify-content: flex-start; padding: 16px 14px 28px; border-radius: 6px; }
	.gsz-view { grid-template-columns: 1fr; width: 100%; margin: 0; }
	.gsz-illu { max-height: 34vh; border-radius: 12px; }
	.gsz-view--input .gsz-illu img { max-height: 34vh; }
	.gsz-panel { padding: 20px 4px 10px; }
	.gsz-title--big { font-size: 19px; }
	.gsz-reco__size { font-size: 48px; }
	.gsz-measures__grid { grid-template-columns: 1fr; gap: 9px; }
	.gsz-foot { flex-direction: column; align-items: stretch; gap: 12px; }
	.gsz-foot .gsz-btn--dark { width: 100%; }
	.gsz-close { top: 14px; right: 14px; background: rgba(255, 255, 255, 0.75); }
	/* Tabela mobilno (kao account) */
	.gma-ts-table-wrap { overflow: hidden; }
	.gma-ts-table { table-layout: fixed; }
	.gma-ts-table thead th, .gma-ts-table tbody td { white-space: normal; padding: 12px 8px; font-size: 12px; word-break: break-word; }
	.gma-ts-table thead th:first-child, .gma-ts-table tbody td:first-child { width: 54px; }
	.gma-ts-badge { min-width: 30px; height: 30px; font-size: 11px; padding: 0 5px; }
}
