/* Tip Calculator & Bill Splitter - Styles */

.tcbs-wrapper {
	max-width: 420px;
	margin: 24px auto;
	padding: 24px;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
}

.tcbs-wrapper * {
	box-sizing: border-box;
}

.tcbs-title {
	margin: 0 0 20px;
	font-size: 20px;
	font-weight: 700;
	color: #1a1a1a;
	text-align: center;
}

.tcbs-field {
	margin-bottom: 18px;
}

.tcbs-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #555;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.tcbs-input {
	width: 100%;
	padding: 12px 14px;
	font-size: 16px;
	border: 2px solid #e2e2e2;
	border-radius: 10px;
	background: #fafafa;
	color: #1a1a1a;
	transition: border-color 0.15s ease;
}

.tcbs-input:focus {
	outline: none;
	border-color: #2f9e6e;
	background: #ffffff;
}

.tcbs-field-row {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-bottom: 8px;
}

.tcbs-field-bill {
	flex: 1 1 60%;
}

.tcbs-field-currency {
	flex: 1 1 40%;
}

.tcbs-select-wrap {
	position: relative;
}

.tcbs-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;
}

.tcbs-select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 100%;
	font-family: inherit;
	padding: 12px 34px 12px 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
}

.tcbs-rate-note {
	margin: 0 0 18px;
	font-size: 12px;
	line-height: 1.4;
	color: #888;
}

.tcbs-tip-buttons {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 8px;
}

.tcbs-tip-btn {
	padding: 10px 4px;
	font-size: 14px;
	font-weight: 600;
	border: 2px solid #e2e2e2;
	border-radius: 10px;
	background: #fafafa;
	color: #333;
	cursor: pointer;
	transition: all 0.15s ease;
}

.tcbs-tip-btn:hover {
	border-color: #2f9e6e;
}

.tcbs-tip-btn.tcbs-active {
	background: #2f9e6e;
	border-color: #2f9e6e;
	color: #ffffff;
}

.tcbs-stepper {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tcbs-step-btn {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	font-size: 20px;
	font-weight: 700;
	line-height: 46;
	border: 2px solid #e2e2e2;
	border-radius: 10px;
	background: #fafafa;
	color: #333;
	cursor: pointer;
	transition: all 0.15s ease;
}

.tcbs-step-btn:hover {
	border-color: #2f9e6e;
	color: #2f9e6e;
}

.tcbs-people-input {
	text-align: center;
	flex: 1 1 auto;
}

.tcbs-results {
	margin-top: 22px;
	padding: 18px;
	background: #f4f9f6;
	border-radius: 12px;
}

.tcbs-result-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 0;
	font-size: 15px;
	color: #444;
}

.tcbs-result-row span:last-child {
	font-weight: 700;
	color: #1a1a1a;
}

.tcbs-result-row.tcbs-highlight {
	margin-top: 8px;
	padding-top: 14px;
	border-top: 1px dashed #cfe3d8;
	font-size: 18px;
}

.tcbs-result-row.tcbs-highlight span:last-child {
	color: #2f9e6e;
	font-size: 22px;
}

.tcbs-reset-btn {
	display: block;
	width: 100%;
	margin-top: 16px;
	padding: 12px;
	font-size: 14px;
	font-weight: 600;
	color: #888;
	background: transparent;
	border: 2px solid #e2e2e2;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.tcbs-reset-btn:hover {
	border-color: #cc4b4b;
	color: #cc4b4b;
}

@media (max-width: 480px) {
	.tcbs-wrapper {
		padding: 18px;
		margin: 16px 10px;
	}

	.tcbs-tip-buttons {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 380px) {
	.tcbs-field-row {
		flex-direction: column;
	}

	.tcbs-field-bill,
	.tcbs-field-currency {
		flex: 1 1 100%;
		width: 100%;
	}
}