@import "@automattic/color-studio/dist/color-variables";
@import "@automattic/typography/styles/variables";
@import "@wordpress/base-styles/breakpoints";

.subscription-manager__pending-list {
	margin: 0;

	.row {
		border-bottom: 1px solid var(--color-border-subtle);
		display: flex;
		align-items: center;
		flex-direction: row;
		padding-top: 20px;
		padding-bottom: 20px;

		* {
			flex: 1;
		}

		&.header {
			padding-bottom: $font-code;
			padding-top: 0;
		}

		.title-box {
			display: flex;
			align-items: center;
			flex: 1.83;
			min-width: 0;

			.site-icon {
				max-width: 40px;
			}

			.title-column {
				display: flex;
				flex-direction: column;
				min-width: 0;
				padding-left: 12px;

				.name {
					font-weight: 600;
					font-size: $font-code;
					line-height: 22px;
					color: $studio-gray-100;
					letter-spacing: -0.24px;
					text-overflow: ellipsis;
					white-space: nowrap;
					overflow: hidden;
					padding-right: 10px;

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

				.url {
					font-weight: 400;
					font-size: $font-body-extra-small;
					line-height: 18px;
					color: $studio-gray-40;
					text-overflow: ellipsis;
					white-space: nowrap;
					overflow: hidden;

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

		.title-box,
		.date {
			font-weight: 400;
			font-size: $font-body-small;
			line-height: 20px;
			letter-spacing: -0.15px;
			color: $studio-gray-60;
		}

		.actions {
			flex-basis: 36px;
			flex-grow: initial;

			.gridicon {
				fill: $studio-gray-50;
			}
		}

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

	@media (max-width: $break-small) {
		.date {
			display: none;
		}
	}
}
