.responsive-block-editor-addons-button-preset-wrap {
	margin-top: -16px;
}

.responsive-block-editor-addons-button-preset-header {
	display: flex;
	justify-content: flex-end;
	align-items: baseline;
	margin-bottom: 12px;

	.components-base-control__label {
		margin-bottom: 0;
		font-weight: 600;
	}

	button.components-button.is-small {
		&:focus {
			box-shadow: none;
		}
	}

	span.dashicon.dashicons-image-rotate {
		color: #007cba;

		&.image-rotate-reset {
			color: #ccc;
			cursor: auto;
		}

		&::before {
			font-size: 10px;
		}
	}
}

.responsive-block-editor-addons-button-preset-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.responsive-block-editor-addons-button-preset {
	button {
		width: 100%;
		padding: 0;
		border: 1px solid #ddd;
		border-radius: 4px;
		background: #fff;
		cursor: pointer;
		transition: all 0.2s ease;
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 60px;
		overflow: hidden;

		&:hover {
			border-color: #007cba;
			box-shadow: 0 0 0 1px #007cba;
		}

		svg {
			width: 100%;
			height: 100%;
			display: block;
		}

		&.selectedPresetBorder {
			border-color: #007cba;
			box-shadow: 0 0 0 2px #007cba;
			background: #f0f8ff;

			// Override SVG colors when selected - using higher specificity
			svg rect:first-child {
				fill: #f0f8ff; // outer background to light blue
			}
			
			svg rect:nth-child(2) {
				fill: #007cba; // button background to blue
			}
			
			svg path {
				fill: white; // text to white
			}
		}

		&.disabledPresetBorder {
			border-color: #ddd;
		}
	}
}

