.wmgc-box {
	container-type: inline-size;
	max-width: 756px;
	margin: 24px 0;
	color: #404040;
	font-size: 16px;
	line-height: 24px;
}

.wmgc-box__title {
	margin: 0 0 12px;
	font-family: "Open Sans", sans-serif;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.3;
	color: #141827;
}

.wmgc-validity {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin: 0 0 24px;
	font-size: 16px;
	color: #404040;
}

.wmgc-icon {
	flex: 0 0 auto;
	margin-top: 4px;
}

.wmgc-form fieldset {
	margin: 0 0 24px;
	padding: 0;
	border: 0;
	min-width: 0;
}

.wmgc-amounts__legend {
	margin: 0 0 12px;
	padding: 0;
	font-size: 18px;
	font-weight: 700;
	color: #404040;
}

.wmgc-amounts__grid {
	display: grid;
	gap: 12px;
}

.wmgc-amounts__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wmgc-amounts__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wmgc-amounts__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wmgc-amounts__grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.wmgc-amounts__grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.wmgc-tile {
	position: relative;
	display: block;
	margin: 0;
	cursor: pointer;
}

.wmgc-tile__input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	overflow: hidden;
}

.wmgc-tile__box {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 96px;
	min-height: 56px;
	padding: 12px 16px;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid #cccccc;
	border-radius: 10px;
	color: #141827;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.wmgc-tile:hover .wmgc-tile__box {
	border-color: #100e3c;
}

.wmgc-tile__check {
	display: none;
	position: absolute;
	top: 6px;
	right: 6px;
}

.wmgc-tile__input:checked + .wmgc-tile__box {
	background: #fff8d6;
	border: 2px solid #100e3c;
	padding: 11px 15px;
}

.wmgc-tile__input:checked + .wmgc-tile__box .wmgc-tile__check {
	display: block;
}

.wmgc-tile__input:focus-visible + .wmgc-tile__box {
	outline: 3px solid #4169e1;
	outline-offset: 2px;
}

.wmgc-amounts--error .wmgc-tile__input:not(:checked) + .wmgc-tile__box {
	border-color: #b32d2e;
}

.wmgc-section-title {
	margin: 0 0 16px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	color: #141827;
}

.wmgc-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 0 20px;
}

.wmgc-field {
	flex: 1 1 100%;
	margin: 0 0 16px;
	min-width: 0;
}

.wmgc-field--half {
	flex: 1 1 calc(50% - 10px);
}

.wmgc-field__label {
	display: block;
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 400;
	color: #404040;
}

.wmgc-field__input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 5px 15px;
	border: 1px solid #cccccc;
	border-radius: 3px;
	background: #fff;
	color: #404040;
	font-size: 16px;
	line-height: 24px;
}

input.wmgc-field__input {
	height: 40px;
}

textarea.wmgc-field__input {
	min-height: 112px;
	resize: vertical;
}

.wmgc-field__input:focus-visible {
	outline: 3px solid #4169e1;
	outline-offset: 2px;
}

.wmgc-field__input[aria-invalid="true"] {
	border-color: #b32d2e;
}

.wmgc-help,
.wmgc-counter,
.wmgc-note {
	margin: 4px 0 0;
	font-size: 14px;
	line-height: 20px;
	color: #595959;
}

.wmgc-counter--over {
	color: #b32d2e;
}

.wmgc-note {
	margin: 0 0 16px;
}

.wmgc-error,
.wmgc-server-error {
	display: flex;
	gap: 6px;
	align-items: flex-start;
	margin: 6px 0 0;
	font-size: 14px;
	line-height: 20px;
	color: #b32d2e;
}

.wmgc-error .wmgc-icon,
.wmgc-server-error .wmgc-icon {
	margin-top: 2px;
}

.wmgc-server-error {
	margin: 0 0 16px;
}

.wmgc-error[hidden],
.wmgc-server-error[hidden] {
	display: none;
}

.wmgc-submit {
	display: inline-block;
	height: 54px;
	padding: 15px 40px;
	border: 0;
	border-radius: 28px;
	background: #f7ce19;
	color: #000;
	font-size: 18px;
	font-weight: 700;
	line-height: 24px;
	cursor: pointer;
}

.wmgc-submit:focus-visible {
	outline: 3px solid #4169e1;
	outline-offset: 2px;
}

.wmgc-submit:disabled {
	opacity: 0.7;
	cursor: default;
}

@media (max-width: 767px) {
	.wmgc-amounts__grid {
		gap: 8px;
	}

	.wmgc-field--half {
		flex-basis: 100%;
	}
}

@container (max-width: 635px) {
	.wmgc-amounts__grid--5,
	.wmgc-amounts__grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@container (max-width: 419px) {
	.wmgc-amounts__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container (max-width: 311px) {
	.wmgc-amounts__grid--3,
	.wmgc-amounts__grid--5,
	.wmgc-amounts__grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
