.rmp-form {
	margin: 1rem 0;
}

.rmp-form p {
	margin-bottom: 0.75rem;
}

.rmp-form input,
.rmp-form select,
.rmp-form textarea,
.rmp-form button {
	max-width: 100%;
}

.rmp-order-actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.rmp-order-action-button {
	min-width: 96px;
	text-align: center;
}

.rmp-account {
	margin-top: 1rem;
}

.rmp-account-section-title {
	margin: 1rem 0 0.5rem;
}

.rmp-account-login-status,
.rmp-account-message,
.rmp-account-empty-state,
.rmp-account-billing-lines,
.rmp-account-billing-actions {
	margin: 0.5rem 0;
}

.rmp-account-billing-form {
	margin: 0.75rem 0 1rem;
}

.rmp-account-form-row,
.rmp-account-form-actions {
	margin: 0.5rem 0;
}

.rmp-account-form-row input,
.rmp-account-form-row select {
	max-width: 100%;
}

.rmp-account-orders-table {
	margin-top: 0.5rem;
}

.rmp-account-invoices {
	margin-top: 1rem;
}

.rmp-account-invoices-details summary {
	list-style: none;
	display: inline-block;
	cursor: pointer;
}

.rmp-account-invoices-details summary::-webkit-details-marker {
	display: none;
}

.rmp-account-invoices-panel {
	margin-top: 0.75rem;
}

.rmp-account a.button,
.rmp-account button.button {
	text-decoration: none !important;
	color: #fff !important;
	transition: box-shadow 0.15s ease;
}

.rmp-account a.button:hover,
.rmp-account a.button:focus,
.rmp-account button.button:hover,
.rmp-account button.button:focus {
	text-decoration: none !important;
	color: #fff !important;
	box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.2);
}

@media (max-width: 860px) {
	.rmp-account {
		overflow-x: hidden;
	}

	.rmp-account-orders-table {
		border: 0;
		width: 100%;
		margin-top: 0.75rem;
	}

	.rmp-account-orders-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		clip-path: inset(50%);
		border: 0;
	}

	.rmp-account-orders-table tbody,
	.rmp-account-orders-table tr,
	.rmp-account-orders-table td {
		display: block !important;
		width: 100% !important;
		box-sizing: border-box;
	}

	.rmp-account-orders-table tr {
		border: 1px solid rgba(0, 0, 0, 0.12);
		border-radius: 8px;
		padding: 0.45rem 0.75rem;
		margin-bottom: 0.8rem;
		background: #fff;
	}

	.rmp-account-orders-table td {
		border: 0 !important;
		padding: 0.32rem 0;
		word-break: break-word;
		overflow-wrap: anywhere;
	}

	.rmp-account-orders-table td::before {
		content: attr(data-label);
		display: block !important;
		font-weight: 600;
		font-size: 0.84rem;
		opacity: 0.8;
		margin-bottom: 0.18rem;
	}

	.rmp-account-orders-table td:last-child {
		padding-bottom: 0.2rem;
	}

	.rmp-account-orders-table .rmp-order-actions {
		display: grid !important;
		grid-template-columns: 1fr;
		gap: 0.4rem;
	}

	.rmp-account-orders-table .rmp-order-action-button,
	.rmp-account-orders-table .button {
		display: block !important;
		width: 100% !important;
		min-width: 0;
		text-align: center;
	}

	.rmp-account-invoices-details {
		display: block;
	}

	.rmp-account-invoices-details summary {
		display: block;
		width: fit-content;
		max-width: 100%;
	}

	.rmp-account-billing-actions .button,
	.rmp-account-form-actions .button {
		display: block;
		width: 100%;
		margin-bottom: 0.45rem;
		text-align: center;
	}
}
