/**
 * GF Opciones Personalizadas
 *
 * Los temas y el propio Gravity Forms aplican estilos muy agresivos a
 * button e input, así que aquí se sube la especificidad y se usa !important
 * en las pocas propiedades que si no se pierden (el botón de quitar acababa
 * pintado como un bloque azul de ancho completo).
 */

/* --- Opciones añadidas, alineadas con las casillas originales --- */

.gform_wrapper .gfop-item,
.gfop .gfop-item {
	display: flex !important;
	align-items: center;
	gap: 8px;
	width: 100%;
}

.gform_wrapper .gfop-item input.gfop-check,
.gfop .gfop-item input.gfop-check {
	margin: 0 8px 0 0 !important;
	flex: 0 0 auto;
}

.gform_wrapper .gfop-item > label,
.gfop .gfop-item > label {
	flex: 1 1 auto;
	margin: 0 !important;
	padding-left: 4px;
}

.gform_wrapper .gfop-remove,
.gfop .gfop-remove {
	flex: 0 0 auto;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 22px !important;
	min-width: 22px !important;
	height: 22px;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 1px solid currentColor !important;
	border-radius: 50% !important;
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	color: inherit !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	text-transform: none !important;
	opacity: 0.45;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.gform_wrapper .gfop-remove:hover,
.gform_wrapper .gfop-remove:focus-visible,
.gfop .gfop-remove:hover,
.gfop .gfop-remove:focus-visible {
	opacity: 1;
	background: none !important;
	color: inherit !important;
}

/* --- Cuadro para añadir --- */

.gfop__adder[hidden] {
	display: none !important;
}

.gform_wrapper .gfop__adder,
.gfop .gfop__adder {
	display: block;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid rgba(127, 127, 127, 0.25);
}

.gform_wrapper .gfop__row,
.gfop .gfop__row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.gform_wrapper .gfop__input,
.gfop .gfop__input {
	flex: 1 1 200px;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
}

.gform_wrapper .gfop__add,
.gfop .gfop__add {
	flex: 0 0 auto;
	width: auto !important;
	margin: 0 !important;
	padding: 8px 18px !important;
	cursor: pointer;
}

.gform_wrapper .gfop__input[disabled],
.gform_wrapper .gfop__add[disabled],
.gfop .gfop__input[disabled],
.gfop .gfop__add[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

.gfop__message:empty {
	display: none;
}

.gform_wrapper .gfop__message,
.gfop .gfop__message {
	margin-top: 8px;
	font-size: 0.875em;
	line-height: 1.4;
	opacity: 0.85;
}

@media (max-width: 560px) {
	.gform_wrapper .gfop__row,
	.gfop .gfop__row {
		flex-direction: column;
		align-items: stretch;
	}

	.gform_wrapper .gfop__add,
	.gfop .gfop__add {
		width: 100% !important;
	}
}
