/* Header */
.air-wp-sync-admin-header {
  background-color: white;
  margin-left: -20px;
  padding: 30px 20px;
  background: #fff;
  border-bottom: 1px solid #ccd0d4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.air-wp-sync-admin-header h2 {
  margin: 0;
}

.air-wp-sync-admin-header-logo {
  width: 34px;
  height: auto;
  margin-right: 12px;
}

.air-wp-sync-admin-header-wpco {
  display: block;
}

.air-wp-sync-admin-header-wpco img {
  width: auto;
  height: 20px;
}

.air-wp-sync-admin-header-link {
  display: flex;
  align-items: center;
  color: black;
  text-decoration: none;
  transition: opacity 0.25s;
}

.air-wp-sync-admin-header-link:hover {
  color: black;
  opacity: 0.7;
}

.air-wp-sync-admin-header-promo {
  background-color: rgb(26, 53, 80);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  padding: 14px 28px;
  margin: 0 12px;
  font-size: 14px;
  transition: background-color 250ms ease-in-out;
}

.air-wp-sync-admin-header-promo-icon {
  width: 12px;
  height: 12px;
  margin-left: 8px;
}

.air-wp-sync-admin-header-promo:hover,
.air-wp-sync-admin-header-promo:focus {
  color: white;
  background-color: rgba(26, 53, 80, 0.85);
}

/* List page */
.post-type-airwpsync-connection .wp-list-table .type-airwpsync-connection .row-actions .inline { display: none; }

/* Edit page */
.post-type-airwpsync-connection .tablenav.top,
.post-type-airwpsync-connection #minor-publishing-actions,
.post-type-airwpsync-connection #misc-publishing-actions #visibility,
.post-type-airwpsync-connection #misc-publishing-actions .edit-timestamp,
.post-type-airwpsync-connection .postbox .handle-order-higher,
.post-type-airwpsync-connection .postbox .handle-order-lower,
.post-type-airwpsync-connection #show-settings-link {
  display: none;
}

#airwpsync-alpine-container .postbox .ui-sortable-handle {
  pointer-events: none;
  cursor: default;
}

#airwpsync-alpine-container .postbox .ui-sortable-handle > span {
  pointer-events: auto;
  cursor: pointer;
}

#air-wp-sync-settings .inside { 
  margin-top: 0;
  padding: 0;
}

#air-wp-sync-settings .form-table { margin-top: 0; }

#air-wp-sync-settings .form-table th {
  background: #F9F9F9;
  padding-left: 12px;
}

#air-wp-sync-settings .form-table th,
#air-wp-sync-settings .form-table td {
  border-color: #eeeeee;
  border-width: 1px 0 0 1px;
  border-style: solid;
}

#air-wp-sync-settings p.description { font-weight: normal; }

#air-wp-sync-global-settings .form-required {
  position: relative;
  display: inline-block;
}

#air-wp-sync-global-settings .form-required.dashicons-before::before {
  position: absolute;
  right: -30px;
  top: 5px;
}

#air-wp-sync-global-settings .form-required.dashicons-yes-alt {
  color: #46b450;
}

#air-wp-sync-global-settings .form-required.dashicons-dismiss {
  color: #d63638;
}

#air-wp-sync-mapping .postbox-header h2 {
  justify-content: flex-start;
}

#air-wp-sync-mapping .inside { 
  margin-top: 0;
  padding: 0;
}

#air-wp-sync-mapping .form-table { margin-top: 0; }

#air-wp-sync-mapping .form-table thead th {
  background: #F9F9F9;
  padding: 12px;
}

#air-wp-sync-mapping .form-table tbody th,
#air-wp-sync-mapping .form-table tbody td {
  border-top: 1px solid #eeeeee;
  vertical-align: top;
}

#air-wp-sync-mapping .form-table thead th.col-actions,
#air-wp-sync-mapping .form-table tbody td.col-actions {
  width: 24px;
  text-align: center;
}

#air-wp-sync-mapping .form-table tfoot td {
  text-align: right;
  background: #F9F9F9;
  border-top: 1px solid #eeeeee;
}

#air-wp-sync-mapping .no-mapping {
  text-align: center;
  padding: 24px 12px;
}

.air-wp-sync-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.air-wp-sync-field label { margin-bottom: 4px; }

.airwpsync-tooltip {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 1rem;
  height: 1rem;
  margin-top: -2px;
  background: #ecedf8;
  border: none;
  border-radius: 50%;
  box-sizing: border-box;
  color: #242748;
  font-size: 0.5rem;
  margin-left: 8px;
  position: relative;
  text-decoration: none;
  vertical-align: middle;
}

.post-type-airwpsync-connection .ui-tooltip.ui-widget-content {
	background: #3c434a;
	border-radius: 4px;
	color: #fff;
  font-size: 12px;
	max-width: 13.125rem;
	mix-blend-mode: normal;
	padding: 0.625rem 1rem;
	position: absolute;
	text-align: center;
	z-index: 9999;
}

.post-type-airwpsync-connection .ui-tooltip.ui-widget-content a {
  color: #fff;
}

.post-type-airwpsync-connection .ui-tooltip.ui-widget-content h6 {
  display: block;
  font: inherit;
  font-weight: 600;
  margin: 0;
}

.post-type-airwpsync-connection .ui-tooltip.ui-widget-content.arrow-bottom::after {
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #3c434a;
  bottom: -6px;
  content: "";
  margin-left: -3px;
  position: absolute;
}

.post-type-airwpsync-connection .ui-tooltip.ui-widget-content.arrow-left::after {
  border-bottom: 6px solid transparent;
  border-right: 6px solid #3c434a;
  border-top: 6px solid transparent;
  content: "";
  left: -6px;
  margin-top: -6px;
  position: absolute;
  top: 50%;
}

#air-wp-sync-mapping .regular-text { max-width: 25em; width: 100%; }

#air-wp-sync-mapping .air-wp-sync-field:first-child label {
  display: none;
  font-weight: 600;
}

.btn-remove {
  background: transparent;
  border: 1px solid #d9d9d9;
  border-radius: 5rem;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.btn-remove:hover {
  color: white;
  border-color: transparent;
  background-color: #d63638;
}

.btn-remove-close-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -2px;
}

#air-wp-sync-import {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

#air-wp-sync-import-button {
  display: flex;
  align-items: center;
}

#air-wp-sync-import-feedback {
  margin-left: 10px;
}

#air-wp-sync-sync-settings .air-wp-sync-radiogroup > label {
  display: block;
  margin-bottom: 1em !important
}

#air-wp-sync-sync-settings .air-wp-sync-radiogroup > .air-wp-sync-field {
  margin: 12px 0 12px 24px;
}

@keyframes airwpsync-import-spin {
  from {
    transform:rotate(0deg);
  }
  to {
    transform:rotate(360deg);
  }
}

#air-wp-sync-import-button.loading .dashicons {
  animation-name: airwpsync-import-spin;
  animation-duration: 700ms;
  animation-iteration-count: infinite;
  animation-timing-function: linear; 
}

#air-wp-sync-import-button .label {
  margin-left: 5px;
}

#air-wp-sync-import-stats .dashicons-yes-alt {
  color: #46b450;
}

#air-wp-sync-import-stats .dashicons-dismiss,
#air-wp-sync-import-stats .air-wp-sync-last-error {
  color: #d63638;
}

@media screen and (max-width: 600px) {
  .air-wp-sync-admin-header {
    padding-top: 76px;
    margin-bottom: -46px;
  }
}

@media screen and (max-width: 782px) {
  .air-wp-sync-admin-header {
    flex-wrap: wrap;
  }

  .air-wp-sync-admin-header-promo {
    order: 10;
    margin: 24px 0 0;
  }

  #air-wp-sync-global-settings .form-required.dashicons-before::before {
    top: 10px;
  }
  

  #air-wp-sync-mapping .air-wp-sync-field:first-child label { display: block; }
  #air-wp-sync-mapping .form-table thead { display: none; }
  #air-wp-sync-mapping .form-table td { padding: 12px; }
  #air-wp-sync-mapping .form-table tbody td { border-top: none; }
  #air-wp-sync-mapping .form-table tbody tr { border-top: 1px solid #eeeeee; }
  #air-wp-sync-mapping .regular-text { max-width: 100%; }

  #air-wp-sync-mapping .btn-remove {
    width: auto;
    height: auto;
    border: none;
    color: #b32d2e;
    text-decoration: underline;
    padding: 0;
  }

  #air-wp-sync-mapping .btn-remove:hover {
    color: #b32d2e;
    border-color: transparent;
    background-color: transparent;
  }

  #air-wp-sync-mapping .btn-remove .btn-remove-close-icon { display: none; }

  #air-wp-sync-mapping .btn-remove .screen-reader-text {
    clip: initial;
    height: auto;
    width: auto;
    margin: 0;
    clip-path: none;
    position: relative;
  }

  #air-wp-sync-sync-settings .air-wp-sync-radiogroup > .air-wp-sync-field {
    margin: 12px 0 12px 32px;
  }
}
