.ipp-full-width {
  width: 100%;
  max-width: 600px;
}

.wh_error {
  color: red;
}
.wh_connected {
  color: green;
}

th:empty {
  display: none;
}

/* Template Settings */

.ipp-select-template {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 0.5rem;
}

.ipp-template-box {
  position: relative;
  box-shadow: 0 1px 1px -1px rgba(0, 0, 0, 0.1);
  width: 300px;
  height: 350px;
  overflow: hidden;
}

.ipp-select-template input[type="radio"] {
  opacity: 0;
  position: absolute;
  pointer-events: none;
  bottom: 8px;
  right: 0;
}

.ipp-select-template input:active + label {
  opacity: 0.9;
}
.ipp-select-template input:checked + label {
  -webkit-filter: none;
  -moz-filter: none;
  filter: none;
}

.ipp-template-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  z-index: -1;
}

.ipp-select-template label {
  cursor: pointer;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  -webkit-transition: all 100ms ease-in;
  -moz-transition: all 100ms ease-in;
  transition: all 100ms ease-in;
  border: 1px solid #dcdcde;
  z-index: 1;
}

.ipp-select-template label .ipp-select-template-name {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  padding: 12px 0;
}

.ipp-select-template input:checked + label .ipp-select-template-name {
  background: #333;
}

.ipp-select-template label .ipp-select-template-name span {
  padding: 0 12px;
  font-size: 13px;
  color: #2e2e2e;
}

.ipp-select-template input:checked + label .ipp-select-template-name span {
  color: #fff;
}

.ipp-select-template label:hover {
  -webkit-filter: brightness(1.2) grayscale(0.5) opacity(0.9);
  -moz-filter: brightness(1.2) grayscale(0.5) opacity(0.9);
  filter: brightness(1.2) grayscale(0.5) opacity(0.9);
}

/* Palace Property Gallery */

/* Admin Gallery Styles */
#integrate_palace_gallery {
  margin: 10px 0;
}

#integrate_palace_gallery ul.gallery {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

#integrate_palace_gallery ul.gallery li {
  display: inline-block;
  margin: 5px;
  position: relative;
  height: 150px;
  width: 150px;
  overflow: hidden;
  border: none;
  border-radius: 4px;
}

#ipp_gallery ul.gallery li img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  border: none;
}

#integrate_palace_gallery ul.gallery li .remove_image {
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  min-height: 30px;
  background: #d9534f;
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  margin: 3px;
  padding: 0;
  line-height: 1;
  text-align: center;
  opacity: 0;
}

#integrate_palace_gallery ul.gallery li:hover .remove_image {
  background: #c9302c;
  opacity: 1;
}

.attachment.ipp-selected-gallery {
  box-shadow: 0 0 0 3px #fff inset, 0 0 0 7px #0073aa inset !important;
}

.attachment.ipp-selected-gallery .thumbnail {
  opacity: 0.25 !important;
}

.attachment.ipp-selected-gallery .check {
  display: none !important;
}

.attachment.ipp-selected-gallery .attachment-preview:before {
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
  position: relative;
}

/* palace property metabox */

.ipp-postbox > .inside {
  margin: 0 !important;
  padding: 0 !important;
}

#integrate_palace_data_fields .integrate_palace_field_box {
  position: relative;
  margin: 0;
  padding: 16px;
  border-top-width: 1px;
  border-top-style: solid;
  border-top-color: #eaecf0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

#integrate_palace_data_fields .integrate_palace_field_box:first-child {
  border-top: none;
  margin-top: 0;
}

#integrate_palace_data_fields .integrate_palace_field_group {
  border: #ccd0d4 solid 1px;
  background: #fff;
}

#integrate_palace_data_fields .integrate_palace_field_label {
  vertical-align: top;
  margin: 0 0 10px;
}

#integrate_palace_data_fields .integrate_palace_field_label label {
  display: block;
  font-weight: 500;
  margin: 0 0 3px;
  padding: 0;
}

#ipp_data_fields .ipp_field_input input {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  font-size: 14px;
  line-height: 1.4;
}

#ipp_data_fields .ipp_field_input textarea {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  font-size: 14px;
  line-height: 1.4;
}

#ipp_data_fields .ipp_field_input textarea {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  font-size: 14px;
  line-height: 1.4;
}

#integrate_palace_data_fields .integrate_palace_field_col_2 {
  grid-template-columns: repeat(2, 1fr);
}

#integrate_palace_data_fields .integrate_palace_field_col_3 {
  grid-template-columns: repeat(3, 1fr);
}

#integrate_palace_data_fields .integrate_palace_field_col_4 {
  grid-template-columns: repeat(4, 1fr);
}

#integrate_palace_data_fields .integrate_palace_field_col_3_2 {
  grid-template-columns: calc(25% - 5px) calc(50% - 30px) calc(25% - 5px);
}

@media only screen and (max-width: 768px) {
  #integrate_palace_data_fields .integrate_palace_field_col_3 {
    grid-template-columns: repeat(2, 1fr);
  }

  #integrate_palace_data_fields .integrate_palace_field_col_4 {
    grid-template-columns: repeat(2, 1fr);
  }

  #integrate_palace_data_fields .integrate_palace_field_col_1_2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 425px) {
  #integrate_palace_data_fields .integrate_palace_field_col_3,
  #integrate_palace_data_fields .integrate_palace_field_col_4,
  #integrate_palace_data_fields .integrate_palace_field_col_1_2 {
    grid-template-columns: auto;
  }
}
