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

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

	& .sofort__notice {
		margin-top: 20px;
	}
}

.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;
		}

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

		@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: 14px;

		@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;
		}
	}

	&.has-icon-border &__icon {
		box-shadow: 0 0 0 1px #ddd;
	}

	&.overlay {
		position: relative;

		&::after {
			content: '';
			position: absolute;
			// adds some spacing for the borders, so that they're not part of the opacity
			top: 1px;
			bottom: 1px;
			// ensures that the info icon isn't part of the opacity
			left: 55px;
			right: 0;
			background: #fff;
			opacity: 0.5;
			pointer-events: none;
		}
	}

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

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