windowcontrols:not(.rewaita-display) > button {
  padding: 2px;
}

windowcontrols:not(.rewaita-display) image:not(:hover) {
	background-color: transparent;
}

windowcontrols:not(.rewaita-display) image:hover {
	background-color: @window_fg_color;
	color: @window_bg_color;
}

windowcontrols:not(.rewaita-display) > button.minimize > image {
	background-image: -gtk-icontheme("adw-expander-arrow-symbolic");
	transform: rotate(180deg);
	-gtk-icon-transform: scale(0);
  background-size: 16px;
	background-position: center;
	background-repeat: no-repeat;
}

windowcontrols:not(.rewaita-display) > button.maximize > image {
	background-image: -gtk-icontheme("adw-expander-arrow-symbolic");
	-gtk-icon-transform: scale(0);
  background-size: 16px;
  background-position: center;
  background-repeat: no-repeat;
}

windowcontrols:not(.rewaita-display) > button.close > image:hover {
	background-color: @red_1;
	color: @window_bg_color;
}

windowcontrols:not(.rewaita-display) > button.close > image {
	transform: scale(1.1);
}

window.maximized > * windowcontrols:not(.rewaita-display) > button.maximize:hover {
  background-color: @window_fg_color;
  color: @window_bg_color;
}

window.maximized > * windowcontrols:not(.rewaita-display) > button.maximize {
	border-radius: 100%;
  	margin: 3px 0;
}

window.maximized > * windowcontrols:not(.rewaita-display) > button.maximize > image:hover {
  background-color: transparent;
}

window.maximized > * windowcontrols:not(.rewaita-display) > button.maximize:hover > image {
    box-shadow: inset 0 0 0 3px @window_bg_color;
}

window.maximized > * windowcontrols:not(.rewaita-display) > button.maximize > image {
    background-image: none;
    box-shadow: inset 0 0 0 3px @window_fg_color;
    border-radius: 1px;
    color: @window_fg_color;
    transform: rotate(45deg) scale(0.5);
}
