@use "~admin-stylesheets/colors";

.nab-plan {
	display: flex;
	flex-direction: column;
	height: auto !important;
	width: 100%;

	&__content {
		flex-grow: 1;
		padding: 1em;
	}

	&__title {
		margin: 0;
		margin-bottom: 0.6em;
	}

	&__site-id {
		float: right;
		color: colors.$nab-text;
		opacity: 0.7;
	}

	&__period {
		background: colors.$nab-background-white;
		border: 1px solid colors.$nab-border-light;
		border-radius: 2px;
		color: colors.$nab-text-dark-grey;
		font-size: 10px;
		font-weight: 400;
		margin-left: 4px;
		padding: 3px 5px;
		position: relative;
		text-decoration: none;
		text-shadow: none;
		top: -2px;
	}

	&__state {
		background: colors.$nab-background-dark-grey;
		border: 1px solid colors.$nab-border-light;
		border-radius: 2px;
		color: colors.$nab-background-red;
		font-size: 10px;
		font-weight: 400;
		margin-left: 4px;
		padding: 3px 5px;
		position: relative;
		text-decoration: none;
		text-shadow: none;
		top: -2px;
	}

	&__renewal {
		font-size: 1.1em;
		margin-bottom: 0.6em;

		&-amount {
			font-weight: 700;
		}

		&-date {
			border-bottom: 1px solid colors.$nab-background-black-translucent;
		}
	}

	&__actions {
		align-items: center;
		background: colors.$nab-background-white;
		border-top: 1px solid colors.$nab-border-lighter;
		box-sizing: border-box;
		display: flex;
		flex-direction: row;
		justify-content: flex-end;
		padding: 0.5em;
		text-align: right;

		&--separated {
			justify-content: space-between;

			> button {
				margin-left: 0 !important;
				padding: 6px;
			}
		}

		&-group {
			display: flex;
			flex-direction: row;
		}
	}

	&__action-container {
		align-items: baseline;
		display: flex;
	}

	&__action {
		box-sizing: border-box;
		margin-left: 0.5em !important;

		svg {
			display: none;
		}

		&--destructive {
			text-decoration: none !important;
		}

		&.is-primary:active:enabled,
		&.is-default {
			vertical-align: unset;
		}
	}
}
