.escpc-calculator,
.escpc-calculator * {
	box-sizing: border-box;
}

.escpc-calculator {
	--escpc-dark: #1f4e78;
	--escpc-panel-blue: #5b9bd5;
	--escpc-light-blue: #d9eaf7;
	--escpc-pale-yellow: #fff2cc;
	--escpc-border: #111111;
	width: 100%;
	max-width: 100%;
	margin: 24px auto;
	font-family: Carlito, Calibri, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.25;
	color: #111111;
	background: #ffffff;
}

.escpc-title {
	padding: 13px 18px;
	background: var(--escpc-dark);
	color: #ffffff;
	font-size: clamp(20px, 2vw, 29px);
	font-weight: 700;
	text-align: center;
}

.escpc-instruction {
	padding: 10px 18px;
	background: var(--escpc-light-blue);
	font-size: 17px;
	font-style: italic;
	text-align: center;
}

.escpc-top-grid {
	display: grid;
	grid-template-columns: minmax(245px, 0.95fr) minmax(280px, 1fr) minmax(310px, 1.25fr);
	gap: clamp(18px, 4vw, 70px);
	align-items: start;
	padding: 22px 0 24px;
}

.escpc-panel,
.escpc-note {
	border: 1px solid var(--escpc-border);
}

.escpc-panel-title {
	margin: 0;
	padding: 4px 12px;
	border-bottom: 1px solid var(--escpc-border);
	background: var(--escpc-panel-blue);
	color: #ffffff;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.15;
	text-align: left;
}

.escpc-panel-row {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(130px, 0.9fr);
	min-height: 31px;
	border-bottom: 1px solid var(--escpc-border);
}

.escpc-panel-row:last-child {
	border-bottom: 0;
}

.escpc-panel-row > label,
.escpc-panel-row > span:first-child {
	display: flex;
	align-items: center;
	padding: 4px 7px;
	background: var(--escpc-light-blue);
	font-weight: 700;
}

.escpc-rate-panel .escpc-panel-row > label {
	background: #d9eaf7;
}

.escpc-panel-row > output,
.escpc-currency-input {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	border-left: 1px solid var(--escpc-border);
	background: var(--escpc-pale-yellow);
	font-size: 17px;
	font-weight: 700;
	text-align: center;
}

.escpc-currency-input {
	justify-content: flex-start;
	gap: 8px;
	padding: 0 8px;
}

.escpc-currency-input > span {
	flex: 0 0 auto;
	font-weight: 700;
}

.escpc-currency-input input {
	min-width: 0;
	width: 100%;
	padding: 4px 0;
	border: 0 !important;
	outline: 0;
	background: transparent !important;
	box-shadow: none !important;
	font: inherit;
	font-weight: 700;
	color: #111111;
	-moz-appearance: textfield;
}

.escpc-currency-input input::-webkit-outer-spin-button,
.escpc-currency-input input::-webkit-inner-spin-button,
.escpc-table input::-webkit-outer-spin-button,
.escpc-table input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.escpc-currency-input:focus-within,
.escpc-cell-input:focus-within {
	box-shadow: inset 0 0 0 3px #0b66c3;
}

.escpc-note {
	min-height: 164px;
	padding: 12px 20px;
	background: #f3f6fa;
	color: #404040;
	font-size: 17px;
	text-align: center;
}

.escpc-note p {
	margin: 0 0 2px;
}

.escpc-note .escpc-note-gap {
	margin-top: 18px;
}

.escpc-table-wrap {
	width: 100%;
	overflow: auto;
	border-left: 1px solid var(--escpc-border);
	border-top: 1px solid var(--escpc-border);
	-webkit-overflow-scrolling: touch;
}

.escpc-table {
	width: 100%;
	min-width: 1180px;
	border-collapse: collapse;
	border-spacing: 0;
	table-layout: fixed;
	margin: 0;
	font: inherit;
}

.escpc-table th,
.escpc-table td {
	height: 34px;
	padding: 0;
	border-right: 1px solid var(--escpc-border);
	border-bottom: 1px solid var(--escpc-border);
	vertical-align: middle;
	text-align: center;
}

.escpc-table thead th {
	height: 75px;
	padding: 8px 7px;
	color: #ffffff;
	font-weight: 700;
	line-height: 1.15;
}

.escpc-head-number,
.escpc-head-width {
	background: #203864;
}

.escpc-head-height {
	background: #2b4c73;
}

.escpc-head-quantity {
	background: #365b82;
}

.escpc-head-item {
	background: #1f4e78;
}

.escpc-head-total {
	background: #2f5597;
}

.escpc-head-50 {
	background: #4472c4;
}

.escpc-head-75 {
	background: #5b9bd5;
}

.escpc-head-100 {
	background: #7ea6d8;
}

.escpc-table th:nth-child(1) { width: 8.5%; }
.escpc-table th:nth-child(2) { width: 10%; }
.escpc-table th:nth-child(3) { width: 10%; }
.escpc-table th:nth-child(4) { width: 11%; }
.escpc-table th:nth-child(5) { width: 11.5%; }
.escpc-table th:nth-child(6) { width: 11.5%; }
.escpc-table th:nth-child(7) { width: 12.5%; }
.escpc-table th:nth-child(8) { width: 12.5%; }
.escpc-table th:nth-child(9) { width: 12.5%; }

.escpc-cell-number {
	background: #f2f2f2;
	font-weight: 400;
}

.escpc-cell-width {
	background: #fffdf2;
}

.escpc-cell-height {
	background: #fff8e1;
}

.escpc-cell-quantity {
	background: #fff3cf;
}

.escpc-cell-item {
	background: #dceaf7;
}

.escpc-cell-total {
	background: #cfe3f4;
}

.escpc-cell-50 {
	background: #c2dbf0;
	font-weight: 700;
}

.escpc-cell-75 {
	background: #b4d2eb;
	font-weight: 700;
}

.escpc-cell-100 {
	background: #a7c9e7;
	font-weight: 700;
}

.escpc-cell-input input {
	width: 100%;
	height: 100%;
	min-height: 33px;
	padding: 4px 7px;
	border: 0 !important;
	border-radius: 0 !important;
	outline: 0;
	background: transparent !important;
	box-shadow: none !important;
	font: inherit;
	color: #111111;
	text-align: center;
	-moz-appearance: textfield;
}

.escpc-cell-output output {
	display: block;
	width: 100%;
	padding: 4px 7px;
	white-space: nowrap;
}

.escpc-noscript {
	margin: 12px 0 0;
	padding: 10px 14px;
	border: 1px solid #9b1c1c;
	background: #fff0f0;
	color: #721c24;
}

@media (max-width: 1050px) {
	.escpc-top-grid {
		grid-template-columns: repeat(2, minmax(260px, 1fr));
		gap: 18px;
	}

	.escpc-note {
		grid-column: 1 / -1;
	}
}

@media (max-width: 680px) {
	.escpc-calculator {
		font-size: 14px;
	}

	.escpc-title {
		font-size: 20px;
	}

	.escpc-instruction,
	.escpc-note {
		font-size: 15px;
	}

	.escpc-top-grid {
		grid-template-columns: 1fr;
		padding: 16px 0;
	}

	.escpc-note {
		grid-column: auto;
	}

	.escpc-panel-row {
		grid-template-columns: minmax(0, 1fr) minmax(125px, 0.8fr);
	}
}
