.ioh-wrap{
  max-width:1440px;
  margin:20px 20px 40px 0;
  color:#101828;
}

.ioh-wrap,
.ioh-wrap input,
.ioh-wrap select,
.ioh-wrap textarea,
.ioh-wrap button{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

body.toplevel_page_ioh-office-hours #wpcontent{
  background:#f2f2f2;
}

.ioh-admin-banner{
  background:#102f4d;
  color:#fff;
  border-radius:6px;
  padding:14px 18px;
  margin:0 0 22px;
  box-shadow:0 1px 0 rgba(16,24,40,.04);
}

.ioh-admin-banner a{
  color:#fff;
}

.ioh-admin-tabs{
  display:flex;
  gap:26px;
  align-items:center;
  border-bottom:1px solid #d0d7de;
  margin:0 0 22px;
}

.ioh-admin-tabs a{
  position:relative;
  display:inline-flex;
  align-items:center;
  min-height:42px;
  color:#0f172a;
  font-size:13px;
  font-weight:600;
  letter-spacing:.01em;
  text-decoration:none;
  text-transform:uppercase;
}

.ioh-admin-tabs a:hover,
.ioh-admin-tabs a:focus{
  color:#005fcc;
  box-shadow:none;
}

.ioh-admin-tabs a.is-active{
  color:#005fcc;
}

.ioh-admin-tabs a.is-active::after{
  content:"";
  position:absolute;
  right:0;
  bottom:-1px;
  left:0;
  height:2px;
  background:#005fcc;
}

.ioh-wrap .notice{
  margin:0 0 18px;
}

.ioh-wrap .ioh-grid{
  display:grid;
  grid-template-columns:360px minmax(0,1fr);
  gap:18px;
  align-items:start;
}

.ioh-main-column{
  grid-column:2;
  display:flex;
  flex-direction:column;
  gap:18px;
  min-width:0;
}

.ioh-popup-location-card,
.ioh-edit-location-card,
#ioh_scan_results_card{
  grid-column:auto;
}

#ioh_scan_results_card{
  overflow:hidden;
}

.ioh-card,
.ioh-section-card,
.ioh-shortcode-generator{
  background:#fff;
  border:1px solid #d0d7de;
  border-radius:6px;
  box-shadow:0 1px 0 rgba(16,24,40,.03);
}

.ioh-card{
  padding:0;
  overflow:hidden;
}

.ioh-card > form,
.ioh-card > p,
.ioh-card > .ioh-loc-list,
.ioh-card > .ioh-copy-row,
.ioh-card > .ioh-api-example,
.ioh-card > ul,
.ioh-card > label,
.ioh-card > div:not(.ioh-card-head):not(.notice){
  margin-right:16px;
  margin-left:16px;
}

.ioh-card > form:first-of-type,
.ioh-card > p:first-of-type{
  margin-top:16px;
}

.ioh-card > form:last-child,
.ioh-card > .ioh-copy-row:last-child,
.ioh-card > ul:last-child{
  margin-bottom:16px;
}

.ioh-card-head,
.ioh-section-head{
  background:#edf4fa;
  border-bottom:1px solid #d0d7de;
  padding:14px 16px;
}

.ioh-card-head h2,
.ioh-section-head h3{
  margin:0;
  color:#0f172a;
  font-size:18px;
  line-height:1.25;
}

.ioh-card-head p,
.ioh-section-head p{
  margin:5px 0 0;
  color:#344054;
  font-size:13px;
}

.ioh-section-card,
.ioh-shortcode-generator{
  margin:16px;
  padding:0 16px 16px;
  overflow:hidden;
}

.ioh-section-card > .ioh-section-head{
  margin:0 -16px 16px;
}

.ioh-shortcode-generator{
  padding-top:14px;
}

.ioh-shortcode-generator h3{
  margin:0 0 8px;
}

.ioh-row{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.ioh-label{
  display:block;
  font-weight:700;
  margin:12px 0 6px;
  color:#111827;
}

.ioh-muted{
  display:block;
  font-size:12px;
  color:#667085;
}

.ioh-loc-list{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:8px;
  padding-bottom:16px;
}

.ioh-loc-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:10px;
  border:1px solid #d0d7de;
  border-radius:6px;
  background:#fff;
}

.ioh-loc-item.is-active{
  border-color:#2271b1;
  background:#f4f9ff;
}

.ioh-loc-item a{
  text-decoration:none;
}

.ioh-inline{
  margin:0;
}

.ioh-scan-link-actions{
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:stretch;
}

.ioh-scan-link-actions .button{
  box-sizing:border-box;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100%;
  height:34px;
  min-height:34px;
  padding:0 10px !important;
  line-height:1.15 !important;
  white-space:normal;
  text-align:center;
}

.ioh-scan-controls{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.ioh-scan-controls .description{
  flex-basis:100%;
}

.ioh-scan-status{
  color:#344054;
  font-size:13px;
  font-weight:600;
}

.ioh-bulk-replace-bar{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin:16px 16px 0;
  padding:12px;
  background:#f8fafc;
  border:1px solid #d0d7de;
  border-radius:6px;
}

.ioh-bulk-replace-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.ioh-bulk-replace-options{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:10px;
  align-items:end;
}

.ioh-bulk-replace-options label{
  display:block;
  margin:0;
  font-size:12px;
  font-weight:600;
  color:#344054;
}

.ioh-bulk-replace-options input,
.ioh-bulk-replace-options select{
  width:100%;
  min-height:30px;
  margin-top:3px;
}

.ioh-bulk-replace-bar > .button{
  justify-self:start;
}

.ioh-scan-loading{
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:420px;
  margin:16px;
  padding:28px;
  border:1px solid #d0d7de;
  border-radius:6px;
  background:#fff;
}


.ioh-shortcode-copy-row{
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:center;
}

.ioh-shortcode-copy-row input{
  width:100%;
}

.ioh-shortcode-copy-row .button{
  min-width:110px;
}

.ioh-shortcode-preview-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  margin-top:16px;
}

.ioh-shortcode-preview-label{
  margin:0 0 8px;
  color:#344054;
  font-weight:700;
}

.ioh-shortcode-preview{
  box-sizing:border-box;
  width:100%;
  max-width:560px;
  min-height:72px;
  padding:14px 16px;
  border:1px solid #d0d7de;
  border-radius:6px;
  background:#fff;
  font-family:"Raleway", sans-serif;
  line-height:1.4;
}

.ioh-shortcode-preview.is-list-preview .ioh-preview-title{
  margin:0 0 10px;
  font-weight:700;
  letter-spacing:.02em;
}

.ioh-shortcode-preview.is-list-preview .ioh-preview-row{
  display:flex;
  gap:10px;
  align-items:baseline;
  justify-content:space-between;
  padding:4px 0;
}

.ioh-shortcode-preview.is-list-preview .ioh-preview-row > div:first-child{
  flex:0 0 auto;
}

.ioh-shortcode-preview.is-list-preview .ioh-preview-row > div:last-child{
  flex:1 1 auto;
  min-width:0;
  text-align:right;
}

.ioh-shortcode-preview.is-list-preview .ioh-preview-row span,
.ioh-shortcode-preview.is-sidebar-preview .ioh-preview-sidebar-row span{
  display:block;
}

.ioh-shortcode-preview.is-sidebar-preview{
  text-align:center;
  line-height:20px;
}

.ioh-shortcode-preview.is-sidebar-preview .ioh-preview-sidebar-title{
  margin:0 0 16px;
  font-weight:700;
  line-height:1.25;
}

.ioh-shortcode-preview.is-sidebar-preview .ioh-preview-sidebar-row{
  margin:14px 0;
}

.ioh-shortcode-preview.is-sidebar-preview hr{
  width:calc(100% - 100px);
  min-width:80px;
  height:1px;
  margin:5px auto;
  border:0;
  background:#ccc;
}

.ioh-shortcode-preview.is-compact-preview div{
  margin:0 0 2px;
}

@media (max-width: 520px){
  .ioh-shortcode-preview.is-list-preview .ioh-preview-row{
    flex-direction:column;
    align-items:flex-start;
  }

  .ioh-shortcode-preview.is-list-preview .ioh-preview-row > div:last-child{
    text-align:left;
  }
}
.ioh-scan-loading img{
  display:block;
  width:min(100%,520px);
  height:auto;
}

.ioh-scan-table-wrap{
  margin:16px;
}

.ioh-scan-table{
  table-layout:fixed;
  width:100%;
  margin:0;
  border:1px solid #d0d7de;
  font-size:12px;
}

.ioh-scan-table th,
.ioh-scan-table td{
  box-sizing:border-box;
  padding:8px 10px;
  vertical-align:top;
  overflow-wrap:anywhere;
}

.ioh-scan-table th{
  overflow-wrap:normal;
  word-break:normal;
}

.ioh-scan-col-area{
  width:14%;
}

.ioh-scan-col-type{
  width:12%;
}

.ioh-scan-col-style{
  width:9%;
}

.ioh-scan-col-links{
  width:120px;
}

.ioh-scan-col-text{
  width:auto;
}

.ioh-scan-table th:nth-child(1),
.ioh-scan-table td:nth-child(1){
  overflow-wrap:break-word;
}

.ioh-scan-excerpt span{
  display:block;
  max-height:none;
  overflow:visible;
  overflow-wrap:anywhere;
  word-break:normal;
  line-height:1.5;
}

.ioh-scan-table tr.is-replaced td{
  background:#f1f5f9;
  color:#667085;
}

.ioh-scan-table tr.is-replaced .ioh-scan-link-actions a{
  opacity:1;
}

.ioh-replaced-note{
  grid-column:1 / -1;
  margin-top:6px;
  padding:8px 10px;
  border:1px solid #cbd5e1;
  border-radius:6px;
  background:#fff;
  color:#475467;
  font-weight:700;
}

.ioh-top-option-row{
  margin:0 0 14px;
  padding:14px;
  background:#f8fafc;
  border:1px solid #d0d7de;
  border-radius:6px;
}

.ioh-option-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(220px,1fr));
  gap:10px 18px;
  align-items:start;
}

.ioh-option-check{
  display:flex;
  gap:8px;
  align-items:flex-start;
  margin:0;
  color:#1f2937;
  font-weight:600;
  line-height:1.35;
}

.ioh-option-check input[type="checkbox"]{
  margin:1px 0 0;
  flex:0 0 auto;
}

.ioh-option-check-wide{
  grid-column:1 / -1;
}

.ioh-top-option-row .description{
  margin:10px 0 0;
  color:#667085;
}

.ioh-replace-form{
  display:grid;
  grid-template-columns:1fr;
  gap:6px;
  align-items:end;
  margin:0;
}

.ioh-replace-form label{
  display:block;
  margin:0;
  font-size:12px;
  font-weight:600;
  color:#344054;
}

.ioh-replace-form input,
.ioh-replace-form select{
  width:100%;
  min-height:28px;
  margin-top:3px;
}

.ioh-replace-actions{
  grid-column:1 / -1;
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:2px;
}

.ioh-replace-actions .button{
  width:100%;
  white-space:normal;
  line-height:1.25;
  min-height:34px;
}

.ioh-hours-table{
  border:1px solid #d0d7de;
  border-radius:6px;
  overflow:hidden;
}

.ioh-hours-table th{
  color:#475467;
  font-weight:700;
}

.ioh-hours-table input[type="time"]{
  width:120px;
}

.ioh-range{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}

.ioh-copy-row{
  display:flex;
  gap:8px;
  align-items:center;
}

.ioh-copy-row input,
.ioh-copy-row textarea{
  flex:1 1 auto;
}

.ioh-popup-control-row{
  display:grid;
  gap:12px;
  align-items:end;
  margin:8px 0;
}

.ioh-popup-schedule-row{
  grid-template-columns:repeat(2,minmax(220px,350px));
}

.ioh-popup-style-row{
  grid-template-columns:minmax(220px,350px) minmax(150px,1fr) minmax(170px,1fr);
  max-width:820px;
}

.ioh-popup-control-row label{
  display:block;
  margin:0;
}

.ioh-popup-control-row input[type="text"],
.ioh-popup-control-row input[type="datetime-local"]{
  width:100%;
  max-width:100%;
  margin-top:4px;
}

.ioh-popup-color-controls{
  display:flex;
  gap:8px;
  align-items:center;
  margin-top:4px;
}

.ioh-popup-color-controls input[type="color"]{
  flex:0 0 auto;
  width:50px;
  min-height:34px;
}

.ioh-popup-color-controls input[type="text"]{
  width:100px;
  text-transform:uppercase;
}

.ioh-popup-toolbar{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  align-items:center;
  margin:8px 0;
  padding:8px;
  border:1px solid #d0d7de;
  border-radius:6px;
  background:#f8fafc;
}

.ioh-popup-toolbar .button{
  min-height:32px;
  padding:4px 10px;
}

.ioh-popup-toolbar select{
  width:auto;
  min-width:92px;
}

.ioh-popup-rich-editor{
  box-sizing:border-box;
  width:100%;
  min-height:180px;
  overflow:hidden;
  resize:none;
  border:1px solid #cbd5e1;
  border-radius:6px;
  padding:10px;
  background:#fff;
  color:#111827;
  line-height:1.5;
  text-align:center;
}

.ioh-popup-rich-editor:focus{
  border-color:#2271b1;
  box-shadow:0 0 0 1px #2271b1;
  outline:2px solid transparent;
}

.ioh-popup-rich-editor p{
  margin:0 0 10px;
}

.ioh-popup-rich-editor img{
  display:block;
  max-width:100%;
  height:auto;
  margin:10px auto 0;
}

.ioh-popup-rich-editor iframe{
  display:block;
  max-width:100%;
  margin:10px auto 0;
}

.ioh-popup-rich-editor img.is-selected{
  outline:3px solid rgba(34,113,177,.35);
  outline-offset:3px;
}

.ioh-popup-image-tools{
  display:none;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:8px;
  padding:8px;
  border:1px solid #d0d7de;
  border-radius:6px;
  background:#fff;
}

.ioh-popup-image-tools.is-visible{
  display:flex;
}

.ioh-popup-image-tools input[type="range"]{
  width:180px;
}

.ioh-popup-html-textarea{
  width:100%;
  min-height:180px;
  overflow:hidden;
  resize:none;
  font-family:Consolas,Monaco,monospace;
}

.ioh-api-example{
  overflow:auto;
  max-width:100%;
  background:#f8fafc;
  border:1px solid #d0d7de;
  border-radius:6px;
  padding:12px;
  white-space:pre;
}

.ioh-wrap input[type="text"],
.ioh-wrap input[type="time"],
.ioh-wrap input[type="datetime-local"],
.ioh-wrap select,
.ioh-wrap textarea{
  border-color:#cbd5e1;
  border-radius:6px;
}

.ioh-wrap .button,
.ioh-wrap .button-primary{
  border-radius:6px;
}

.ioh-replace-failed-note{
  color:#b42318;
}

@media (max-width:1100px){
  .ioh-wrap .ioh-grid{
    grid-template-columns:1fr;
  }

  .ioh-main-column,
  .ioh-edit-location-card,
  .ioh-popup-location-card,
  #ioh_scan_results_card{
    grid-column:auto;
  }
}

@media (max-width:782px){
  .ioh-admin-tabs{
    gap:18px;
    overflow-x:auto;
  }

  .ioh-copy-row{
    align-items:stretch;
    flex-direction:column;
  }

  .ioh-popup-schedule-row,
  .ioh-popup-style-row{
    grid-template-columns:1fr;
    max-width:none;
  }
}
