#greenlet-importer {
  margin-left: -20px; }

.gl-header {
  background: #027cba;
  color: #fff;
  padding: 12px 16px;
  font-size: 14px;
  text-align: center; }

.gl-sites {
  display: flex;
  flex-wrap: wrap;
  padding: 10px;
  position: relative; }
  .gl-sites.none {
    font-size: 30px;
    line-height: 1;
    justify-content: center;
    padding-top: 20vh; }
  .gl-sites .search {
    position: absolute;
    right: 26px;
    top: -30px; }
    .gl-sites .search input {
      border-color: transparent;
      box-shadow: 0 0 6px #ddd;
      min-width: 14vw; }
      .gl-sites .search input:focus {
        border-color: #007cba;
        box-shadow: 0 0 0 1px #007cba; }

.gl-site {
  width: calc( 25% - 30px);
  min-width: 200px;
  margin: 15px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #ddd; }
  .gl-site .gl-site-header {
    display: flex;
    border-bottom: 1px solid #ddd;
    padding: 8px 12px;
    align-items: center; }
  .gl-site .gl-site-name {
    text-transform: capitalize; }
  .gl-site .gl-import-button {
    margin-left: auto; }
  .gl-site .gl-img-wrap {
    cursor: pointer;
    max-height: 50vh;
    overflow: auto;
    scrollbar-width: none; }
    .gl-site .gl-img-wrap::-webkit-scrollbar {
      display: none; }
  .gl-site img {
    max-width: 100%;
    display: block; }

.gl-sites.loading {
  height: calc(100vh - 200px);
  align-items: center;
  justify-content: center; }
  .gl-sites.loading .balls {
    position: relative;
    width: 440px;
    height: 80px;
    -webkit-filter: url("#goo");
    filter: url("#goo"); }
  .gl-sites.loading svg {
    width: 0; }
  .gl-sites.loading .ball {
    position: absolute;
    display: inline-block;
    padding: 20px;
    height: 40px;
    width: 40px;
    border-radius: 80px;
    background: #027cba;
    left: 0;
    top: 0;
    transition: 0.33s ease-out; }
    .gl-sites.loading .ball:nth-child(1) {
      transform: translate3d(0, 0, 0); }
    .gl-sites.loading .ball:nth-child(2) {
      transform: translate3d(180px, 0, 0);
      transition-delay: 0.1s; }
    .gl-sites.loading .ball:nth-child(3) {
      transform: translate3d(360px, 0, 0);
      transition-delay: 0.2s; }
    .gl-sites.loading .ball:nth-child(4) {
      height: 10px;
      width: 10px;
      top: 15px;
      background: #027cba;
      box-shadow: 0 0 20px #027cba, 0 0 10px #027cba;
      animation: goo 3s infinite ease-in-out;
      transform: translate3d(-30px, 0, 0); }

.gl-sites-details {
  display: flex;
  flex-wrap: wrap;
  min-width: 90vw;
  height: calc( 100vh - 230px); }
  .gl-sites-details * {
    box-sizing: border-box; }
  .gl-sites-details .col {
    flex-grow: 1; }
  .gl-sites-details .gl-site-gallery {
    display: flex;
    flex-basis: 60%;
    height: 100%;
    padding-right: 20px;
    border-right: 1px solid #eee; }
    .gl-sites-details .gl-site-gallery img {
      width: 100%;
      display: block; }
  .gl-sites-details .gl-site-image {
    flex-basis: 80%;
    height: 100%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    overflow-y: auto; }
  .gl-sites-details .gl-site-thumbs {
    flex-basis: 20%;
    height: 100%;
    overflow-y: auto;
    padding-left: 40px; }
  .gl-sites-details .thumb-wrap {
    border: 1px solid #027cba;
    margin-bottom: 20px;
    border-radius: 3px;
    text-align: center;
    position: relative;
    cursor: pointer; }
    .gl-sites-details .thumb-wrap.active:before {
      content: '';
      display: block;
      position: absolute;
      right: 100%;
      bottom: 1px;
      border: 10px solid transparent;
      border-right-color: #027cba;
      box-sizing: border-box; }
  .gl-sites-details .thumb-details {
    max-height: 240px;
    border-radius: 2px;
    overflow: hidden; }
  .gl-sites-details .thumb-name {
    text-transform: capitalize;
    font-size: 12px;
    color: #267197;
    padding: 2px 0;
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #027cba;
    border-radius: 0 0 2px 2px; }
  .gl-sites-details .gl-import-section {
    flex-basis: 40%;
    display: flex;
    flex-flow: column;
    max-height: 100%;
    overflow-y: auto;
    padding-left: 20px;
    border-left: 1px solid #ddd; }
    .gl-sites-details .gl-import-section > *:not(:last-child) {
      margin-bottom: 20px; }
  .gl-sites-details .gl-import-notice {
    background: #e8f5f9;
    margin: 0; }
    .gl-sites-details .gl-import-notice strong {
      margin: 0 .4em; }
    .gl-sites-details .gl-import-notice p {
      margin: 0 .4em .6em;
      background: #fff;
      display: inline-block;
      padding: .2em 1em;
      border-radius: 20px;
      box-shadow: 0 0 2px rgba(0, 0, 0, 0.3); }
  .gl-sites-details .gl-status-item:not(:last-child) {
    margin-bottom: 8px; }
  .gl-sites-details .gl-actions {
    display: flex;
    margin-top: auto;
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 10px 0 1px 0; }
  .gl-sites-details .gl-import-button {
    margin-left: auto; }

.gl-preview-modal {
  animation: zoom 0.4s normal forwards cubic-bezier(0.075, 0.82, 0.165, 1.15); }
  .gl-preview-modal.components-modal__frame {
    width: 100%;
    height: 100%;
    max-width: unset;
    max-height: unset;
    border: none; }
  .gl-preview-modal .components-modal__content {
    padding: 0; }
  .gl-preview-modal .components-modal__header {
    height: 32px;
    background: #23282d;
    margin: 0;
    border: none;
    padding: 0 12px; }
  .gl-preview-modal h1, .gl-preview-modal .components-button {
    color: #fff;
    font-weight: 400 !important;
    font-size: 13px !important; }
  .gl-preview-modal .preview-wrap {
    height: calc(100% - 32px);
    background: #fff url(/wp-admin/images/spinner.gif) no-repeat 50%;
    background-size: 20px 20px; }
  .gl-preview-modal iframe {
    width: 100%;
    height: 100%; }
  .gl-preview-modal .close-helper {
    position: absolute;
    color: #fff;
    z-index: 99;
    top: 6px;
    right: 60px;
    animation: 4s slide .4s forwards linear; }

@keyframes goo {
  0% {
    transform: translate3d(-30px, 0, 0); }
  50% {
    transform: translate3d(420px, 0, 0); }
  100% {
    transform: translate3d(-30px, 0, 0); } }

@keyframes zoom {
  0% {
    transform: translate(-50%, -50%) scale3d(0.8, 0.8, 1); }
  100% {
    transform: translate(-50%, -50%) scale3d(1, 1, 1); } }

@keyframes slide {
  0%, 20%, 40%, 60%, 80% {
    right: 60px; }
  10%, 30%, 50%, 70% {
    right: 40px; }
  90% {
    right: 40px;
    opacity: 1; }
  100% {
    right: 40px;
    opacity: 0; } }

.gl-progress-wrap {
  position: relative;
  height: 20px;
  background: #e8f5f9;
  border-radius: 2px;
  overflow: hidden; }

.gl-progress-bar {
  background: #007cba;
  background: var(--wp-admin-theme-color);
  height: 100%;
  transition: width .2s;
  position: relative;
  overflow: hidden; }
  .gl-progress-bar .gl-flash {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: progress 2s linear infinite; }
    .gl-progress-bar .gl-flash:before {
      content: '';
      width: 14px;
      height: 14px;
      display: block;
      background: #fff;
      border-radius: 2px;
      margin: 3px; }

.completed .gl-progress-bar {
  background: #4ab866; }
  .completed .gl-progress-bar .gl-flash:before {
    background: none; }

@keyframes progress {
  0% {
    transform: translate3d(0, 0, 0); }
  100% {
    transform: translate3d(1000px, 0, 0); } }
