.payment-method__list-item {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 24px;

	&:not( :last-child ) {
		box-shadow: inset 0 -1px 0 #e8eaeb;
	}
}

.payment-method {
	display: flex;
	background: #fff;
	justify-content: space-between;
	align-items: center;

	@include breakpoint( '>660px' ) {
		flex-wrap: nowrap;
	}

	&__text {
		flex: 1 1 100%;
		order: 1;
		display: flex;
		justify-content: space-between;
		flex-direction: column;

		@include breakpoint( '>660px' ) {
			flex-wrap: nowrap;
			flex-direction: row;
			align-items: center;
			flex: 1 1 auto;
			order: 3;
		}
	}

	&__checkbox {
		display: flex;
		align-items: center;
		justify-content: center;

		.components-base-control__field {
			margin: 0 4px 0 0;
		}

		.components-checkbox-control__label {
			display: none;
		}

		input[type='checkbox'] {
			&:disabled {
				cursor: not-allowed;
			}
			&:checked:disabled {
				opacity: 0.3;
			}
		}

		@include breakpoint( '<660px' ) {
			align-self: flex-start;
			margin-top: 5px;
		}
	}

	&__text-container {
		display: flex;
		flex: 1;

		@include breakpoint( '<660px' ) {
			flex-wrap: wrap;
		}
	}

	&__label {
		font-size: 14px;
		font-weight: 600;
		line-height: 20px;
		color: $gray-900;
		margin-bottom: 4px;
	}

	&__label-desktop {
		display: block;

		@include breakpoint( '<660px' ) {
			display: none;
		}
	}

	&__label-mobile {
		display: none;

		@include breakpoint( '<660px' ) {
			display: block;
			align-self: center;
			font-size: 16px;
		}
	}

	&__required-label {
		font-size: 12px;
		font-weight: normal;
		color: $gray-700;
		margin-left: $gap-smaller;
	}

	&__description {
		color: $studio-gray-50;
		font-size: 13px;
		line-height: 16px;
		margin-bottom: 10px;

		@include breakpoint( '>660px' ) {
			margin-bottom: 0;
		}
	}

	&__actions {
		align-items: center;
		display: flex;
		justify-content: center;
		order: 3;

		@include breakpoint( '>660px' ) {
			order: 4;
		}
	}

	&__action {
		&.delete {
			margin-right: 25px;

			svg {
				fill: #a2aab2;
			}
		}
	}

	&__icon {
		flex: 0 0 63.69px;
		margin: 1px 17px 1px 1px; // 1px to accommodate for box-shadow
		align-self: center;

		@include breakpoint( '>660px' ) {
			display: flex;
			order: 2;
		}

		@include breakpoint( '<660px' ) {
			margin: 0 10px 5px 0;
			flex: 0;
			height: auto;

			img {
				height: 30px;
			}
		}
	}

	&__fees {
		display: flex;
		white-space: nowrap;

		@include breakpoint( '>660px' ) {
			justify-content: flex-end;
			margin-left: 16px;
			flex-shrink: 0;
		}
	}

	.chip {
		margin-left: $gap-smaller;
		padding: 2px $gap-smaller;

		@include breakpoint( '<660px' ) {
			margin-left: 2;
		}
	}

	&__supported-cards {
		margin-top: 16px;

		@include breakpoint( '<660px' ) {
			margin-top: 10px;
			margin-bottom: 10px;
		}

		.payment-methods--logos {
			// Target the inner div that contains all the images
			> div {
				display: flex;
				flex-wrap: wrap;
				align-items: center;
				gap: 8px;

				img {
					width: 32px;
					height: 20px;
					object-fit: contain;
					margin-right: 0;
				}
			}
		}
	}
}
