.forberries-counters {
	width: 100%;
	max-width: 100%;
}

.forberries-counters__list {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 25px;
	margin: 0;
	padding: 25px 0 0 0;
	list-style: none;
}

.forberries-counters__tile {
	display: flex;
	flex-direction: column;
	flex: 1 1 calc((100% - 100px) / 5);
	min-width: min(100%, calc((100% - 100px) / 5));
	box-sizing: border-box;
	padding: 25px;
	border: 1px solid #1a264133;
	border-radius: 22px;
	background: transparent;
	box-shadow: 0px 4px 70px 0px #A0B71800;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.forberries-counters__tile:hover {
	transform: translateY(-10px);
	box-shadow: 0px 4px 70px 0px #A0B71820;
	border: 1px solid #A0B718;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}
	
.forberries-counters__value {
	margin: 0;
	padding: 0;
	font-size: 48px;
	font-weight: 700;
	line-height: 1.15;
	color: #a0b718 !important;
	white-space: nowrap;
}

.forberries-counters__number,
.forberries-counters__suffix {
	font: inherit;
	color: inherit;
}

.forberries-counters__label {
	margin: 10px 0 0;
	padding: 0;
	color: #1a2641;
	line-height: 1.5;
}

@media screen and (max-width: 1100px) {
	.forberries-counters__tile {
		flex-basis: calc((100% - 75px) / 4);
		min-width: min(100%, calc((100% - 75px) / 4));
	}
}

@media screen and (max-width: 900px) {
	.forberries-counters__tile {
		flex-basis: calc((100% - 25px) / 2);
		min-width: min(100%, calc((100% - 25px) / 2));
	}
}

@media screen and (max-width: 600px) {
	.forberries-counters__tile {
		min-width: 100%;
		align-items: center;
		text-align: center;
	}

	.forberries-counters__value {
		font-size: 40px;
	}
}

/* Edytor */
.editor-styles-wrapper .forberries-counters-editor {
	width: 100%;
}

.editor-styles-wrapper .forberries-counters__editor-list {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 25px;
}

.editor-styles-wrapper .forberries-counters__editor-item {
	position: relative;
	display: flex;
	flex-direction: column;
	flex: 1 1 calc((100% - 100px) / 5);
	min-width: min(100%, calc((100% - 100px) / 5));
	box-sizing: border-box;
	padding: 25px;
	border: 1px solid #1a264133;
	border-radius: 22px;
	background: transparent;
	cursor: pointer;
}

.editor-styles-wrapper .forberries-counters__editor-item.is-selected {
	outline: 2px solid #a0b718;
	outline-offset: 3px;
}

.editor-styles-wrapper .forberries-counters__editor-toolbar {
	position: absolute;
	top: -42px;
	left: 50%;
	z-index: 5;
	transform: translateX(-50%);
	background: #fff;
	border: 1px solid #1e1e1e;
	border-radius: 2px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.editor-styles-wrapper .forberries-counters__editor-toolbar .components-toolbar-group {
	border: 0;
}

.editor-styles-wrapper .forberries-counters__value-row {
	display: flex;
	align-items: baseline;
	flex-wrap: nowrap;
	gap: 0;
	min-width: 0;
}

.editor-styles-wrapper .forberries-counters__number-input,
.editor-styles-wrapper .forberries-counters__suffix-input {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	font-size: 48px;
	font-weight: 700;
	line-height: 1.15;
	color: #a0b718;
	outline: none;
}

.editor-styles-wrapper .forberries-counters__number-input {
	width: 4.5ch;
	min-width: 2ch;
	max-width: 8ch;
	appearance: textfield;
	-moz-appearance: textfield;
}

.editor-styles-wrapper .forberries-counters__number-input::-webkit-outer-spin-button,
.editor-styles-wrapper .forberries-counters__number-input::-webkit-inner-spin-button {
	margin: 0;
	appearance: none;
}

.editor-styles-wrapper .forberries-counters__suffix-input {
	width: 3ch;
	min-width: 1.5ch;
	max-width: 6ch;
}

.editor-styles-wrapper .forberries-counters__number-input:focus,
.editor-styles-wrapper .forberries-counters__suffix-input:focus {
	outline: none;
	box-shadow: none;
}

.editor-styles-wrapper .forberries-counters__label.rich-text {
	margin: 10px 0 0;
	min-height: 1.2em;
	color: #1a2641;
}

.editor-styles-wrapper .forberries-counters__add-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 0 0 120px;
	min-height: 140px;
	padding: 15px;
	border: 2px dashed #1a264133;
	border-radius: 22px;
	background: transparent;
	color: #1a2641;
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.editor-styles-wrapper .forberries-counters__add-tile:hover,
.editor-styles-wrapper .forberries-counters__add-tile:focus {
	border-color: #a0b718;
	color: #a0b718;
	outline: none;
}

.editor-styles-wrapper .forberries-counters__add-tile-plus {
	font-size: 32px;
	line-height: 1;
	font-weight: 400;
}

.editor-styles-wrapper .forberries-counters__empty-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 24px;
	border: 1px dashed #1a264133;
	border-radius: 22px;
}

.editor-styles-wrapper .forberries-counters__empty {
	margin: 0;
	text-align: center;
	color: #1a2641;
}

.editor-styles-wrapper .forberries-counters__sidebar-hint {
	margin: 0;
	font-size: 12px;
	line-height: 1.4;
	color: #757575;
}
