/* USA Time Zone Converter - Styles */

.utzc-wrapper {
	max-width: 480px;
	margin: 24px auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
	line-height: 1.5;
}

.utzc-wrapper * {
	box-sizing: border-box;
}

/*
 * Defensive reset: many WordPress themes apply their own (often very tight)
 * line-height to inputs, selects, buttons, and text elements globally. That
 * mismatch between the theme's line-height and each element's actual box
 * height is what causes text to appear clipped at the top. Forcing a safe
 * line-height here, scoped only to this widget, fixes it regardless of the
 * active theme.
 */
.utzc-wrapper input,
.utzc-wrapper select,
.utzc-wrapper button,
.utzc-wrapper label,
.utzc-wrapper span,
.utzc-wrapper div,
.utzc-wrapper p,
.utzc-wrapper h3,
.utzc-wrapper h4 {
	line-height: 1.5 !important;
}

.utzc-title {
	margin: 0 0 16px;
	font-size: 20px;
	font-weight: 700;
	color: #1a1a1a;
	text-align: center;
}

.utzc-card {
	padding: 24px;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.utzc-field-row {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 16px;
}

.utzc-zone-row {
	align-items: stretch;
	gap: 10px;
}

.utzc-field {
	width: 100%;
}

.utzc-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #555;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	text-align: center;
}

.utzc-input {
	width: 100%;
	padding: 12px 14px !important;
	font-size: 15px;
	border: 2px solid #e2e2e2;
	border-radius: 10px;
	background: #fafafa;
	color: #1a1a1a;
	font-family: inherit;
	transition: border-color 0.15s ease;
	min-height: 46px;
	color-scheme: light;
	text-align: center;
}

.utzc-input:focus {
	outline: none;
	border-color: #3b82f6;
	background: #ffffff;
}

.utzc-select-wrap {
	position: relative;
}

.utzc-select-wrap::after {
	content: '';
	position: absolute;
	top: 50%;
	right: 16px;
	width: 8px;
	height: 8px;
	border-right: 2px solid #555;
	border-bottom: 2px solid #555;
	transform: translateY(-65%) rotate(45deg);
	pointer-events: none;
}

.utzc-select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 100%;
	min-height: 46px;
	padding: 12px 34px !important;
	white-space: nowrap;
	overflow-x: hidden;
	overflow-y: visible;
	text-overflow: ellipsis;
	cursor: pointer;
	text-align: center;
}

.utzc-swap-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	width: 42px;
	height: 42px;
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	border: 2px solid #e2e2e2;
	border-radius: 10px;
	background: #fafafa;
	color: #3b82f6;
	cursor: pointer;
	transition: all 0.15s ease;
}

.utzc-swap-btn:hover {
	border-color: #3b82f6;
	background: #eaf2ff;
}

.utzc-result {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
	padding: 18px;
	background: #f2f7ff;
	border-radius: 12px;
}

.utzc-result-from,
.utzc-result-to {
	width: 100%;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.utzc-result-from span:first-child,
.utzc-result-to span:first-child {
	font-size: 22px;
	font-weight: 700;
	color: #1a1a1a;
}

.utzc-result-zone-label {
	font-size: 12px;
	color: #667085;
}

.utzc-result-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: #3b82f6;
	transform: rotate(90deg);
}

.utzc-day-note {
	margin: 10px 0 0;
	font-size: 12px;
	color: #b45309;
	text-align: center;
	min-height: 16px;
}

.utzc-now-btn {
	display: block;
	width: 100%;
	margin-top: 16px;
	padding: 12px;
	font-size: 14px;
	font-weight: 600;
	color: #3b82f6;
	background: #eaf2ff;
	border: 2px solid transparent;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.utzc-now-btn:hover {
	background: #dbe9ff;
}

.utzc-live-section {
	margin-top: 20px;
}

.utzc-live-title {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 700;
	color: #1a1a1a;
	text-align: center;
}

.utzc-live-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.utzc-live-card {
	padding: 14px;
	background: #ffffff;
	border: 1px solid #eee;
	border-radius: 12px;
	text-align: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.utzc-live-label {
	font-size: 12px;
	font-weight: 600;
	color: #667085;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 6px;
}

.utzc-live-time {
	font-size: 18px;
	font-weight: 700;
	color: #1a1a1a;
}

.utzc-live-date {
	font-size: 12px;
	color: #999;
	margin-top: 4px;
}

@media (max-width: 480px) {
	.utzc-card {
		padding: 16px;
	}

	.utzc-title {
		font-size: 18px;
	}

	.utzc-live-grid {
		grid-template-columns: 1fr;
	}

	.utzc-live-card {
		text-align: center;
	}
}

