<?php if ( forminator_array_value_exists( $properties, 'visual_style' ) && ( $properties['visual_style'] == 'grid' ) ) { ?>

	<?php if ( isset( $properties['enable_images'] ) && $properties['enable_images'] == '1' ) { ?>

		#forminator-module-<?php echo $properties['form_id'] ?> .forminator-poll--grid {
			display: -webkit-box;
			display: -ms-flexbox;
			display: flex;
			-ms-flex-wrap: wrap;
			flex-wrap: wrap;
			<?php if ( isset( $properties['answers-spacing'] ) && $properties['answers-spacing'] == 'open' ) { ?>
				margin: -10px;
			<?php } else if ( isset( $properties['answers-spacing'] ) && $properties['answers-spacing'] == 'enclosed' ) { ?>
				margin: -5px;
			<?php } else if ( isset( $properties['answers-spacing'] ) && $properties['answers-spacing'] == 'custom' ) { ?>
				<?php if ( $properties['spacing'] != '' ) { ?>
					margin: -<?php echo ($properties['spacing'] / 2) ?>px;
				<?php } ?>
			<?php } else { ?>
				margin: -10px;
			<?php } ?>
		}

		#forminator-module-<?php echo $properties['form_id'] ?> .forminator-poll--column {
			width: 50%;
			display: block;
			-ms-flex: 0 0 auto;
			flex: 0 0 auto;
			<?php if ( isset( $properties['answers-spacing'] ) && $properties['answers-spacing'] == 'open' ) { ?>
				padding: 10px;
			<?php } else if ( isset( $properties['answers-spacing'] ) && $properties['answers-spacing'] == 'enclosed' ) { ?>
				padding: 5px;
			<?php } else if ( isset( $properties['answers-spacing'] ) && $properties['answers-spacing'] == 'custom' ) { ?>
				<?php if ( $properties['spacing'] != '' ) { ?>
					padding: <?php echo ($properties['spacing'] / 2) ?>px;
				<?php } ?>
			<?php } else { ?>
				padding: 10px;
			<?php } ?>
		}

		<?php if ( forminator_array_value_exists( $properties, 'forminator-poll-design' ) ) { ?>
			<?php if ( $properties['forminator-poll-design'] != 'basic' ) { ?>
				#forminator-module-<?php echo $properties['form_id'] ?> .forminator-poll--column .forminator-radio.forminator-has_image {
					position: relative;
					padding-top: calc(150px + 15px);
				}
			<?php } ?>
		<?php } else { ?>
			#forminator-module-<?php echo $properties['form_id'] ?> .forminator-poll--column .forminator-radio.forminator-has_image {
				position: relative;
				padding-top: calc(150px + 15px);
			}
		<?php } ?>

		#forminator-module-<?php echo $properties['form_id'] ?> .forminator-poll--column .forminator-radio.forminator-has_image .forminator-radio-bullet {
			align-self: flex-start;
		}

		#forminator-module-<?php echo $properties['form_id'] ?> .forminator-poll--column .forminator-radio.forminator-has_image:not(.forminator-has_bullet) {
			margin-bottom: 0;
		}

		#forminator-module-<?php echo $properties['form_id'] ?> .forminator-poll--column .forminator-radio.forminator-has_image .forminator-radio-bullet {
			margin-left: 0;
		}

		<?php if ( forminator_array_value_exists( $properties, 'forminator-poll-design' ) ) { ?>
			<?php if ( $properties['forminator-poll-design'] != 'basic' ) { ?>
				#forminator-module-<?php echo $properties['form_id'] ?> .forminator-poll--column .forminator-radio.forminator-has_image .forminator-radio-image {
					width: 100%;
					position: absolute;
					top: 0;
					left: 0;
				}

				#forminator-module-<?php echo $properties['form_id'] ?> .forminator-poll--column .forminator-radio.forminator-has_image .forminator-radio-image span {
					width: auto;
					height: 140px;
				}
			<?php } else { ?>
				#forminator-module-<?php echo $properties['form_id'] ?> .forminator-poll--column .forminator-radio.forminator-has_image .forminator-radio-image {
					width: 100%;
					display: block;
				}
			<?php } ?>
		<?php } else { ?>
			#forminator-module-<?php echo $properties['form_id'] ?> .forminator-poll--column .forminator-radio.forminator-has_image .forminator-radio-image {
				width: 100%;
				position: absolute;
				top: 0;
				left: 0;
			}

			#forminator-module-<?php echo $properties['form_id'] ?> .forminator-poll--column .forminator-radio.forminator-has_image .forminator-radio-image span {
				width: auto;
				height: 140px;
			}
		<?php } ?>

		/* START: Desktop only */
		@media (min-width: 783px) {

			#forminator-module-<?php echo $properties['form_id'] ?>:not(.forminator-size--small) .forminator-poll--column {
				<?php if ( forminator_array_value_exists( $properties, 'poll-grid-cols' ) ) { ?>
					<?php if ( $properties['poll-grid-cols'] != '' ) { ?>
						width: <?php echo (100 / $properties['poll-grid-cols']) ?>%;
					<?php } else { ?>
						width: 33.33%;
					<?php } ?>
				<?php } else { ?>
					width: 33.33%;
				<?php } ?>
			}

			<?php if ( forminator_array_value_exists( $properties, 'forminator-poll-design' ) ) { ?>
				<?php if ( $properties['forminator-poll-design'] != 'basic' ) { ?>
					#forminator-module-<?php echo $properties['form_id'] ?>:not(.forminator-size--small) .forminator-poll--column .forminator-radio.forminator-has_image {
						padding-top: calc(250px + 15px);
					}

					#forminator-module-<?php echo $properties['form_id'] ?>:not(.forminator-size--small) .forminator-poll--column .forminator-radio.forminator-has_image .forminator-radio-image span {
						height: 240px;
					}
				<?php } ?>
			<?php } else { ?>
				#forminator-module-<?php echo $properties['form_id'] ?>:not(.forminator-size--small) .forminator-poll--column .forminator-radio.forminator-has_image {
					padding-top: calc(250px + 15px);
				}

				#forminator-module-<?php echo $properties['form_id'] ?>:not(.forminator-size--small) .forminator-poll--column .forminator-radio.forminator-has_image .forminator-radio-image span {
					height: 240px;
				}
			<?php } ?>
		}
		/* END: Desktop only */

	<?php } ?>

<?php } ?>
