.uzsk-calculator {
	--uzsk-primary: #2563eb;
	--uzsk-primary-dark: #1d4ed8;
	--uzsk-border: #d9dde3;
	--uzsk-bg: #f8f9fb;
	--uzsk-radius: 8px;
	max-width: 720px;
	margin: 0 auto;
	font-size: 15px;
	box-sizing: border-box;
}

.uzsk-calculator *,
.uzsk-calculator *::before,
.uzsk-calculator *::after {
	box-sizing: border-box;
}

.uzsk-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.uzsk-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 10px;
}

.uzsk-field label {
	font-weight: 600;
	font-size: 14px;
}

.uzsk-field input[type="text"],
.uzsk-field input[type="tel"],
.uzsk-field input[type="email"],
.uzsk-field input[type="number"],
.uzsk-rail-length {
	padding: 10px 12px;
	border: 1px solid var(--uzsk-border);
	border-radius: var(--uzsk-radius);
	font-size: 15px;
	width: 100%;
	background: #fff;
}

.uzsk-card,
.uzsk-window-block {
	background: var(--uzsk-bg);
	border: 1px solid var(--uzsk-border);
	border-radius: var(--uzsk-radius);
	padding: 16px;
}

.uzsk-window-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.uzsk-window-header .uzsk-window-title {
	margin: 0;
}

.uzsk-remove-window-btn {
	background: #fff;
	border: 1px solid var(--uzsk-border);
	color: #9ca3af;
	width: 28px;
	height: 28px;
	min-width: 28px;
	max-width: 28px;
	padding: 0;
	margin: 0;
	border-radius: 50%;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
}

.uzsk-remove-window-btn:hover {
	border-color: #b3261e;
	color: #b3261e;
}

.uzsk-add-window-btn {
	width: 100%;
	background: #fff;
	color: var(--uzsk-primary);
	border: 1.5px dashed var(--uzsk-primary);
	border-radius: var(--uzsk-radius);
	padding: 12px 20px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.uzsk-add-window-btn:hover {
	background: #eef3ff;
}

.uzsk-add-window-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.uzsk-field-count {
	width: 100%;
	margin-bottom: 0;
}

.uzsk-count-warning {
	margin: 4px 0 0 0;
	font-size: 13px;
	color: #b3261e;
}

.uzsk-windows-container {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.uzsk-window-title {
	margin: 0 0 12px 0;
	font-size: 16px;
}

.uzsk-row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.uzsk-row .uzsk-field {
	flex: 1 1 140px;
}

/* Dienines/naktines mygtukai (pill stiliaus) */
.uzsk-type-buttons {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.uzsk-type-btn {
	flex: 1 1 auto;
	min-width: 110px;
	background: #fff;
	border: 1.5px solid var(--uzsk-border);
	border-radius: 999px;
	padding: 10px 16px;
	text-align: center;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	color: #6b7280;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	-webkit-tap-highlight-color: transparent;
	-webkit-appearance: none;
	appearance: none;
	-webkit-user-select: none;
	user-select: none;
	touch-action: manipulation;
}

.uzsk-type-btn:active {
	background: #fff;
	border-color: var(--uzsk-border);
	color: #6b7280;
}

.uzsk-type-btn.active:active {
	background: var(--uzsk-primary);
	border-color: var(--uzsk-primary);
	color: #fff;
}

.uzsk-type-btn:hover {
	border-color: var(--uzsk-primary);
	color: var(--uzsk-primary);
}

.uzsk-type-btn.active {
	background: var(--uzsk-primary);
	border-color: var(--uzsk-primary);
	color: #fff;
}

.uzsk-contact-title {
	margin: 0 0 12px 0;
}

.uzsk-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
	cursor: pointer;
}

.uzsk-checkbox-label input[type="checkbox"] {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.uzsk-field-gdpr .uzsk-checkbox-label {
	align-items: flex-start;
	font-weight: 400;
	font-size: 13px;
	line-height: 1.4;
}

.uzsk-field-gdpr input[type="checkbox"] {
	margin-top: 3px;
	flex-shrink: 0;
}

.uzsk-hp-wrap {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	height: 0;
	overflow: hidden;
}

.uzsk-calculate-btn {
	background: var(--uzsk-primary);
	color: #fff;
	border: none;
	border-radius: var(--uzsk-radius);
	padding: 14px 24px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
	width: 100%;
	text-align: center;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.uzsk-calculate-btn:hover {
	background: var(--uzsk-primary-dark);
}

.uzsk-calculate-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.uzsk-error-message {
	background: #fdecea;
	color: #b3261e;
	border: 1px solid #f5c6c3;
	border-radius: var(--uzsk-radius);
	padding: 12px 16px;
	font-size: 14px;
}

.uzsk-result {
	background: #eef7ee;
	border: 1px solid #c9e6c9;
	border-radius: var(--uzsk-radius);
	padding: 18px 20px;
}

.uzsk-result-total {
	font-size: 20px;
	margin-bottom: 14px;
}

.uzsk-result-total strong {
	color: #1a7a1a;
	margin-left: 6px;
}

.uzsk-result-window {
	margin-bottom: 18px;
}

.uzsk-result-window:last-of-type {
	margin-bottom: 14px;
}

.uzsk-result-window-title {
	margin: 0 0 8px 0;
	font-weight: 600;
	font-size: 14px;
	color: #2f4f2f;
}

.uzsk-result-window-total td {
	font-weight: 700;
	background: #dcefdc;
}

.uzsk-result-window-total td:first-child {
	text-align: right;
}

.uzsk-result-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 14px;
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.uzsk-result-table thead th {
	text-align: left;
	background: #dcefdc;
	padding: 8px 12px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #2f4f2f;
}

.uzsk-result-table tbody td {
	padding: 8px 12px;
	border-bottom: 1px solid #e3f0e3;
	font-size: 14px;
}

.uzsk-result-table tbody tr:nth-child(even) {
	background: #f4faf4;
}

.uzsk-result-table tbody tr:last-child td {
	border-bottom: none;
}

.uzsk-result-table thead th:not(:first-child),
.uzsk-result-table td:not(:first-child) {
	text-align: right;
}

.uzsk-result-table td:last-child {
	font-weight: 600;
}

.uzsk-preliminary-note {
	margin: 0 0 10px 0;
	font-size: 13px;
	font-style: italic;
	color: #5a6b5a;
}

.uzsk-spam-note {
	margin: 0 0 10px 0;
	font-size: 12px;
	color: #6b7280;
}

.uzsk-result-message {
	margin: 0;
	font-size: 14px;
	color: #2f4f2f;
	font-weight: 600;
}

/* Veiksmu mygtukai (skambinti / rasyti / susitikimas) */
.uzsk-action-buttons {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid #c9e6c9;
}

.uzsk-actions-title {
	margin: 0 0 10px 0;
	font-size: 14px;
	font-weight: 600;
	color: #2f4f2f;
}

.uzsk-action-buttons-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.uzsk-action-btn {
	flex: 1 1 150px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 12px 14px;
	border-radius: var(--uzsk-radius);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: 1.5px solid var(--uzsk-primary);
	background: #fff;
	color: var(--uzsk-primary);
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.uzsk-action-btn:hover {
	background: #eef3ff;
}

.uzsk-action-schedule {
	background: var(--uzsk-primary);
	color: #fff;
}

.uzsk-action-schedule:hover {
	background: var(--uzsk-primary-dark);
}

/* Susitikimo modalas */
.uzsk-schedule-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(15, 23, 42, 0.55);
	z-index: 9999;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.uzsk-schedule-modal {
	position: relative;
	background: #fff;
	border-radius: 12px;
	padding: 28px 24px;
	max-width: 380px;
	width: 100%;
	box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.uzsk-schedule-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 30px;
	height: 30px;
	min-width: 30px;
	max-width: 30px;
	padding: 0;
	margin: 0;
	border-radius: 50%;
	border: 1px solid var(--uzsk-border);
	background: #fff;
	color: #9ca3af;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
}

.uzsk-schedule-close:hover {
	border-color: #b3261e;
	color: #b3261e;
}

.uzsk-schedule-title {
	margin: 0 0 16px 0;
	font-size: 18px;
	padding-right: 24px;
}

.uzsk-schedule-time-buttons .uzsk-type-btn {
	flex: 1 1 70px;
	padding: 10px 8px;
}

.uzsk-schedule-error {
	background: #fdecea;
	color: #b3261e;
	border: 1px solid #f5c6c3;
	border-radius: var(--uzsk-radius);
	padding: 10px 14px;
	font-size: 13px;
	margin-bottom: 12px;
}

.uzsk-schedule-success {
	background: #eef7ee;
	color: #1a7a1a;
	border: 1px solid #c9e6c9;
	border-radius: var(--uzsk-radius);
	padding: 14px 16px;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 12px;
}

.uzsk-schedule-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 8px;
}

.uzsk-link-btn {
	background: none;
	border: none;
	color: #6b7280;
	text-decoration: underline;
	cursor: pointer;
	font-size: 14px;
	padding: 6px 0;
}

.uzsk-schedule-confirm-btn {
	background: var(--uzsk-primary);
	color: #fff;
	border: none;
	border-radius: var(--uzsk-radius);
	padding: 13px 20px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.uzsk-schedule-confirm-btn:hover {
	background: var(--uzsk-primary-dark);
}

.uzsk-schedule-confirm-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.uzsk-schedule-modal.uzsk-schedule-done .uzsk-field,
.uzsk-schedule-modal.uzsk-schedule-done .uzsk-schedule-actions {
	display: none;
}

@media (max-width: 480px) {
	.uzsk-row {
		flex-direction: column;
	}
	.uzsk-row .uzsk-field {
		flex: 0 1 auto;
	}
	.uzsk-action-btn {
		flex: 1 1 100%;
	}
}
