.lsg {
	display: block;
}

.lsg__group {
	margin: 0 0 26px;
	padding: 0 0 22px;
	border-bottom: 1px solid var(--glc-tool-line);
}

.lsg__group:last-of-type {
	border-bottom: 0;
}

.lsg__fields {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px 16px;
}

.lsg__req {
	color: #d93025;
	font-weight: 700;
}

.lsg__full {
	grid-column: 1 / -1;
}

.lsg__in {
	width: 100%;
	height: 46px;
	padding: 0 12px;
	border: 1px solid rgba(35, 77, 212, 0.4);
	border-radius: 10px;
	background: rgba(35, 77, 212, 0.06);
	color: var(--glc-tool-ink);
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

textarea.lsg__in {
	height: auto;
	min-height: 84px;
	padding: 10px 12px;
	resize: vertical;
}

.lsg__in:focus {
	border-color: var(--glc-tool-blue);
	background: #fff;
	outline: 0;
	box-shadow: 0 0 0 3px rgba(35, 77, 212, 0.14);
}

.lsg__in.is-invalid {
	border-color: #d93025;
	background: #fff5f5;
}

.lsg__in.is-invalid:focus {
	box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.14);
}

.lsg__err {
	display: block;
	margin: 6px 0 0;
	color: #d93025;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
}

.lsg__err:empty {
	display: none;
}

.lsg__err--day {
	grid-column: 1 / -1;
	margin: 0;
}

.glc-tf {
	min-width: 0;
}

.lsg__in:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

select.lsg__in option {
	background: #fff;
	color: var(--glc-tool-ink);
}

.lsg__check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--glc-tool-ink);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.lsg__check--inline {
	margin: 0 0 16px;
}

.lsg__check input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--glc-tool-blue);
	cursor: pointer;
}

.lsg__hours {
	display: grid;
	gap: 10px;
}

.lsg__hours.is-off {
	opacity: 0.5;
}

.lsg__day {
	display: grid;
	grid-template-columns: 54px 86px minmax(0, 1fr) 26px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
}

.lsg__day-name {
	color: var(--glc-tool-ink);
	font-size: 14px;
	font-weight: 600;
}

.lsg__day .lsg__in {
	height: 42px;
	min-width: 0;
	max-width: 100%;
	display: block;
	-webkit-appearance: none;
	appearance: none;
}

.lsg__day input[type="time"]::-webkit-date-and-time-value {
	text-align: left;
	min-height: 1.2em;
}

.lsg__to {
	color: var(--glc-tool-body);
	font-size: 13px;
	text-align: center;
}

.glc-tool__btn--ghost {
	background: transparent;
	color: var(--glc-tool-blue);
}

.glc-tool__btn--ghost:hover {
	background: var(--glc-tool-blue);
	color: #fff;
}

.lsg__out {
	margin: 28px 0 0;
}

.lsg__notes:not(:empty) {
	margin: 0 0 18px;
	display: grid;
	gap: 8px;
}

.lsg__note {
	padding: 10px 14px;
	border-left: 3px solid #e0a500;
	border-radius: 0 8px 8px 0;
	background: #fff8e6;
	color: #7a5b00;
	font-size: 13.5px;
	line-height: 1.5;
}

.lsg__tabs {
	display: inline-flex;
	gap: 6px;
	margin: 0 0 14px;
	padding: 5px;
	border-radius: 12px;
	background: var(--glc-tool-tint);
}

.lsg__tab {
	padding: 9px 20px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--glc-tool-blue);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.lsg__tab.is-active {
	background: var(--glc-tool-blue);
	color: #fff;
}

.lsg__code-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 10px;
}

.lsg__code-label {
	color: var(--glc-tool-ink);
	font-size: 16px;
	font-weight: 600;
}

.lsg__code-acts {
	display: flex;
	gap: 8px;
}

.lsg__act {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--glc-tool-blue);
	border-radius: 9px;
	background: var(--glc-tool-blue);
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.lsg__act:hover {
	background: transparent;
	color: var(--glc-tool-blue);
}

.lsg__act-ico svg {
	width: 17px;
	height: 17px;
}

.lsg__code {
	margin: 0;
	padding: 20px 22px;
	max-height: 460px;
	overflow: auto;
	border: 1px solid rgba(35, 77, 212, 0.25);
	border-radius: 14px;
	background: #0b1b3f;
	color: #e6ecff;
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
	font-size: 13.5px;
	line-height: 1.65;
	white-space: pre;
	tab-size: 2;
}

.lsg__code code {
	display: block;
	padding: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	white-space: pre;
}

.lsg__code:focus {
	outline: 2px solid rgba(35, 77, 212, 0.55);
	outline-offset: 2px;
}

.lsg__status {
	min-height: 20px;
	margin: 10px 0 0;
	color: var(--glc-tool-blue);
	font-size: 13.5px;
	font-weight: 600;
}

@media (max-width: 991.98px) {
	.lsg__fields {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575.98px) {
	.lsg__fields {
		grid-template-columns: minmax(0, 1fr);
	}

	.lsg__day {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		row-gap: 8px;
	}

	.lsg__to {
		display: none;
	}

	.lsg__code-acts {
		width: 100%;
	}

	.lsg__act {
		flex: 1 1 auto;
		justify-content: center;
	}
}
