.scc-calculator {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: 100%;
	max-width: var(--scc-max-width, 1180px);
	margin: 24px auto;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #101b2b;
	font-family: inherit;
	overflow: visible;
}

.scc-calculator.has-open-popover {
	z-index: 2147483000;
}

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

.scc-header {
	margin: 0;
	padding: 0 0 18px;
	border-bottom: 0;
	background: transparent;
}

.scc-header h2 {
	margin: 0;
	font-size: 26px;
	line-height: 1.25;
	letter-spacing: 0;
	color: #101b2b;
}

.scc-shell {
	display: grid;
	grid-template-columns: minmax(0, var(--scc-main-width, 66fr)) minmax(330px, var(--scc-summary-width, 34fr));
	gap: 24px;
	align-items: start;
}

.scc-summary-left .scc-main {
	order: 2;
}

.scc-summary-left .scc-sidebar {
	order: 1;
}

.scc-summary-bottom .scc-shell {
	display: block;
}

.scc-summary-bottom .scc-sidebar {
	position: static;
	margin-top: 28px;
}

.scc-main {
	min-width: 0;
	display: grid;
	gap: 16px;
}

.scc-sidebar {
	position: sticky;
	z-index: 2;
	top: 24px;
	min-width: 0;
	padding: 22px;
	border: 1px solid #e3e7ed;
	border-radius: 8px;
	background: #ffffff;
}

.scc-summary-static .scc-sidebar {
	position: static;
}

.scc-fields {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 20px 20px;
	align-items: flex-start;
}

.scc-form-section {
	position: relative;
	z-index: 1;
	padding: 24px 26px 28px;
	border: 1px solid #e3e7ed;
	border-radius: 8px;
	background: #ffffff;
	overflow: visible;
}

.scc-form-section.has-open-select {
	z-index: 10000;
}

.scc-form-section-title {
	margin: 0 0 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid #edf0f4;
	color: #101b2b;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0;
}

.scc-field {
	grid-column: span var(--scc-field-span, 12);
	min-width: 0;
}

.scc-field-select,
.scc-field-text,
.scc-field-date {
	grid-column: span 6;
}

.scc-field-textarea,
.scc-field-file {
	grid-column: span 12;
}

.scc-label {
	display: block;
	margin: 0 0 7px;
	font-weight: 500;
	font-size: 14px;
	line-height: 1.35;
	color: #101b2b;
}

.scc-required {
	margin-left: 3px;
	color: #b3261e;
}

.scc-description,
.scc-help {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.45;
	color: #727985;
}

.scc-control {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 10px 13px;
	border: 1px solid #e1e5ea;
	border-radius: 6px;
	background: #fbfcfd;
	color: #101b2b;
	font: inherit;
	font-size: 14px;
	line-height: 1.4;
	box-shadow: inset 0 1px 1px rgba(16, 27, 43, 0.025);
}

.scc-control:focus {
	border-color: var(--scc-accent, #16a9ee);
	outline: 3px solid color-mix(in srgb, var(--scc-accent, #16a9ee) 16%, transparent);
	background: #ffffff;
}

.scc-date-control {
	position: relative;
}

.scc-date-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	text-align: left;
	cursor: pointer;
	padding-right: 46px;
}

.scc-date-icon {
	position: absolute;
	top: 50%;
	right: 12px;
	width: 22px;
	height: 22px;
	transform: translateY(-50%);
	border: 1px solid #cfd6df;
	border-radius: 5px;
	background:
		linear-gradient(#dfe5ec 0 0) 4px 7px / 14px 1px no-repeat,
		linear-gradient(#cfd6df 0 0) 6px 3px / 2px 4px no-repeat,
		linear-gradient(#cfd6df 0 0) 14px 3px / 2px 4px no-repeat,
		#ffffff;
	pointer-events: none;
}

.scc-date-icon::after {
	content: "";
	position: absolute;
	right: 5px;
	bottom: 5px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--scc-accent, #16a9ee);
}

.scc-date-control.is-open .scc-date-toggle,
.scc-date-toggle:focus {
	border-color: var(--scc-accent, #16a9ee);
	outline: 0;
	background: #ffffff;
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--scc-accent, #16a9ee) 22%, transparent);
}

.scc-date-control.is-invalid .scc-date-toggle {
	border-color: #b3261e;
	box-shadow: 0 0 0 1px rgba(179, 38, 30, 0.18);
}

.scc-date-control.is-open,
.scc-date-control .scc-date-popover {
	z-index: 10050;
}

.scc-date-popover {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: min(330px, 92vw);
	padding: 14px;
	border: 1px solid #d9dee7;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 18px 34px rgba(16, 27, 43, 0.14);
}

.scc-date-popover.is-portal {
	position: absolute;
	right: auto;
	z-index: 2147483001;
}

.scc-date-popover[hidden] {
	display: none;
}

.scc-date-head {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr) 36px;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.scc-date-head strong {
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	color: #101b2b;
}

.scc-date-prev,
.scc-date-next,
.scc-date-day,
.scc-date-clear,
.scc-date-today {
	border: 0;
	background: transparent;
	color: #101b2b;
	font: inherit;
	cursor: pointer;
}

.scc-date-prev,
.scc-date-next {
	min-height: 34px;
	border-radius: 6px;
	background: #f4f7fb;
	font-size: 20px;
	line-height: 1;
}

.scc-date-prev:hover,
.scc-date-next:hover,
.scc-date-prev:focus,
.scc-date-next:focus {
	outline: 0;
	background: #eaf1f8;
}

.scc-date-weekdays,
.scc-date-days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}

.scc-date-weekdays {
	margin-bottom: 5px;
	color: #727985;
	font-size: 12px;
	font-weight: 600;
	text-align: center;
}

.scc-date-day {
	min-height: 34px;
	border-radius: 6px;
	font-size: 13px;
	text-align: center;
}

.scc-date-day:hover,
.scc-date-day:focus {
	outline: 0;
	background: #eef6fb;
}

.scc-date-day.is-muted {
	color: #a0a7b2;
}

.scc-date-day.is-today {
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--scc-accent, #16a9ee) 45%, #cfd6df);
}

.scc-date-day.is-selected {
	background: var(--scc-accent, #16a9ee);
	color: #ffffff;
	font-weight: 600;
}

.scc-date-actions {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #edf0f4;
}

.scc-date-clear,
.scc-date-today {
	color: var(--scc-accent, #16a9ee);
	font-size: 13px;
	font-weight: 600;
}

.scc-select {
	position: relative;
	width: 100%;
}

.scc-select.is-open {
	z-index: 1000;
}

.scc-select-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	min-height: 48px;
	padding: 10px 13px;
	border: 1px solid #e1e5ea;
	border-radius: 6px;
	background: #fbfcfd;
	color: #101b2b;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	text-align: left;
	box-shadow: inset 0 1px 1px rgba(16, 27, 43, 0.025);
	cursor: pointer;
}

.scc-select-toggle:hover {
	background: #ffffff;
}

.scc-select.is-open .scc-select-toggle,
.scc-select-toggle:focus {
	border-color: var(--scc-accent, #16a9ee);
	outline: 0;
	background: #ffffff;
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--scc-accent, #16a9ee) 22%, transparent);
}

.scc-select.is-invalid .scc-select-toggle {
	border-color: #b3261e;
	box-shadow: 0 0 0 1px rgba(179, 38, 30, 0.18);
}

.scc-select-label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.scc-select-arrow {
	display: block;
	flex: 0 0 auto;
	width: 0;
	height: 0;
	border-right: 5px solid transparent;
	border-left: 5px solid transparent;
	border-top: 7px solid #101b2b;
}

.scc-select.is-open .scc-select-arrow {
	border-top: 0;
	border-bottom: 7px solid #101b2b;
}

.scc-select-menu {
	position: absolute;
	z-index: 40;
	top: calc(100% + 8px);
	right: 0;
	left: 0;
	display: none;
	max-height: 330px;
	overflow-y: auto;
	border: 1px solid #e1e5eb;
	border-radius: 0;
	background: #ffffff;
	box-shadow: 0 18px 34px rgba(16, 27, 43, 0.12);
}

.scc-select.is-open .scc-select-menu {
	display: block;
}

.scc-select-option {
	display: block;
	width: 100%;
	padding: 12px 14px;
	border: 0;
	border-bottom: 1px solid #e9edf2;
	background: #ffffff;
	color: #101b2b;
	font: inherit;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
}

.scc-select-option:hover,
.scc-select-option:focus {
	outline: 0;
	background: #f8fafc;
}

.scc-select-option-label {
	display: block;
	font-size: 14px;
	font-weight: 500;
}

.scc-select-option-price {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	font-weight: 400;
	color: #101b2b;
}

.scc-select-menu::-webkit-scrollbar {
	width: 10px;
}

.scc-select-menu::-webkit-scrollbar-track {
	background: #f1f3f6;
}

.scc-select-menu::-webkit-scrollbar-thumb {
	border: 2px solid #f1f3f6;
	border-radius: 999px;
	background: #aeb6c2;
}

textarea.scc-control {
	min-height: 64px;
	resize: vertical;
}

.scc-field-file input[type="file"] {
	min-height: 48px;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: #101b2b;
}

.scc-field-file input[type="file"]::file-selector-button {
	min-height: 48px;
	width: 100%;
	margin: 0;
	border: 0;
	border-radius: 6px;
	background: var(--scc-button, #12a8ee);
	color: #ffffff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.scc-field-file input[type="file"]::file-selector-button:hover {
	filter: brightness(0.93);
}

.scc-total-summary {
	margin: 0 0 18px;
}

.scc-summary-heading {
	margin-bottom: 16px;
}

.scc-summary-heading h3 {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
	color: #101b2b;
}

.scc-summary-table-head {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 16px;
	margin-bottom: 12px;
	padding: 8px 11px;
	border-radius: 4px;
	background: #e5e7eb;
	color: #101b2b;
	font-size: 13px;
	font-weight: 600;
}

.scc-summary-line {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 14px;
	padding: 11px 0;
	border-bottom: 1px dashed #d9dde4;
	color: #101b2b;
	font-size: 14px;
	line-height: 1.4;
}

.scc-summary-name,
.scc-summary-value {
	display: block;
}

.scc-summary-value {
	margin-top: 5px;
	color: #727985;
	font-size: 13px;
}

.scc-summary-price {
	align-self: start;
	color: #101b2b;
	white-space: nowrap;
}

.scc-total-line {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 14px;
	margin: 4px 0 18px;
	padding: 12px 0 14px;
	border-bottom: 1px solid #e2e6ec;
	color: #101b2b;
	font-size: 17px;
	line-height: 1.3;
}

.scc-sidebar-email {
	margin-bottom: 16px;
}

.scc-card-element {
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #e1e5ea;
	border-radius: 6px;
	background: #fbfcfd;
}

.scc-payment {
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.scc-payment.is-disabled .scc-card-element {
	display: none;
}

.scc-total {
	display: block;
	font-size: 21px;
	line-height: 1.25;
	letter-spacing: 0;
	color: #101b2b;
	white-space: nowrap;
}

.scc-submit {
	width: 100%;
	min-height: 50px;
	padding: 12px 18px;
	border: 0;
	border-radius: 6px;
	background: var(--scc-button, #12a8ee);
	color: #ffffff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.scc-submit:hover,
.scc-submit:focus {
	filter: brightness(0.93);
}

.scc-submit[disabled] {
	cursor: wait;
	opacity: 0.7;
}

.scc-message {
	margin-top: 14px;
	font-size: 14px;
	line-height: 1.45;
}

.scc-message.is-error {
	color: #b3261e;
}

.scc-message.is-success {
	color: #166534;
}

.scc-notice {
	padding: 14px 16px;
	border: 1px solid #d9dee7;
	border-radius: 6px;
	background: #f7f9fc;
	color: #172033;
}

@media (max-width: 720px) {
	.scc-calculator {
		margin: 18px auto;
	}

	.scc-header {
		padding: 18px;
	}

	.scc-shell {
		display: block;
	}

	.scc-main,
	.scc-sidebar,
	.scc-form-section {
		padding: 18px;
	}

	.scc-sidebar {
		position: static;
		margin-top: 18px;
	}

	.scc-field,
	.scc-field-select,
	.scc-field-text,
	.scc-field-date,
	.scc-field-textarea,
	.scc-field-file {
		grid-column: span 12;
		min-width: 100%;
	}
}

.scc-coupon-box {
	margin: 18px 0 12px;
	padding-top: 16px;
	border-top: 1px solid #e2e6ec;
}

.scc-coupon-message {
	margin-top: 7px;
	min-height: 18px;
	font-size: 13px;
	line-height: 1.4;
	color: #727985;
}

.scc-coupon-message.is-success {
	color: #166534;
}

.scc-coupon-message.is-error {
	color: #b3261e;
}

@media (min-width: 721px) and (max-width: 1120px) {
	.scc-shell {
		grid-template-columns: minmax(0, 1fr) 300px;
	}

	.scc-field-select,
	.scc-field-text,
	.scc-field-date {
		grid-column: span 12;
	}
}
