#real3dflipbook-admin .actions-holder {
  padding: 10px;
}
#real3dflipbook-admin .submit {
  clear: both;
}
#real3dflipbook-admin .float-left {
  float: left;
}
#real3dflipbook-admin .float-right {
  float: right;
}
#real3dflipbook-admin .column-left {
  position: relative;
  float: left;
  width: 50%;
}
#real3dflipbook-admin .column-right {
  position: relative;
  width: 50%;
  float: right;
}
#real3dflipbook-admin .back-to-list-link {
  text-decoration: none;
  margin-top: 11px;
  display: block;
  width: 180px;
}

#real3dflipbook-admin #add-new-page-button {
  margin-bottom: 20px;
  float: right;
}

#real3dflipbook-admin .delete-pages-button {
  color: #bc0b0b;
  cursor: pointer;
}

#real3dflipbook-admin .delete-all-pages {
  margin-bottom: 20px;
  margin-right: 10px;
  margin-left: 10px;
  float: right;
}

#real3dflipbook-admin .delete-page {
  position: absolute;
  top: 25px;
  right: 0;
  color: #f00;
}

#real3dflipbook-admin .update-all-flipbooks {
  margin: 5px 20px;
  color: #f00;
}

#real3dflipbook-admin .button80 {
  min-width: 80px;
  text-align: center;
}

#real3dflipbook-admin .page {
  margin: 5px;
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin-bottom: 10px;
}

#real3dflipbook-admin .page-number {
  display: block;
  width: 100%;
  text-align: center;
}

#real3dflipbook-admin .page .page-img {
  height: 80px;
  background: #ffffff;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  min-width: 50px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

#real3dflipbook-admin .attachments-browser {
  position: relative;
  height: 800px;
}

#real3dflipbook-admin #pages-container {
  margin-bottom: 10px;
}

#real3dflipbook-admin #pages-container:focus {
  outline: none;
}

#edit-page-html-content {
  display: block;
  height: 200px;
  width: 100%;
}

#real3dflipbook-admin .page .tabs {
  /* background:#EBEBEB */
}

#real3dflipbook-admin .share .tabs {
  background: #ebebeb;
}

#real3dflipbook-admin .page img {
  height: 80px;
}

#real3dflipbook-admin .page canvas {
  /* margin: 0 auto; */
  /* display: block; */
  /* max-width: 100%; */
  /* max-height: 100%; */
  /* vertical-align: middle; */
  /* max-width: 100%; */
  /* max-height: 100%; */
  /* padding: 0; */
  /* position: relative; */
  /* top: 50%; */
  /* transform: translateY(-50%); */
}

#real3dflipbook-admin .page-img {
  display: inline-block;
}

#real3dflipbook-admin .page .deletediv,
#real3dflipbook-admin .page .duplicatediv {
  cursor: pointer;
  position: absolute;
  right: 6px;
  top: 0;
}

#real3dflipbook-admin .share .deletediv,
#real3dflipbook-admin .share .duplicatediv {
  /*float:right;*/
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

#real3dflipbook-admin .page .page-link .field-row {
  clear: both;
  margin-bottom: 10px;
  height: 20px;
  position: relative;
}

#real3dflipbook-admin .page .page-link {
  position: relative;
  background: rgba(255, 255, 255, 0.75);
  margin-bottom: 15px;
  border-radius: 2px;
}
#real3dflipbook-admin .page .page-link label {
  /*width: 115px;*/
  /*text-align: right;*/
  /*display: block;*/
  /*float: left;*/

  display: block;
  float: left;
  width: 115px;
  text-align: right;
  margin: 6px 5px 0 0;
}
#real3dflipbook-admin .page .page-link input {
  /*width: 65px;*/
}

#real3dflipbook-admin .page .delete-link {
  position: absolute;
  right: 0;
  top: 0;
  cursor: pointer;
}

#real3dflipbook-admin .page .deletediv {
  background-position: -17px -28px;
}
#real3dflipbook-admin .page .deletediv:hover {
  background-position: -27px -30px;
}

#real3dflipbook-admin .page .duplicatediv {
  top: 30px;
  background-position: 0 0;
}
#real3dflipbook-admin .page .duplicatediv:hover {
  background-position: 0 -30px;
}

#real3dflipbook-admin .postbox {
  /* margin-right: 10px; */
  /* background: #DEDEDE; */
  /* display: inline-block; */
}

#real3dflipbook-admin .postbox h3 {
  /* color: #000; */
  /* background: #CFCFCF; */
  font-size: 14px;
  padding: 8px 12px;
  margin: 0;
  line-height: 1.4;
}

#real3dflipbook-admin .postbox .handlediv {
  color: #000;
}

#real3dflipbook-admin .widget-top,
.postbox .inside {
  margin-bottom: 30px;
}

#real3dflipbook-admin .page .settings-area {
  background: #ddd;
}

#real3dflipbook-admin .page .settings-area input,
#real3dflipbook-admin .page .settings-area textarea {
}
#real3dflipbook-admin .page .content-editor-button {
  margin-top: 10px;
}
#real3dflipbook-admin a.button-primary {
  color: #fff !important;
  display: inline-block;
}

#real3dflipbook-admin .options-sidebar .field-row {
  clear: both;
  margin-bottom: 10px;
  height: 20px;
  position: relative;
}
#real3dflipbook-admin .hidden {
  display: none !important;
}

#real3dflipbook-admin .real3dflipbooks-table tr {
  height: 45px;
}
#real3dflipbook-admin .ui-widget-content {
  border: none;
}
#real3dflipbook-admin .ui-tabs {
  /*padding:0;*/
  background: transparent;
}
/* tabs */
#real3dflipbook-admin .settings-area .ui-tabs-nav {
  /*padding: 0;*/
}
#real3dflipbook-admin .settings-area .ui-tabs-panel {
  /*padding: 0.5em 0;*/
}
#real3dflipbook-admin .settings-area .ui-tabs-panel input[type="text"] {
  width: 100%;

  max-width: 500px;
}
#real3dflipbook-admin .settings-area .ui-tabs-panel textarea {
  width: 100%;
  height: 300px;
}
#real3dflipbook-admin .settings-area .ui-widget-content {
  /* background: none; */
  /* border: none; */
  /* padding: 10px; */
  /* margin: 0; */
  /* background: #fff; */
  /* position: relative; */
  /* top: -88px; */
  /* left: 83px; */
  /* margin-right: 100px; */
}

#real3dflipbook-admin .settings-area img {
  border: 1px solid #999;
}

#real3dflipbook-admin .settings-area .page-img {
  height: 120px;
  display: inline-block;
}

#real3dflipbook-admin .settings-area .ui-state-active {
  /* background: #D9D9D9; */
  /* border-color: #aaa; */
}
#real3dflipbook-admin .settings-area .ui-widget-header {
  border: none;
}
#real3dflipbook-admin .settings-area .ui-tabs-nav {
  /*border-radius: 0;*/
  /*display: inline-block;*/
  /*margin-left: 10px;*/
  /* position: absolute; */
}

#real3dflipbook-admin .settings-area .ui-tabs-nav {
  /*border-radius: 0;*/
  /*display: inline-block;*/
  /*margin-left: 10px;*/
  /* position: absolute; */
  max-height: 31px;
}

#real3dflipbook-admin .tabs h4 {
  margin: 0;
  font-size: 12px;
}

#real3dflipbook-admin .tabs .ui-state-default {
  border-bottom: 1px solid #e4e4e4;
  /* background: #e4e4e4; */
  margin-bottom: 0;
}
#real3dflipbook-admin .tabs .ui-state-default a {
  padding: 6px 10px;
  font-weight: 700;
  font-size: 15px;
  line-height: 24px;
  background: #e2e2e2;
}

#real3dflipbook-admin .tabs .ui-state-active {
  border-bottom: 1px solid #f1f1f1;
  background: #f1f1f1;
  color: #000;
}
#real3dflipbook-admin .tabs .ui-state-active a {
  border-bottom: 1px solid #f1f1f1;

  background: #f1f1f1;

  color: #000;
}

#real3dflipbook-admin .ui-tabs-nav {
  background: none;
  border: none;

  border-bottom: 1px solid #ccc;
  padding-bottom: 0;
  padding-left: 10px;
}

#real3dflipbook-admin .page .page-title {
  margin: 0px;
  text-align: center;
  font-weight: 400;
  font-size: 10px;
  font-weight: 600;
  line-height: initial;
}

#real3dflipbook-admin .page .page-delete {
  position: absolute;
  top: 0px;
  right: 0px;
  /* padding: 2px; */
  width: 16px;
  color: #bc0b0b;
  font-size: 14px;
  visibility: hidden;
  pointer-events: none;
  background: #fff;
  text-align: center;
}

#real3dflipbook-admin .page .page-delete-visible {
  visibility: visible;
  pointer-events: auto;
}

#real3dflipbook-admin .page .page-edit {
  pointer-events: none;
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translate(-50%);
  visibility: hidden;
}

#real3dflipbook-admin .page .page-edit-visible {
  visibility: visible;
}

#real3dflipbook-admin .page .overlay {
  position: absolute;
  margin: 0;
  text-align: center;
  width: 100%;
  height: 135px;
  background: rgba(0, 0, 0, 0.3);
  top: 0;
  left: 0;
  color: #fff;
  opacity: 0;
  transition: all 0.3s;
  cursor: pointer;
  display: table;
}

#real3dflipbook-admin .page .edit {
  height: 100%;
  vertical-align: middle;
  display: table-cell;
}

#real3dflipbook-admin .page .edit:before {
  margin-top: -1px;
}

#real3dflipbook-admin .page .overlay:hover {
  opacity: 1;
}

#real3dflipbook-admin .unsaved {
  color: #f00;
}

#real3dflipbook-admin .nav-tab {
  cursor: pointer;
}

/*#real3dflipbook-admin .nav-tab-active{
    box-shadow:none;
}*/

.r3d-save-sticky {
  position: fixed;
  bottom: 0;
  right: 0;
  padding-right: 18px;
  background: rgba(255, 255, 255, 0.87);
  width: 100%;
  border-top: 1px solid #e0e0e0;
  z-index: 9999;
  margin: 0;
}

#r3d-save-holder {
  height: 58.5px;
  padding: 0;
  margin: 0;
}

#real3dflipbook-admin .toc-item {
  padding: 2px 10px;
  margin: 2px;
  background: #e5e5e5;
  border: 2px solid #ccc;
  border-radius: 4px;
}

#real3dflipbook-admin .toc-item-wrapper {
  /*    transition:all 300ms; */
}

#real3dflipbook-admin .toc-sub-item {
  margin-left: 40px;
  margin-right: 0;
  margin-top: 2px;
  margin-bottom: 2px;
}

#real3dflipbook-admin .toc-item:hover {
  border: 2px solid #bbb;
}

#real3dflipbook-admin .toc-controls span {
  font-size: 16px;
  padding: 5px;
  color: #000;
  opacity: 0.2;
  cursor: pointer;
}

#real3dflipbook-admin .toc-controls span:hover {
  opacity: 0.5;
}

#real3dflipbook-admin .toc-add-sub {
  margin: 0 10px;
}

#real3dflipbook-admin .toc-delete-all {
  color: #bc0b0b;
  margin-left: 10px;
}

#real3dflipbook-admin .toc-controls {
  float: right;
}

#real3dflipbook-admin #toc-items {
  max-width: 800px;
}

#real3dflipbook-admin td {
  vertical-align: top;
}

#real3dflipbook-admin .default-setting {
  margin-left: 10px;
  margin-top: 5px;
  font-size: 13px;
  font-style: italic;
  vertical-align: top;
  display: inline-block;
}

#real3dflipbook-admin .theme-img {
  /* box-shadow: 0 0 20px #00000066; */
  display: inline-block;
  height: 300px;
  margin: 10px;
  border: 4px solid transparent;
}

#real3dflipbook-admin .theme-img-active {
  border: 4px solid #0084bc;
}

#real3dflipbook-admin img {
  /*height:300px;*/
}

#edit-page-modal .hidden {
  display: none !important;
}

#edit-page-img {
  box-shadow: 0px 0px 1px #000;

  display: block;
  margin: 0 auto 16px;
  max-width: 100%;
  max-height: 90%;
  max-height: calc(100% - 42px);
  background-image:
    linear-gradient(
      45deg,
      #c3c4c7 25%,
      transparent 25%,
      transparent 75%,
      #c3c4c7 75%,
      #c3c4c7
    ),
    linear-gradient(
      45deg,
      #c3c4c7 25%,
      transparent 25%,
      transparent 75%,
      #c3c4c7 75%,
      #c3c4c7
    );
  background-position:
    0 0,
    10px 10px;
  background-size: 20px 20px;
}

.page-editor {
  position: absolute;
  overflow: auto;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  box-shadow: inset 0 4px 4px -4px rgb(0 0 0 / 10%);
}

.pdf-flipbook .page-editor .copy-page {
  display: none;
}

.pdf-flipbook .delete-pages-button {
  display: none;
}

.pdf-flipbook .paste-page {
  display: none;
}

.page-preview {
  float: left;
  width: calc(100% - 300px);
  height: 100%;
}

.page-preview .thumbnail {
  box-sizing: border-box;
  padding: 16px;
  height: 100%;
  max-height: 1000px;
}

.page-preview .attachment-actions {
  text-align: center;
}

.page-editor-sidebar {
  overflow: auto;
  box-sizing: border-box;
  margin-bottom: 0;
  padding: 12px 16px 0;
  width: 300px;
  height: 100%;
  box-shadow: inset 0 4px 4px -4px rgb(0 0 0 / 10%);
  border-bottom: 0;
  border-left: 1px solid #dcdcde;
  background: #f6f7f7;
}

.page-editor-sidebar .setting {
  margin-bottom: 10px;
}

.page-editor-sidebar .setting label {
  margin-bottom: 5px;
}

#edit-page-title {
  width: 100%;
}

#edit-page-caption {
  width: 100%;
}

.misc-pub-visibility {
  display: none;
}

#preview-action .preview {
  display: none;
}

.r3d_wrap {
  margin: 0 20px;
}
/*removeIf(!lite)*/
a.r3d-pro {
  /* opacity: 0.7; */
}

a.r3d-pro::after {
  content: "PRO";
  position: absolute;
  top: -4px;
  right: -10px;
  background: linear-gradient(180deg, #f8ce47, #edaf1e);
  color: #59430a;
  padding: 2px 7px;
  line-height: 1.4;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.6px;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

tr.r3d-pro th::before {
  content: "PRO";
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(180deg, #f8ce47, #edaf1e);
  color: #59430a;
  padding: 2px 7px;
  line-height: 1.4;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.6px;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  z-index: 3;
}

a.r3d-pro {
  position: relative;
  display: inline-block; /* so that the position: absolute of the pseudo element is relative to this link */
}

.r3d-pro-content input,
.r3d-pro-content select,
.r3d-pro-content textarea,
.r3d-pro-content .button-primary,
.r3d-pro-content .button-secondary,
.r3d-pro-content .alpha-color-picker-wrap,
.r3d-pro-content .postbox {
  pointer-events: none;
  opacity: 0.5;
}

.r3d-pro-content {
  position: relative;
}

/* mute text instead of fading the whole element, so the PRO badge
   (which sets its own colors) stays fully opaque */
.r3d-pro-content th,
.r3d-pro-content td,
.r3d-pro-content label,
.r3d-pro-content .description {
  color: #8c8f94;
}

.r3d-pro-box {
  cursor: pointer;
}
.r3d-pro-box .postbox-header {
  border-bottom: 0;
}
.r3d-pro-box .postbox-header h2 {
  color: #8c8f94;
}
.r3d-pro-box .r3d-mb-pro-badge {
  margin-right: 12px;
}
/*endRemoveIf(!lite)*/

.r3d_wrap .addons-banner-block-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px; /* This sets the gap between both rows and columns */
}

.r3d_wrap .addons-banner-block-item {
  background-color: #ffffff; /* Set background color to white */
  border: 1px solid #ddd; /* Add a subtle border */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Add a light shadow for depth */
  padding: 15px; /* Add some padding inside the boxes */
  text-align: center; /* Center the text inside the box */
  height: auto; /* Adjust height to be auto so that content dictates the height */
  margin-bottom: 20px; /* Ensure there's space at the bottom of each item */
}

/* Optional: Responsive adjustment for smaller screens */
@media (max-width: 768px) {
  .r3d_wrap .addons-banner-block-items {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 480px) {
  .r3d_wrap .addons-banner-block-items {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
  }
}

/* Menu buttons table */
.r3d-mb-table {
  max-width: 900px;
}
.r3d-mb-table th.r3d-mb-drag,
.r3d-mb-table td.r3d-mb-drag {
  width: 28px;
  text-align: center;
}
.r3d-mb-table td.r3d-mb-drag .dashicons {
  color: #a7aaad;
  cursor: move;
  font-size: 16px;
  width: 16px;
  height: 16px;
  line-height: 1;
  vertical-align: middle;
}
.r3d-mb-table td {
  vertical-align: middle;
}
.r3d-mb-table .r3d-mb-name {
  font-weight: 600;
  width: 26%;
}
.r3d-mb-table .r3d-mb-enabled {
  width: 10%;
}
.r3d-mb-table .r3d-mb-title input {
  width: 100%;
  max-width: 180px;
}
.r3d-mb-table .r3d-mb-pos select {
  max-width: 150px;
}
.r3d-mb-table .r3d-mb-more {
  width: 34px;
  text-align: center;
}
.r3d-mb-table .r3d-mb-more .dashicons {
  cursor: pointer;
  color: #787c82;
  font-size: 16px;
  width: 16px;
  height: 16px;
  line-height: 1;
  vertical-align: middle;
}
.r3d-mb-table tr.r3d-mb-extras > td {
  background: #f6f7f7;
}
.r3d-mb-table tr.r3d-mb-extras .form-table {
  margin: 0;
}
.r3d-mb-table tr.r3d-mb-locked {
  cursor: pointer;
}
.r3d-mb-table tr.r3d-mb-locked .r3d-mb-name {
  color: #8c8f94;
}
.r3d-mb-table tr.r3d-mb-locked .r3d-mb-pro-badge,
.r3d-pro-box .r3d-mb-pro-badge {
  display: inline-block;
  background: linear-gradient(180deg, #f8ce47, #edaf1e);
  color: #59430a;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.6px;
  line-height: 1.4;
  border-radius: 999px;
  padding: 2px 7px;
  margin-left: 8px;
  vertical-align: 1px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
.r3d-mb-table tr.ui-sortable-helper {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#real3dflipbook-admin .r3d-mb-table .r3d-mb-icon,
.r3d-mb-table .r3d-mb-icon {
  width: 16px;
  height: 16px;
  fill: #50575e;
  margin-right: 8px;
  vertical-align: -3px;
}
.r3d-mb-table .r3d-mb-icon-rev {
  transform: scaleX(-1);
}
.r3d-mb-table tr.r3d-mb-locked .r3d-mb-icon {
  fill: #8a8f94;
}

#r3d-lp {
  background: #fff;
  border: 1px solid #c3c4c7;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  margin: 0 0 20px;
  z-index: 30;
  transition: box-shadow 0.2s;
}
#r3d-lp.is-stuck {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 12px 28px rgba(0, 0, 0, 0.18);
}
#r3d-lp.is-side {
  position: sticky;
  top: 46px;
}
#r3d-lp.is-band {
  position: sticky;
  top: 32px;
  margin-top: 4px;
}
#r3d-lp .r3d-lp-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 8px 12px;
  border-bottom: 1px solid #dcdcde;
}
#r3d-lp .r3d-lp-head h2 {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.r3d-lp-eye {
  display: inline-grid;
  color: var(--wp-admin-theme-color, #2271b1);
}
.r3d-lp-eye svg {
  width: 18px;
  height: 18px;
}
.r3d-lp-eye svg + svg,
#r3d-lp.is-collapsed .r3d-lp-eye svg:first-child {
  display: none;
}
#r3d-lp.is-collapsed .r3d-lp-eye svg + svg {
  display: block;
}
.r3d-lp-switch {
  --r3d-lp-cell: 34px;
  box-sizing: border-box;
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--r3d-lp-cell);
  flex: none;
  height: 30px;
  padding: 2px;
  border-radius: 8px;
  background: #f0f0f1;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  isolation: isolate;
}
.r3d-lp-switch.r3d-lp-text {
  --r3d-lp-cell: 92px;
}
.r3d-lp-switch::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 2px;
  left: 2px;
  width: var(--r3d-lp-cell);
  height: 26px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14), 0 0 0 0.5px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s cubic-bezier(0.3, 0.7, 0.4, 1);
}
.r3d-lp-switch[data-index="1"]::before {
  transform: translateX(var(--r3d-lp-cell));
}
.r3d-lp-switch button {
  display: grid;
  place-items: center;
  width: var(--r3d-lp-cell);
  height: 26px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #757b82;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s;
}
.r3d-lp-switch button:hover,
.r3d-lp-switch button[aria-pressed="true"] {
  color: #1d2327;
}
.r3d-lp-switch button:focus-visible,
.r3d-lp-icon:focus-visible {
  outline: 2px solid var(--wp-admin-theme-color, #2271b1);
  outline-offset: 1px;
}
.r3d-lp-switch svg,
.r3d-lp-icon svg {
  width: 16px;
  height: 16px;
}
.r3d-lp-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: none;
  color: #757b82;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.r3d-lp-icon:hover {
  background: #f0f0f1;
  color: #1d2327;
}
#r3d-lp .r3d-lp-body {
  padding: 12px;
  background: #f6f7f7;
}
#r3d-lp .r3d-lp-stage {
  position: relative;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px #dcdcde;
}
#r3d-lp .r3d-lp-body.is-phone .r3d-lp-stage {
  margin-block: 6px;
  border-radius: 22px;
  box-shadow: 0 0 0 6px #1d2327;
}
#r3d-lp .r3d-lp-stage iframe {
  position: absolute;
  left: 0;
  top: 0;
  border: 0;
  background: #fff;
  transform-origin: 0 0;
}
#r3d-lp .r3d-lp-empty {
  display: none;
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 16px;
  place-items: center;
  background: #f6f7f7;
  color: #646970;
  font-size: 13px;
  text-align: center;
}
#r3d-lp .r3d-lp-stage.is-empty .r3d-lp-empty {
  display: grid;
}
#r3d-lp .r3d-lp-under {
  display: none;
  justify-content: center;
  margin-top: 14px;
}
#r3d-lp .r3d-lp-body.is-phone .r3d-lp-under {
  display: flex;
}
#r3d-lp .r3d-lp-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid #dcdcde;
}
#r3d-lp .r3d-lp-status {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  color: #646970;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
#r3d-lp .r3d-lp-status::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00a32a;
}
#r3d-lp .r3d-lp-status.is-busy::before {
  background: #dba617;
}
#r3d-lp .r3d-lp-status.is-dirty::before {
  background: var(--wp-admin-theme-color, #2271b1);
}
#r3d-lp.is-collapsed .r3d-lp-body,
#r3d-lp.is-collapsed .r3d-lp-foot,
#r3d-lp.is-collapsed .r3d-lp-devices,
#r3d-lp.is-collapsed .r3d-lp-large,
#r3d-lp.is-collapsed .r3d-lp-collapse,
#r3d-lp:not(.is-collapsed) .r3d-lp-show {
  display: none;
}
#r3d-lp.is-collapsed .r3d-lp-head {
  border-bottom: 0;
  cursor: pointer;
}
#r3d-lp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 160000;
  display: grid;
  place-items: center;
  padding: 28px;
}
#r3d-lp-lightbox .r3d-lp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 16, 20, 0.74);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  cursor: pointer;
}
#r3d-lp-lightbox .r3d-lp-box {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18), 0 28px 70px rgba(0, 0, 0, 0.45);
  animation: r3d-lp-in 0.18s ease-out;
}
@keyframes r3d-lp-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
#r3d-lp-lightbox .r3d-lp-box-head {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 12px 0 20px;
  border-bottom: 1px solid #e2e4e7;
}
#r3d-lp-lightbox .r3d-lp-title {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
#r3d-lp-lightbox .r3d-lp-eyebrow {
  color: #646970;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
#r3d-lp-lightbox .r3d-lp-title h1 {
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #1d2327;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}
#r3d-lp-lightbox .r3d-lp-chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  background: #edf7ee;
  color: #00701a;
  font-size: 12px;
  font-weight: 500;
}
#r3d-lp-lightbox .r3d-lp-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
#r3d-lp-lightbox .r3d-lp-chip.is-dirty {
  background: #f0f6fc;
  background: color-mix(in srgb, var(--wp-admin-theme-color, #2271b1) 8%, #fff);
  color: var(--wp-admin-theme-color-darker-20, #135e96);
}
#r3d-lp-lightbox .r3d-lp-sep {
  flex: none;
  width: 1px;
  height: 24px;
  margin: 0 2px;
  background: #e2e4e7;
}
#r3d-lp-lightbox .r3d-lp-hint {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  color: #757b82;
  font-size: 12px;
  white-space: nowrap;
}
#r3d-lp-lightbox .r3d-lp-hint kbd {
  margin: 0;
  padding: 3px 6px;
  border: 1px solid #d5d7da;
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #fff;
  color: #50575e;
  font: 500 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
#r3d-lp-lightbox .r3d-lp-close {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f0f0f1;
  color: #1d2327;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.1s;
}
#r3d-lp-lightbox .r3d-lp-close:hover {
  background: #dcdcde;
}
#r3d-lp-lightbox .r3d-lp-close:active {
  transform: scale(0.93);
}
#r3d-lp-lightbox .r3d-lp-close:focus-visible {
  outline: 2px solid var(--wp-admin-theme-color, #2271b1);
  outline-offset: 2px;
}
#r3d-lp-lightbox .r3d-lp-close svg {
  width: 18px;
  height: 18px;
}
#r3d-lp-lightbox .r3d-lp-box-stage {
  position: relative;
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #f0f0f1;
}
#r3d-lp-lightbox .r3d-lp-device {
  position: relative;
  flex: none;
}
#r3d-lp-lightbox .r3d-lp-device iframe {
  display: block;
  border: 0;
  background: #fff;
}
#r3d-lp-lightbox .r3d-lp-box-under {
  display: none;
}
#r3d-lp-lightbox .r3d-lp-box-stage.is-phone .r3d-lp-box-under {
  display: flex;
}
#r3d-lp-lightbox .r3d-lp-box-stage.is-phone .r3d-lp-device {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 0 0 7px #1d2327, 0 18px 40px rgba(0, 0, 0, 0.25);
}
#r3d-lp-lightbox .r3d-lp-box-stage.is-phone iframe {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
}
body.r3d-lp-open {
  overflow: hidden;
}
.r3d-publish-shortcode {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.r3d-publish-shortcode code {
  padding: 2px 6px;
  font-size: 12px;
}
.r3d-publish-shortcode .copy-shortcode {
  min-height: 26px;
  padding: 0 8px;
  font-size: 12px;
  line-height: 24px;
}
@media (min-width: 851px) {
  body.r3d-lp-active #poststuff #post-body.columns-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(300px, 34vw, 440px);
    column-gap: 20px;
    margin-right: 0;
  }
  body.r3d-lp-active #poststuff #post-body.columns-2 #post-body-content {
    grid-column: 1;
    grid-row: 1;
    float: none;
    width: auto;
    min-width: 0;
  }
  body.r3d-lp-active #poststuff #post-body.columns-2 #postbox-container-2 {
    grid-column: 1;
    grid-row: 2;
    float: none;
    width: auto;
  }
  body.r3d-lp-active #poststuff #post-body.columns-2 #postbox-container-1 {
    grid-column: 2;
    grid-row: 1 / span 2;
    float: none;
    width: auto;
    margin-right: 0;
  }
  body.r3d-lp-active #poststuff #post-body.columns-2 #side-sortables {
    width: auto;
  }
}
@media (max-width: 900px) {
  #r3d-lp-lightbox .r3d-lp-hint,
  #r3d-lp-lightbox .r3d-lp-sep {
    display: none;
  }
}
@media (max-width: 700px) {
  #r3d-lp-lightbox {
    padding: 12px;
  }
  #r3d-lp-lightbox .r3d-lp-chip {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .r3d-lp-switch::before,
  .r3d-lp-switch button,
  .r3d-lp-icon,
  #r3d-lp-lightbox .r3d-lp-close {
    transition: none;
  }
  #r3d-lp-lightbox .r3d-lp-box {
    animation: none;
  }
}
.r3d-pick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 8px 0 24px;
}
.r3d-pick-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 6px 6px 8px;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  background: none;
  color: #1d2327;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.r3d-pick-icons {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  max-width: 640px;
}
.r3d-pick-layouts {
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
  max-width: 780px;
  padding-top: 4px;
}
.r3d-pick-layouts .r3d-pick-item {
  align-items: center;
  gap: 8px;
  padding: 14px 6px 10px;
  text-align: center;
}
.r3d-pick-item svg {
  display: block;
  width: 66px;
  height: 45px;
  fill: currentColor;
}
.r3d-pick-item svg .f {
  fill: none;
  stroke: currentColor;
  stroke-opacity: 0.4;
}
.r3d-pick-item svg .p {
  fill-opacity: 0.16;
}
.r3d-pick-item svg .w {
  fill: #fff;
  fill-opacity: 0.85;
}
.r3d-pick-layouts .r3d-pick-item.is-selected {
  color: var(--wp-admin-theme-color, #2271b1);
}
.r3d-pick-layouts .r3d-pick-item.is-global::after {
  top: -9px;
  left: 8px;
}
.r3d-pick-layouts .r3d-pick-pro {
  top: -9px;
  right: 8px;
}
.r3d-pick-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.r3d-pick-label {
  padding: 0 2px;
  font-size: 13px;
  font-weight: 500;
}
.r3d-pick-item:hover {
  border-color: #8c8f94;
}
.r3d-pick-item:focus-visible {
  outline: 2px solid var(--wp-admin-theme-color, #2271b1);
  outline-offset: 2px;
}
.r3d-pick-item.is-selected {
  border-color: var(--wp-admin-theme-color, #2271b1);
  box-shadow: 0 0 0 1px var(--wp-admin-theme-color, #2271b1);
}
.r3d-pick-item.is-global::after {
  content: "Global";
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--wp-admin-theme-color, #2271b1);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}
.r3d-pick-pro {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8ce47, #edaf1e);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  color: #59430a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  line-height: 1.4;
}
.r3d-pick-reset {
  grid-column: 1 / -1;
  justify-self: start;
}
#r3d-mb-box {
  margin-top: 4px;
}
#r3d-mb-box .inside {
  margin: 0;
  padding: 0;
}
.r3d-mb-table .r3d-mb-title input {
  min-width: 110px;
}
.r3d-mb-table .r3d-mb-enabled select,
.r3d-mb-table .r3d-mb-tools select {
  max-width: 130px;
}
.r3d-mb-table.is-preset .r3d-mb-pos {
  opacity: 0.45;
  pointer-events: none;
}
.r3d-pick-note {
  margin: -12px 0 20px;
}
