/**
 * Glass Fence Configurator v2 — doplňkové styly.
 * Načítá se NAD styles.css (v1) — základní wizard třídy .gfc-* se sdílejí.
 */

.gfc2 {
	max-width: 900px;
}

/* ---------------------------------------------------------------------- */
/* Vizualizace                                                             */
/* ---------------------------------------------------------------------- */

.gfc2-viz {
	margin-bottom: 28px;
	padding: 16px 18px 12px;
	background: linear-gradient(180deg, #eef6fb 0%, #f8fbfd 70%, #f5f2ec 100%);
	border: 1px solid var(--gfc-line);
	border-radius: var(--gfc-radius);
}

.gfc2-viz__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.gfc2-viz__toolbar:empty {
	margin-bottom: 0;
}

.gfc2-viz__toolbar-label {
	font-size: 13px;
	color: var(--gfc-muted);
	margin-right: 4px;
}

.gfc2-side-tab {
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 600;
	border: 1px solid var(--gfc-line);
	border-radius: 999px;
	background: #fff;
	color: var(--gfc-muted);
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.gfc2-side-tab.is-active {
	border-color: var(--gfc-primary);
	background: var(--gfc-primary);
	color: #fff;
}

.gfc2-viz__canvas {
	display: block;
}

.gfc2-svg {
	display: block;
	width: 100%;
	height: auto;
	background: #fff;
	border-radius: 8px;
}

.gfc2-svg--main {
	max-height: 380px;
}

.gfc2-viz__empty {
	padding: 40px 16px;
	text-align: center;
	color: var(--gfc-muted);
	background: #fff;
	border-radius: 8px;
}

.gfc2-wall-field {
	margin-top: 20px;
	max-width: 340px;
}

.gfc2-wall-field .gfc-field__input-wrap {
	max-width: 260px;
}

/* Tip na měření (z manuálu) */
.gfc2-tip {
	margin-bottom: 20px;
	padding: 14px 16px;
	background: #eef6fb;
	border-left: 4px solid var(--gfc-primary);
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.55;
}

.gfc2-tip strong { color: var(--gfc-primary); }

/* Karty skla — auto-fit, zvládne 2, 3 i více typů */
.gfc-cards--glass {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
}

/* Sekce O produktu */
.gfc2-product-info {
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid var(--gfc-line);
}

.gfc2-product-info__title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 8px;
}

.gfc2-product-info__lead {
	color: var(--gfc-muted);
	margin: 0 0 20px;
}

.gfc2-info-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 20px;
}

.gfc2-info-card {
	padding: 16px 18px;
	background: var(--gfc-bg-soft);
	border-radius: var(--gfc-radius);
}

.gfc2-info-card h4 {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 700;
}

.gfc2-info-card ul {
	margin: 0;
	padding-left: 18px;
	font-size: 14px;
	line-height: 1.6;
}

.gfc2-spec {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.gfc2-spec td {
	padding: 6px 0;
	border-bottom: 1px solid var(--gfc-line);
	vertical-align: top;
}

.gfc2-spec td:first-child {
	color: var(--gfc-muted);
	padding-right: 12px;
	white-space: nowrap;
}

.gfc2-benefits {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px;
	margin-bottom: 14px;
}

.gfc2-benefit {
	padding: 14px 16px;
	background: #f0fdf4;
	border-radius: var(--gfc-radius);
	font-size: 14px;
	line-height: 1.5;
}

.gfc2-benefit strong { display: block; margin-bottom: 2px; }

.gfc2-product-info__note {
	font-size: 13px;
	color: var(--gfc-muted);
	font-style: italic;
}

@media (max-width: 600px) {
	.gfc2-info-grid { grid-template-columns: 1fr; }
}

.gfc2-viz__caption {
	margin: 10px 0 0;
	text-align: center;
	font-size: 13px;
	color: var(--gfc-muted);
}

/* ---------------------------------------------------------------------- */
/* Ikony způsobu montáže                                                   */
/* ---------------------------------------------------------------------- */

.gfc2-mount-ico {
	display: block;
	width: 76px;
	height: 64px;
	margin: 0 auto 14px;
	border-radius: 8px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.gfc2-mount-ico--posts {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 76 64'%3E%3Crect x='6' y='10' width='10' height='44' rx='2' fill='%23808890'/%3E%3Crect x='60' y='10' width='10' height='44' rx='2' fill='%23808890'/%3E%3Crect x='18' y='16' width='40' height='34' fill='%23a8d4e6' fill-opacity='0.6' stroke='%238fb6c7' stroke-width='2'/%3E%3Crect x='2' y='52' width='18' height='6' fill='%235b6167'/%3E%3Crect x='56' y='52' width='18' height='6' fill='%235b6167'/%3E%3C/svg%3E");
}

.gfc2-mount-ico--masonry {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 76 64'%3E%3Crect x='4' y='8' width='16' height='48' fill='%23c9836a' stroke='%23a9694f' stroke-width='2'/%3E%3Crect x='56' y='8' width='16' height='48' fill='%23c9836a' stroke='%23a9694f' stroke-width='2'/%3E%3Cline x1='4' y1='24' x2='20' y2='24' stroke='%23a9694f' stroke-width='2'/%3E%3Cline x1='4' y1='40' x2='20' y2='40' stroke='%23a9694f' stroke-width='2'/%3E%3Cline x1='56' y1='24' x2='72' y2='24' stroke='%23a9694f' stroke-width='2'/%3E%3Cline x1='56' y1='40' x2='72' y2='40' stroke='%23a9694f' stroke-width='2'/%3E%3Crect x='22' y='16' width='32' height='34' fill='%23a8d4e6' fill-opacity='0.6' stroke='%238fb6c7' stroke-width='2'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------------- */
/* Editor stran a polí                                                     */
/* ---------------------------------------------------------------------- */

.gfc2-sides {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 12px;
}

.gfc2-side {
	padding: 14px 16px;
	border: 1px solid var(--gfc-line);
	border-radius: var(--gfc-radius);
	background: var(--gfc-bg-soft);
}

.gfc2-side__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.gfc2-side__title {
	font-weight: 700;
	font-size: 15px;
}

.gfc2-side__remove {
	border: 0;
	background: none;
	color: var(--gfc-muted);
	font-size: 13px;
	cursor: pointer;
	padding: 2px 4px;
}

.gfc2-side__remove:hover {
	color: var(--gfc-error);
}

.gfc2-field-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.gfc2-field-row__label {
	flex: 0 0 58px;
	font-size: 14px;
	color: var(--gfc-muted);
}

.gfc2-field-row__input {
	flex: 1;
	max-width: 150px;
}

.gfc2-field-row__input input {
	background: #fff;
	padding-right: 44px;
}

.gfc2-field-row__times {
	color: var(--gfc-muted);
	font-weight: 600;
}

.gfc2-field-row__remove {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border: 1px solid var(--gfc-line);
	border-radius: 50%;
	background: #fff;
	color: var(--gfc-muted);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.gfc2-field-row__remove:hover {
	border-color: var(--gfc-error);
	color: var(--gfc-error);
}

.gfc2-add-field {
	margin-top: 4px;
	padding: 7px 14px;
	font-size: 13px;
}

.gfc2-add-side {
	padding: 9px 18px;
	font-size: 14px;
}

.gfc2-height-field {
	margin-top: 24px;
	max-width: 340px;
}

.gfc2-height-field .gfc-field__input-wrap {
	max-width: 260px;
}

/* ---------------------------------------------------------------------- */
/* Souhrn po stranách                                                      */
/* ---------------------------------------------------------------------- */

.gfc2-summary-side {
	margin-bottom: 16px;
}

.gfc2-summary-side__title {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 700;
	color: var(--gfc-ink);
}

/* ---------------------------------------------------------------------- */
/* Mobil                                                                   */
/* ---------------------------------------------------------------------- */

@media (max-width: 720px) {
	.gfc2-svg--main {
		max-height: none;
	}
}

@media (max-width: 600px) {
	.gfc2-viz {
		padding: 12px 10px 8px;
		margin-left: -4px;
		margin-right: -4px;
	}

	.gfc2-field-row {
		flex-wrap: wrap;
	}

	.gfc2-field-row__label {
		flex-basis: 100%;
		font-size: 13px;
	}

	.gfc2-field-row__input {
		max-width: none;
	}
}
