.royal-addons_page_wpr-templates-kit #wpwrap {
  background: #F6F6F6;
}

.royal-addons_page_wpr-templates-kit #wpcontent {
  padding: 0;
}

#wpbody img {
  display: block;
  max-width: 100%;
  width: 100%;
}

.wpr-templates-kit-page > header {
  position: sticky;
  top: 32px;
  z-index: 99;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  background: #fff;
  -webkit-box-shadow: 0 0 7px 0 rgba(0,0,0,0.2);
          box-shadow: 0 0 7px 0 rgba(0,0,0,0.2);
}

.wpr-templates-kit-logo {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.wpr-templates-kit-logo div {
  padding: 20px;
  border-right: 1px solid #e8e8e8;
}

.wpr-templates-kit-logo .back-btn {
  display: none;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  font-weight: bold;
  color: #6d7882;
  cursor: pointer;
}

.wpr-templates-kit-logo .back-btn:hover {
  color: #222;
}

.wpr-templates-kit-search {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: absolute;
  top: 20px;
  left: 50%;
  -webkit-transform: translateX(-50%);
      -ms-transform: translateX(-50%);
          transform: translateX(-50%);
}

.wpr-templates-kit-search input {
  width: 500px;
  height: 45px;
  padding-left: 15px;
  background-color: #FBFBFB;
  border: none;
  border: 1px solid #e8e8e8 !important;
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
  border-radius: 3px;
}

.wpr-templates-kit-search .dashicons {
  margin-left: -32px;
  color: #6A4BFF;
}

.wpr-templates-kit-price-filter {
  position: relative;
  width: 110px;
  height: 40px;
  margin: 20px;
  border: 1px solid #e8e8e8;
  line-height: 40px;
  padding: 0 20px;
  border-radius: 3px;
  font-size: 14px;
  cursor: pointer;
}

.wpr-templates-kit-price-filter .dashicons {
  position: absolute;
  right: 12px;
  line-height: 40px;
  font-size: 14px;
}

.wpr-templates-kit-price-filter:hover ul {
  display: block;
}

.wpr-templates-kit-price-filter ul {
  display: none;
  background: #fff;
  position: absolute;
  width: 100%;
  top: 26px;
  left: -1px;
  padding: 0;
  border: 1px solid #e8e8e8;
}

.wpr-templates-kit-price-filter ul li {
  padding: 0 20px;
  line-height: 32px;
  margin-bottom: 0 !important;
  border-bottom: 1px solid #e8e8e8;
}

.wpr-templates-kit-price-filter ul li:last-child {
  border-bottom: 0;
}

.wpr-templates-kit-price-filter ul li:hover {
  background: #e8e8e8;
}

.wpr-templates-kit-filters {
  display: none;
  padding: 20px;
}

.wpr-templates-kit-filters div {
  padding: 10px 20px;
  border: 2px solid #e8e8e8;
  border-radius: 3px;
  font-size: 16px;
}

.wpr-templates-kit-filters ul {
  display: none;
}

.wpr-templates-kit-page-title {
  text-align: center;
  margin-top: 65px;
  margin-bottom: 35px;
}

.wpr-templates-kit-page-title h1 {
  font-size: 35px;
  color: #555;
}

.button.wpr-options-button {
  padding: 3px 18px;
  border: 0;
  color: #fff;
  background: #6A4BFF;
  -webkit-box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
          box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  font-size: 14px;
}

.button.wpr-options-button:hover,
.button.wpr-options-button:focus {
  color: #fff;
  background: #6A4BFF;
  border: none;
}

.button.wpr-options-button .dashicons {
  font-size: 16px;
  line-height: 32px;
  color: #fff;
}

.wpr-templates-kit-page-title .button.wpr-options-button .dashicons-video-alt3 {
  color: #fff !important;
}

.button.wpr-options-button:hover .dashicons,
.button.wpr-options-button:focus .dashicons {
  color: #fff;
}

.wpr-templates-kit-page-title .button.wpr-options-button:hover .dashicons-video-alt3,
.wpr-templates-kit-page-title .button.wpr-options-button:focus .dashicons-video-alt3 {
  color: #fff !important;
}

.wpr-templates-kit-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 20px 1fr 20px 1fr 20px 1fr;
  grid-template-columns: repeat(4, 1fr);
  grid-column-gap: 30px;
  grid-row-gap: 30px;
  padding: 30px;
}

.wpr-templates-kit-grid.single-grid {
  padding-bottom: 60px;
}

@media screen and (max-width: 1400px) {
  .wpr-templates-kit-grid {
    -ms-grid-columns: (1fr)[3];
    grid-template-columns: repeat(3, 1fr);
  }
}

.wpr-templates-kit-grid .grid-item {
  position: relative;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  -webkit-box-shadow: 0 0 3px 0 rgba(0,0,0,0.1);
          box-shadow: 0 0 3px 0 rgba(0,0,0,0.1);
  background: #fff;
}

.wpr-templates-kit-grid .grid-item[data-price="pro"]:before,
.wpr-templates-kit-grid .grid-item[data-expert="true"]:after{
  display: block;
  position: absolute;
  right: 15px;
  z-index: 10;
  padding: 4px 15px 5px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: .4px;
  color: #fff;
  -webkit-box-shadow: -1px 1px 5px 2px rgb(0 0 0 / 30%);
          box-shadow: -1px 1px 5px 2px rgb(0 0 0 / 30%);
  border-radius: 3px;
}

.wpr-templates-kit-grid .grid-item[data-price="pro"]:before {
    content: 'Premium';
    background: #6a4bff;
    top: 30px;
}

.wpr-templates-kit-grid .grid-item[data-expert="true"]:after {
  content: 'Expert';
  background: red;
    top: 62px;
}

.wpr-templates-kit-grid .grid-item[data-price="free"][data-expert="true"]:after {
  top: 30px;
}

.wpr-templates-kit-grid .image-wrap {
  position: relative;
  border-bottom: 1px solid #e8e8e8;
}

.wpr-templates-kit-grid .image-wrap:hover .image-overlay {
  opacity: 1;
}

.wpr-templates-kit-grid .image-overlay {
  opacity: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  -webkit-transition: opacity 0.2s ease-in;
  -o-transition: opacity 0.2s ease-in;
  transition: opacity 0.2s ease-in;
}

.wpr-templates-kit-grid .image-overlay .dashicons {
  font-size: 30px;
  color: #fff;
}

.wpr-templates-kit-grid .grid-item footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  padding: 15px;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

.wpr-templates-kit-grid .grid-item footer h3 {
  margin: 0;
  font-size: 16px;
  text-transform: capitalize;
}

.wpr-templates-kit-grid .grid-item footer span {
  position: relative;
  min-width: 77px;
  height: 20px;
  background-color: #5130ef;
  color: #fff;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 3px;
}

span.wpr-woo-builder-label {
  background-color: #7B51AD !important;
  text-align: center;
}

.wpr-templates-kit-grid .grid-item footer span:after {
  display: none;
  width: 125px;
  position: absolute;
  top: -50px;
  left: 30%;
  -webkit-transform: translateX(-50%);
      -ms-transform: translateX(-50%);
          transform: translateX(-50%);
  padding: 7px 10px;
  border-radius: 3px;
  background-color: #333;
  font-size: 12px;
  line-height: 15px;
  -webkit-box-shadow: 0 0 5px rgba(0,0,0,0.4);
          box-shadow: 0 0 5px rgba(0,0,0,0.4);
}

.wpr-templates-kit-grid .grid-item footer span.wpr-theme-builder-label:after {
  content: "This Kit includes Theme Builder templates.";
}

.wpr-templates-kit-grid .grid-item footer span.wpr-woo-builder-label:after {
  content: "This Kit includes WooCommerce Builder templates.";
}

.wpr-templates-kit-grid .grid-item footer span:hover:after {
  display: block;
}

/* TODO: News Magazine X Theme Banner (remove later) */
.wpr-templates-kit-grid .grid-item[data-kit-id="news-magazine-x-v1"] {
  display: none;
}

.wpr-templates-kit-grid .grid-item[data-kit-id="news-magazine-x-v1"] .wpr-templates-kit-newsx-info {
  position: absolute;
  bottom: 0;
  left: -10px;
  width: calc(100% - 20px);
  margin: 10px 20px;
  background: #fff;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 14px;
  color: #333;
  box-sizing: border-box;
}

.wpr-templates-kit-grid .grid-item[data-kit-id="news-magazine-x-v1"] .wpr-templates-kit-install-newsx {
  position: relative;
  min-width: 77px;
  height: 20px;
  background-color: #f54c48;
  box-shadow: 0 0 5px rgba(250, 51, 51, 0.3);
  color: #fff;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 3px;
  text-align: center;
  cursor: pointer;
}

.wpr-templates-kit-newsx-info p:last-child {
  font-size: 12px;
}

/* New, Hot, Trending Labels */
.grid-item .label {
  display: none;
  position: absolute;
  top: 30px;
  left: 15px;
  z-index: 1;
  padding: 6px 15px 7px;
  line-height: 1;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
  border-radius: 3px;
  -webkit-box-shadow: -1px 1px 5px 2px rgba(0,0,0,0.2);
          box-shadow: -1px 1px 5px 2px rgba(0,0,0,0.2);
}

.grid-item .label-new {
  background-color: #f44 ;
}

.grid-item .label-hot {
  background-color: #FFA500  ;
}

.grid-item .label-trending {
  background-color: #0077be ;
}

.wpr-templates-kit-single {
  display: none;
}

.wpr-templates-kit-expert-notice {
  padding: 0 30px;
}

.wpr-templates-kit-expert-notice p {
  padding: 20px;
  background: #fff;
  margin-bottom: 0;
  position: relative;
  -webkit-box-shadow: 0 0 5px rgba(0,0,0,0.05);
          box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.wpr-templates-kit-expert-notice p .dashicons:first-child,
.wpr-templates-kit-expert-notice p strong:first-of-type {
  color: #f44;
}

.wpr-templates-kit-expert-notice p .dashicons:first-child {
  font-size: 16px;
  position: relative;
  top: 2px;
}

.wpr-templates-kit-expert-notice p .dashicons:last-child {
  cursor: pointer;
  position: absolute;
  right: 20px;
}

.wpr-templates-kit-single .grid-item a {
  text-decoration: none;
}

.wpr-templates-kit-single .action-buttons-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 25px 30px;
  background: #fff;
  -webkit-box-shadow: 0 0 7px 0 rgba(0,0,0,0.2);
          box-shadow: 0 0 7px 0 rgba(0,0,0,0.2);
}

.action-buttons-wrap a,
.action-buttons-wrap button {
  padding: 5px 25px !important;
}

.wpr-templates-kit-single .preview-demo {
  margin-right: auto;
}

.wpr-templates-kit-single .preview-demo .dashicons {
  font-size: 14px;
  line-height: 28px;
}

.wpr-templates-kit-single .import-tutorial-link {
  text-decoration: none;
  align-self: center;
}

.wpr-templates-kit-single .import-kit,
.wpr-templates-kit-single .get-access {
  background: #6A4BFF;
  color: #fff;
}

.wpr-templates-kit-single .import-kit:hover,
.wpr-templates-kit-single .import-kit:focus,
.wpr-templates-kit-single .get-access:hover,
.wpr-templates-kit-single .get-access:focus {
  background: #5130ef;
  color: #fff;
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
}

.wpr-templates-kit-single .import-kit .dashicons,
.wpr-templates-kit-single .get-access .dashicons {
  font-size: 14px;
  line-height: 30px;
  color: #fff;
}

.wpr-templates-kit-single .import-kit .dashicons-download,
.wpr-templates-kit-single .get-access .dashicons-download {
  color: #fff !important;
}

.wpr-templates-kit-single .import-kit:hover .dashicons-download,
.wpr-templates-kit-single .import-kit:focus .dashicons-download,
.wpr-templates-kit-single .get-access:hover .dashicons-download,
.wpr-templates-kit-single .get-access:focus .dashicons-download {
  color: #fff !important;
}

.wpr-templates-kit-single .selected-template {
  border: 1px solid #2271B1;
  -webkit-box-shadow: 0 0 5px 0 rgba(0,0,0,0.1);
          box-shadow: 0 0 5px 0 rgba(0,0,0,0.1);
}

.import-template-buttons .import-template {
  display: none;
}

.wpr-templates-kit-single .import-template strong {
  text-transform: capitalize;
}

.wpr-import-kit-popup-wrap {
  display: none;
  position: relative;
  z-index: 9999999;
}

.wpr-import-kit-popup-wrap .overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999999;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.wpr-import-help {
  margin-top: 20px;
  text-align: right;
}

.wpr-import-help a {
  width: 50%;
  font-size: 12px;
  text-align: right;
  text-decoration: none;
  color: #8F5D64;
}

.wpr-import-help a:hover {
  text-decoration: underline;
}

.wpr-import-help a span {
  vertical-align: middle;
  margin-bottom: 2px;
  font-size: 12px !important;
  width: 12px !important;
  height: 12px !important;
  text-decoration: none !important
}

.wpr-import-kit-popup {
  overflow: hidden;
  position: fixed;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%,-50%);
      -ms-transform: translate(-50%,-50%);
          transform: translate(-50%,-50%);
  z-index: 9999999;
  width: 555px;
  background: #f5f5f5;
  border-radius: 3px;
}

.wpr-import-kit-popup header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding-left: 25px;
  -webkit-box-shadow: 2px 0 5px 0 rgba(0,0,0,0.2);
          box-shadow: 2px 0 5px 0 rgba(0,0,0,0.2);
}

.wpr-import-kit-popup .close-btn {
  display: none;
  height: 50px;
  line-height: 50px;
  width: 50px;
  cursor: pointer;
  border-left: 1px solid #eee;
  color: #aaa;
  font-size: 22px;
}

.wpr-import-kit-popup .content {
  padding: 25px;
}

.wpr-import-kit-popup .content p:first-child {
  margin-top: 0;
}

.wpr-import-kit-popup .progress-wrap {
  background: #fff;
  border-radius: 3px;
  margin-top: 25px;
}

.wpr-import-kit-popup .progress-wrap strong {
  padding: 10px;
  display: block;
}

.wpr-import-kit-popup .progress-bar {
  width: 30px;
  height: 4px;
  background: #2271B1;
}

.dot-flashing {
  display: inline-block;
  margin-left: 10px;
  margin-bottom: -1px;
  position: relative;
  width: 3px;
  height: 3px;
  border-radius: 10px;
  background-color: #3c434a;
  color: #3c434a;
  -webkit-animation: dotFlashing 1s infinite linear alternate;
          animation: dotFlashing 1s infinite linear alternate;
  -webkit-animation-delay: .5s;
          animation-delay: .5s;
}

.dot-flashing::before, .dot-flashing::after {
  content: '';
  display: inline-block;
  position: absolute;
  top: 0;
}

.dot-flashing::before {
  left: -6px;
  width: 3px;
  height: 3px;
  border-radius: 10px;
  background-color: #3c434a;
  color: #3c434a;
  -webkit-animation: dotFlashing 1s infinite alternate;
          animation: dotFlashing 1s infinite alternate;
  -webkit-animation-delay: 0s;
          animation-delay: 0s;
}

.dot-flashing::after {
  left: 6px;
  width: 3px;
  height: 3px;
  border-radius: 10px;
  background-color: #3c434a;
  color: #3c434a;
  -webkit-animation: dotFlashing 1s infinite alternate;
          animation: dotFlashing 1s infinite alternate;
  -webkit-animation-delay: 1s;
          animation-delay: 1s;
}

@-webkit-keyframes dotFlashing {
  0% {
    background-color: #3c434a;
  }
  50%,
  100% {
    background-color: #ebe6ff;
  }
}

@keyframes dotFlashing {
  0% {
    background-color: #3c434a;
  }
  50%,
  100% {
    background-color: #ebe6ff;
  }
}

.wpr-templates-kit-not-found {
  display: none;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center
}

.wpr-templates-kit-not-found img {
  width: 180px !important;
}

.wpr-templates-kit-not-found h1 {
  margin: 0;
}

.wpr-templates-kit-not-found a {
  display: inline-block;
  padding: 10px 25px;
  margin-top: 15px;
  background: #6A4BFF;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
}

.wpr-templates-kit-not-found a:hover {
  background: #5836fd;
}

/* Disable Notices */
.notice:not(.wpr-plugin-update-notice),
div.fs-notice.updated, div.fs-notice.success {
  display: none !important;
}

/* Impot Error */
.progress-wrap.import-error .progress-bar {
  width: 100% !important;
  background-color: #ff6060;
}

.progress-wrap.import-error strong span {
  font-weight: normal;
  font-style: italic;
  color: #888;
}

.wpr-import-help.import-error {
  text-align: center;
}

.wpr-import-help.import-error a {
  width: auto;
  display: inline-block;
  color: #fff;
  background-color: #2271B1;
  font-size: 14px;
  padding: 5px 15px 6px;
  text-decoration: none;
  border-radius: 3px;
}

.wpr-import-help.import-error a span {
  font-size: 14px !important;
  width: 14px !important;
  height: 14px !important;
}

/* Responsive */
@media screen and (max-width: 1400px) {
  .wpr-templates-kit-search input {
    width: 350px;
  }

  .wpr-templates-kit-expert-notice {
    text-align: center;
  }
}

/* WordPress admin mobile: sidebar is hidden; keep import bar full-width so Import Templates Kit stays visible */
@media screen and (max-width: 782px) {
  .wpr-templates-kit-single .action-buttons-wrap {
    margin-left: 0 !important;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    row-gap: 10px;
    -webkit-column-gap: 8px;
       -moz-column-gap: 8px;
            column-gap: 8px;
  }

  .wpr-templates-kit-single .import-template-buttons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 8px;
  }
}