.ast-adv-toggle-icon {
  right: 2px;
  top: -2px;
  position: absolute;
  width: 18px;
  height: 18px;
  font-size: 18px;
  border: 1px solid #ddd;
  border-radius: 2px;
  padding: 4px;
  color: #0073aa;
  background: #fff;
  &:hover {
    color: #099fd6;
  }
  &:before {
    content: "\f464";
  }
  &.open:before {
    content: "\f158";
  }
}

.ast-field-settings-modal {
  position: absolute;
  -webkit-box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  -webkit-border-radius: 3px;
  border-radius: 3px;
  left: 0;
  right: 0;
  z-index: 10000;
  background-color: #fff;
  .customize-control-ast-divider:first-child {
    margin-top: 15px;
  }
}

.ast-field-settings-wrap {
  width: 100%;
}

.ast-group-tabs, .ast-tab-content {
  position: relative;
}

.ast-group-list {
  &:before, &:after {
    content: "";
    display: table;
    border-collapse: collapse;
  }
  overflow: hidden;
  border-bottom: 1px solid #ddd;
}

/* Tab anchor color */

.ui-tabs-anchor {
  float: left;
  padding: .5em 0.5em;
  color: #555d66;
  text-decoration: none;
}

.ui-state-active .ui-tabs-anchor {
  color: #ffffff;
}

.ui-tabs-anchor:hover {
  color: #555d66;
}

.ui-state-active .ui-tabs-anchor:hover {
  color: #ffffff;
}

.ast-group-tabs .ui-widget-content {
  overflow: hidden;
  /*padding-top: 15px;*/
  &.iris-slider-offset, &.iris-slider-offset-alpha {
    overflow: inherit;
  }
}

.ast-fields-wrap {
  overflow: hidden;
}

.ast-field-settings-wrap {
  -webkit-box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  -webkit-border-radius: 3px;
  background-color: #fff;
  .ast-field-settings-modal {
    border-radius: 3px;
    margin-top: 9px;
    margin-bottom: 20px;
  }
}

.ast-field-settings-modal::before {
  content: '';
  position: absolute;
  top: -17px;
  right: 8px;
  border: 9px solid transparent;
  border-bottom-color: #fff;
  pointer-events: none;
}

.ast-group-tabs {
  .ui-tabs-nav {
    .ui-corner-top {
      &:first-child {
        border-radius: 3px 0px 0px 3px;
      }
      &:last-child {
        border-radius: 0px 3px 3px 0px;
      }
      align-items: center;
      flex: 1 1 auto;
      justify-content: center;
      margin: 0 0;
      padding: 0;
      border: 1px solid #ccc;
      transition: background-color 140ms linear;
      .ui-tabs-anchor {
        width: 100%;
        text-align: center;
        padding: 2px 4px;
        padding-left: 0;
        padding-right: 0;
        outline: none;
      }
    }
    display: flex;
    padding: 15px 15px 0 15px;
  }
  ul.ast-group-list .ui-corner-top .ui-tabs-anchor:focus {
    box-shadow: none;
  }
  .ui-tabs-nav {
    border: none;
  }
  ul.ast-group-list .ui-corner-top.ui-state-active {
    background-color: #0185BA;
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
  .ui-tabs-nav {
    overflow: visible;
  }
  ul.ast-group-list .ui-corner-top:not(:first-child) {
    border-left-width: 0;
  }
}

/* Buttons */

.wp-core-ui .ast-field-settings-modal .background-image-upload .button {
  font-size: 11px;
}

/* Popup params padding */
.ast-field-settings-modal .customize-control {
	padding-left: 15px;
    padding-right: 15px;
	box-sizing: border-box;
}

.ast-field-settings-modal .customize-control:first-child {
	margin-top: 15px;
}

.ast-field-settings-modal .ui-tabs-nav .customize-control:first-child {
	margin-top: 0;
}

.ast-field-settings-modal .customize-control:last-child {
	padding-bottom: 15px
}

.customize-control-ast-settings-group {
	line-height: 27px;
}

.customize-control-ast-settings-group .customize-control-title {
	margin-bottom: 0;
}

.customize-control-ast-settings-group .ast-field-settings-modal .customize-control-title {
	margin-bottom: 10px;
	font-size: 13px;
}

.ast-field-settings-modal .customize-control {
	margin-top: 10px;
}

/**
 * Popover Tab Structure.
 */
.astra-popover-tabs {
	position: relative;
	.components-tab-panel__tabs {
		display: flex;
		padding: 15px;
		border: none;
		.components-tab-panel__tabs-item {
			color: #555d66;
			font-size: 13px;
			font-weight: 400;
			height: 35px;
			transition: unset;
			padding: 2px 4px;
      text-decoration: none;
      border-radius: 0;
			border: 1px solid rgba(0, 0, 0, 0.1);
			&:active {
				box-shadow: unset;
			}
			&:focus {
				box-shadow: unset;
			}
		}
	}
	[ID*="-image-view"] {
		padding: 15px;
		border: none;
	}
	.components-button {
		align-items: center;
		flex: 1 1 auto;
		justify-content: center;
		margin: 0 0;
		padding: 0;
		border: 1px solid #ccc;
		transition: background-color 140ms linear;
	}
	.components-tab-panel__tabs-item {
		&:first-child {
			border-radius: 3px 0px 0px 3px;
    }
    &:last-child {
			border-radius: 0px 3px 3px 0px;
		}
		&:not(:first-child) {
			border-left-width: 0;
		}
	}
	.components-tab-panel__tabs-item.active-tab {
		background-color: #0185BA;
    color: #ffffff;
  }
  .components-tab-panel__tabs button.components-tab-panel__tabs-item.active-tab:not(.is-primary):not(.is-tertiary):not(.is-link):hover {
    color: #fff;
  }
}
.components-popover.astra-popover-color {
	.components-popover__content {
		min-width: 310px;
		max-height: 60vh;
    padding: 0;
    -webkit-box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
	}
}
.ast-field-settings-modal {
	.components-popover.astra-popover-color {
		.components-popover__content {
			min-width: 320px;
			min-height: 325px;
		}
	}
  .background-wrapper {
    .components-popover.astra-popover-color {
      .components-popover__content {
        min-height: 385px;
      }
    }
  }
  .components-angle-picker-control {
    .components-flex__block {
      min-width: auto;
    }
  }
}