/* =============== Widget style start ========*/
.mprm-container {

  &.mprm-widget-categories {
	margin: 0;
	&.mprm-view-list {
	  .mprm-menu-category {
		.mprm-category-content {
		  .mprm-link {
			outline: none;
			margin: 0;
			padding: 0;
			.mprm-title {
			  margin: 0;
			  padding: 0;
			}
			.mprm-icon {
			  margin: 0 5px 0 0;
			}
		  }
		  .mprm-category-description, .mprm-category-children-wrapper {
			margin-top: 1rem;
			margin-bottom: 0;
			padding: 0;
		  }
		}
	  }
	}

	&.mprm-view-grid {
	  .mprm-menu-category {

		background-size: 0 0;
		display: inline-block;
		overflow: hidden;
		padding: 0;
		position: relative;
		transition: all 0.6s ease 0s;

		&:hover:before {
		  transform: scale(1.2, 1.2);
		}

		&:before {
		  background-color: @overlay;
		  background-image: inherit;
		  background-position: center center;
		  background-repeat: no-repeat;
		  background-size: cover;
		  content: "";
		  height: 100%;
		  left: 0;
		  position: absolute;
		  top: 0;
		  transition: all 0.6s ease 0s;
		  width: 100%;
		}

		.mprm-effect-hover {
		  background-color: @overlay;
		  height: 100%;
		  left: 0;
		  position: absolute;
		  top: 0;
		  width: 100%;
		}

		.mprm-link {
		  color: @white;
		  .mprm-category-content {
			position: relative;
			padding: 10%;
			.mprm-title {
			  color: inherit;
			  margin: 0;
			  padding: 0;
			}
			.mprm-icon {
			  margin: 0 5px 0 0;
			}
			.mprm-category-description {
			  margin: 1rem 0 0;
			  padding: 0;
			  color: inherit;
			  line-height: 1.1;
			  font-size: 0.8em;
			}
		  }
		}
	  }
	}
  }

  &.mprm-widget-items {
	margin: 0;

	&.mprm-view-grid {
	  .mprm-image {
		margin: 0 2em 1em 0;
	  }
	  .mprm_menu_item_buy_button.mprm-offset-by-five {
		margin-left: 0;
	  }
	  .mprm-header {
		position: relative;
		width: 100%;
		&.with-image {
		  color: @white;
		  margin-bottom: 2rem;
		  background-position: center center;
		  background-size: cover;
		  .mprm-header-content {
			background-color: rgba(70, 70, 70, 0.5);
			padding: 6em 2em;
			position: relative;
			text-align: center;
			.mprm-title {
			  padding: 0;
			  margin: 0;
			  color: inherit;
			  .mprm-icon {
				margin: 0 5px 0 0;
			  }
			}
		  }
		}
		&.only-text {
		  padding: 0 0 2rem;
		}
	  }
	  .mprm-image {
		height: auto;
		width: 100%;
	  }
	  .mprm-link {
		outline: none;
	  }
	}

	&.mprm-view-list {
	  .mprm_menu_item_buy_button.mprm-offset-by-five {
		width: 55%;
	  }
	  .mprm-header {
		position: relative;
		width: 100%;
		&.with-image {
		  color: @white;
		  margin-bottom: 2rem;
		  background-position: center center;
		  background-size: cover;
		  .mprm-header-content {
			background-color: rgba(70, 70, 70, 0.5);
			padding: 6em 2em;
			position: relative;
			text-align: center;
			.mprm-title {
			  padding: 0;
			  margin: 0;
			  color: inherit;
			  .mprm-icon {
				margin: 0 5px 0 0;
			  }
			}
		  }
		}
		&.only-text {
		  padding: 0 0 2rem;
		}
	  }
	  .mprm-side {
		&.mprm-left-side {
		}
		&.mprm-right-side {
		  .mprm-content-container {
			.mprm-title-big {
			  margin-top: 0;
			}
		  }
		}
	  }
	  .mprm-link {
		outline: none;
	  }
	}
	&.mprm-view-simple-list {
	  .mprm-simple-view-column {
		&.mprm-last {
		  margin-bottom: 0;
		}
		&:first-child {
		  .mprm-taxonomy-title {
			margin-top: 0;
		  }
		}
	  }
	  .mprm-header {
		position: relative;
		width: 100%;
		&.with-image {
		  color: @white;
		  margin-bottom: 2rem;
		  background-position: center center;
		  background-size: cover;

		  .mprm-header-content {
			background-color: rgba(70, 70, 70, 0.7);
			padding: 6em 2em;
			position: relative;
			text-align: center;
			.mprm-title {
			  .mprm-icon {
				margin: 0 5px 0 0;
			  }
			}
		  }
		}
		&.only-text {
		  padding: 0 0 1rem;
		}
	  }
	  .mprm-ingredients {
		.mprm-list {
		  margin: 0 0 1em 0;
		  padding: 0;
		}
	  }
	  .type-mp_menu_item {
		.mprm-flex-container-simple-view {
		  &.mprm-list {
			margin: 0;
			&:first-child {
			  margin: 0 0 8px 0;
			}
		  }
		  margin: 0 0 1em 0;
		  list-style: none inside none !important;
		  width: 100%;
		  display: flex;
		  flex-flow: row wrap;
		  &.mprm-right {
			.mprm-flex-item {
			  &:first-child {
				font-weight: bold;
			  }
			  &.mprm-dots {
				border: none;
				margin-bottom: 0;
			  }
			}
		  }
		  &.mprm-after_title {
			.mprm-flex-item {
			  &:first-child {
				font-weight: bold;
			  }
			  &.mprm-dots {
				display: none;
			  }
			  &.mprm-price {
				margin-left: 0.5em;;
			  }
			}
		  }
		  .mprm-flex-item {
			margin: 0;
			.mprm-title {
			  margin: 0;
			  padding: 0;
			}
			white-space: pre-wrap;
			&.mprm-dots {
			  border-bottom: 1px dotted #e0e0e0;
			  flex: 1;
			  align-self: flex-end;
			  flex-basis: 5%;
			  margin: 0.25em;
			}
			&.mprm-price {
			  align-self: flex-end;
			}
		  }
		}
	  }
	}
  }
}

.mprm_widget {
  .mprm-side {
	&.mprm-left-side {
	  img {
		height: auto;
		width: 100%;
	  }
	}
  }
  .mprm-container {
	.mprm-row {
	  a.mprm-link {
		text-decoration: none;
		outline: none;
		box-shadow: none;
		border: none;
		&:focus,
		&:visited,
		&:hover {
		  text-decoration: none;
		  outline: none;
		  box-shadow: none;
		  border: none;
		}
	  }
	}
  }
}

.widget_mprm_cart_widget {
  .mprm-cart {
	&.mprm-cart-items {
	  padding: 0 0 10px 0;
	}
	list-style: none;
	.mprm-cart-item {
	  &.mprm_subtotal {
		border-top: 1px solid rgba(0, 0, 0, .05);
		padding: 10px 16px 10px 0;
	  }
	  position: relative;
	  padding: 0 16px 10px 0;
	  .mprm-bold {
		font-weight: bold;
	  }
	  .mprm-remove-from-cart {
		&.mprm-theme-mode {
		  width: 16px;
		  height: 16px;
		  background-image: url(../img/close-icon.png);
		  display: inline-block;
		  position: absolute;
		  right: 0;
		  top: 0;
		  outline: none;
		}
	  }
	}
  }
}