.add-key-modal {
	[data-slot='dialog-description'] {
		padding: 0;
	}

	&__form {
		display: flex;
		flex-direction: column;
		gap: var(--spacing-8);
		padding: var(--padding-4);
	}

	&__field {
		display: flex;
		flex-direction: column;
		gap: var(--spacing-4);
	}

	&__label {
		font-size: var(--font-size-xs);
		font-weight: var(--font-weight-normal);
		color: var(--foreground);
		line-height: var(--line-height-20);
		letter-spacing: -0.07px;
	}

	&__input {
		height: 32px;
		background: var(--l2-background);
		border-color: var(--l1-border);
		color: var(--l1-foreground);
		box-shadow: none;

		&::placeholder {
			color: var(--l3-foreground);
		}
	}

	&__expiry-toggle {
		width: 60%;
		display: flex;
		border: 1px solid var(--l1-border);
		border-radius: 2px;
		overflow: hidden;
		padding: 0;
		gap: 0;

		[data-slot='toggle-group'] {
			width: 100%;
			display: flex;
		}

		&-btn {
			flex: 1;
			height: 32px;
			border-radius: 0;
			font-size: var(--label-small-400-font-size);
			font-weight: var(--label-small-400-font-weight);
			line-height: var(--label-small-400-line-height);
			justify-content: center;
			background: transparent;
			border: none;
			border-right: 1px solid var(--l1-border);
			color: var(--foreground);

			&:last-child {
				border-right: none;
			}

			&[data-state='on'] {
				background: var(--l2-background);
				color: var(--l1-foreground);
			}
		}
	}

	&__datepicker {
		width: 100%;
		height: 32px;

		.ant-picker {
			background: var(--l2-background);
			border-color: var(--l1-border);
			border-radius: 2px;
			width: 100%;
			height: 32px;

			input {
				color: var(--l1-foreground);
				font-size: var(--font-size-xs);
			}

			.ant-picker-suffix {
				color: var(--foreground);
			}
		}

		.add-key-modal-datepicker-popup {
			border-radius: 4px;
			border: 1px solid var(--secondary);
			background: var(--popover);
			box-shadow: 0px -4px 16px 2px rgba(0, 0, 0, 0.2);
		}
	}

	&__key-display {
		display: flex;
		align-items: center;
		height: 32px;
		background: var(--l2-background);
		border: 1px solid var(--l1-border);
		border-radius: 2px;
		overflow: hidden;
	}

	&__key-text {
		flex: 1;
		min-width: 0;
		padding: 0 var(--padding-2);
		font-size: var(--font-size-sm);
		color: var(--l1-foreground);
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		font-family: monospace;
	}

	&__copy-btn {
		border-left: 1px solid var(--l1-border);
		min-width: 40px;
	}

	&__expiry-meta {
		display: flex;
		flex-direction: column;
		gap: var(--spacing-2);
	}

	&__callout-wrapper {
		display: flex;
	}

	&__expiry-label {
		font-size: var(--font-size-xs);
		font-weight: var(--font-weight-medium);
		color: var(--foreground);
		letter-spacing: 0.48px;
		text-transform: uppercase;
		margin-bottom: var(--spacing-4);
	}

	&__footer {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		padding: var(--padding-4);
		border-top: 1px solid var(--secondary);
	}

	&__footer-right {
		display: flex;
		align-items: center;
		gap: var(--spacing-4);
	}

	&__learn-more {
		display: inline-flex;
		align-items: center;
		gap: var(--spacing-1);
		color: var(--primary);
		font-size: var(--font-size-sm);
		text-decoration: none;

		&:hover {
			text-decoration: underline;
		}
	}
}
