/*------------------------
// Global Styles
------------------------------------*/

.in-sub-panel
  #customize-theme-controls
  .customize-pane-child.current-panel-parent,
#customize-theme-controls .customize-pane-child.current-section-parent {
  -webkit-transform: translateX(-100%);
  -ms-transform: translateX(-100%);
  transform: translateX(-100%);
}

.control-section-integrate_palace_section.open {
  min-height: 100vh !important;
}

.control-section-integrate_palace_section .ipp-control-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.control-section-integrate_palace_section .customize-control-title {
  margin-bottom: 1rem;
}

.ipp-title-wrapper .customize-control-title {
  display: inline-block;
  margin-bottom: 16px;
  vertical-align: middle;
  line-height: 1;
}

.control-section-integrate_palace_section .ipp-heading-wrapper {
  margin: 0 -24px;
}

.ipp-heading-wrapper .customize-control-title {
  display: block;
  padding: 15px 24px;
  margin: 0;
  border-width: 1px 0;
  border-style: solid;
  border-color: #d1d5db;
  background-color: #fff;
  color: #1e293b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1;
  text-transform: uppercase !important;
}

.control-section-integrate_palace_section .ipp-number-single {
  display: flex;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  background-color: #fff;
  width: 96px;
}

.control-section-integrate_palace_section
  .ipp-number-single
  .dashicon.dashicons {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #676879;
  font-size: 10px;
  padding: 0.5em;
  cursor: pointer;
}

.control-section-integrate_palace_section
  .ipp-number-single
  .ipp-number-control
  input[type="number"],
.control-section-integrate_palace_section
  .ipp-number-single
  .ipp-number-control
  input[type="number"]:focus {
  -moz-appearance: textfield;
  text-align: center;
  outline: 0;
  box-shadow: none;
  border: 0;
}

.control-section-integrate_palace_section
  .ipp-number-control
  input::-webkit-outer-spin-button,
.control-section-integrate_palace_section
  .ipp-number-control
  input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.control-section-integrate_palace_section .customize-control select {
  margin-top: 3px;
}

.control-section-integrate_palace_section .ipp-top-divider {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #d1d5db;
}

.control-section-integrate_palace_section .ipp-top-dotted-divider {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px dashed #d1d5db;
}

.control-section-integrate_palace_section .ipp-bottom-divider {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #d1d5db;
}

.control-section-integrate_palace_section .ipp-bottom-dotted-divider {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px dashed #d1d5db;
}

.control-section-integrate_palace_section .title-bottom-border_dotted {
  padding-bottom: 1rem;
  border-bottom: 1px dashed #d1d5db;
}

.customize-control-ipp-radio-image input + label .ipp-tooltip {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.control-section-integrate_palace_section .ipp-tooltip[data-tooltip]::after {
  content: attr(data-tooltip);
  min-width: 3em;
  max-width: 21em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 1ch 1.5ch;
  border-radius: 0.3ch;
  box-shadow: 0 1em 2em -0.5em rgba(0, 0, 0, 0.35);
  background: #1e293b;
  color: #fff;
  z-index: 9;
  bottom: calc(100% + 5px);
  text-align: center;
  animation: tooltips-tp 0.3s ease-out forwards;
  text-transform: none;
  font-size: 0.9em;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  position: absolute;
  display: none;
  opacity: 0;
  left: 50%;
  transform: translate(-50%, -0.5em);
}

.control-section-integrate_palace_section
  .ipp-tooltip[data-tooltip]:hover::after {
  display: block;
}

@keyframes tooltips-tp {
  0% {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
  100% {
    opacity: 0.9;
    transform: translate(-50%, 0);
  }
}

/* Color Picker */

.customize-control-ipp-color-picker .ipp-color-picker-wrapper {
  position: relative;
}

.customize-control-ipp-color-picker .color-picker-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.customize-control-ipp-color-picker .color-picker-row {
  display: flex;
}

.customize-control-ipp-color-picker .color-picker-row .color-label {
  flex-grow: 1;
  font-weight: normal;
  margin-right: 10px;
  align-self: center;
}

.customize-control-ipp-color-picker .color-picker-set {
  display: flex;
  gap: 10px;
}

.customize-control-ipp-color-picker .color-picker-set .wp-color-result {
  width: 30px !important;
  height: 30px !important;
  border-radius: 100% !important;
}

.customize-control-ipp-color-picker .color-picker-set .color-alpha {
  width: 28px !important;
  height: 28px !important;
  border-radius: 100% !important;
}

.customize-control-ipp-color-picker .color-picker-set {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.customize-control-ipp-color-picker .wp-picker-active .ipp-picker-container {
  position: absolute;
  left: 0;
  background: #fff;
  border-radius: 4px;
  padding: 10px;
  box-shadow: 0 8px 16px -4px rgba(30, 41, 59, 0.16);
  z-index: 9;
}

.customize-control-ipp-color-picker
  .wp-picker-active
  span.wp-picker-input-wrap {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.customize-control-ipp-color-picker .wp-picker-container {
  position: relative;
}

.customize-control-ipp-color-picker .wp-picker-container.wp-picker-active {
  position: unset;
}

.customize-control-ipp-color-picker .wp-picker-container[data-tooltip]::after {
  content: attr(data-tooltip);
  min-width: 3em;
  max-width: 21em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 1ch 1.5ch;
  border-radius: 0.3ch;
  box-shadow: 0 1em 2em -0.5em rgba(0, 0, 0, 0.35);
  background: #1e293b;
  color: #fff;
  z-index: 9;
  bottom: calc(100% + 5px);
  text-align: center;
  animation: tooltips-tp 0.3s ease-out forwards;
  text-transform: none;
  font-size: 0.9em;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  position: absolute;
  display: none;
  opacity: 0;
  left: 50%;
  transform: translate(-50%, -0.5em);
}

.customize-control-ipp-color-picker
  .wp-picker-container[data-tooltip]:hover::after {
  display: block;
}

.customize-control-ipp-color-picker
  .wp-picker-container.wp-picker-active[data-tooltip]:hover::after {
  display: none;
}

/*------------------------
// Section Tabs
------------------------------------*/

.ipp-section-tabs {
  display: -webkit-box;
  display: flex;
  margin-top: -15px;
  margin-left: -24px;
  margin-right: -24px;
  padding: 0;
  margin-bottom: 0;
  border: 1px solid #d1d5db;
  background: #fff;
  margin-bottom: 0;
}

.ipp-section-tabs .ipp-heading-tabs-button {
  -webkit-box-flex: 1;
  flex: 1 1 0;
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  font-style: normal;
  text-transform: uppercase;
  height: 40px;
  margin: 0;
  box-sizing: content-box;
  padding: 0 10px;
  cursor: pointer;
  border: 0;
  background: transparent;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: #9ca3af;
}

.ipp-section-tabs .ipp-heading-tabs-button.nav-tab-active {
  border-bottom-color: #0284c7;
  color: #4b5563;
}

.ipp-section-tabs .ipp-heading-tabs-button:focus {
  outline: 0;
  box-shadow: none;
}

/*------------------------
// Typography
------------------------------------*/

.ipp-fs-toggle-icon {
  right: 16px;
  position: absolute;
  width: 18px;
  height: 18px;
  font-size: 18px;
  border-radius: 2px;
  padding: 4px;
  color: #4b5563;
  background: #fff;
  cursor: pointer;
}

.ipp-fs-toggle-icon:before {
  content: "\f464";
}

.ipp-fs-toggle-icon.open:before {
  content: "\f158";
}

.ipp-field-settings-wrap {
  position: relative;
  -webkit-box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  -webkit-border-radius: 3px;
}

.ipp-field-settings-wrap .ipp-field-settings-modal {
  margin-top: 10px;
  margin-bottom: 20px;
  padding: 1rem 1rem 2rem 1rem;
  position: absolute;
  -webkit-box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  -webkit-border-radius: 3px;
  border-radius: 3px;
  left: 0;
  right: 0;
  z-index: 8;
  background-color: #fff;
}

.ipp-field-settings-modal .customize-control {
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

.ipp-field-settings-wrap .ipp-field-settings-modal .customize-control-title {
  margin-bottom: 10px;
  font-size: 13px;
  margin-top: 3px;
}

.ipp-typo-slider-wrap {
  position: relative;
}

.ipp-typo-slider-wrap > label {
  display: inline-block;
}

.ipp-typo-slider-wrap .ipp-responsive-slider-btns {
  position: relative;
  top: 0;
  right: -10px;
  display: inline-block;
}

.ipp-typo-slider-wrap .ipp-responsive-slider-btns > li {
  margin-bottom: 0;
  display: none;
}

.ipp-typo-slider-wrap .ipp-responsive-slider-btns > li.active {
  display: inline-block;
}

.ipp-typo-slider-wrap .ipp-responsive-slider-btns button[type="button"] {
  padding: 0;
  cursor: pointer;
  background: 0 0;
  border: none;
  outline: 0;
  line-height: 1;
}

.ipp-typo-slider-wrap .ipp-responsive-units {
  position: absolute;
  top: 4px;
  right: 15px;
  font-size: 11px;
  line-height: normal;
  padding-right: 5px;
  text-transform: uppercase;
  width: auto;
  display: none;
}

.ipp-typo-slider-wrap .ipp-responsive-units.active {
  display: flex;
}

.ipp-typo-slider-wrap .ipp-responsive-units li.single-unit {
  display: inline-block;
  margin-left: 6px;
  margin-bottom: 0;
  width: 16px;
  text-align: center;
  user-select: none;
  opacity: 0.6;
  cursor: pointer;
}

.ipp-typo-slider-wrap .ipp-responsive-units li.single-unit.active {
  opacity: 1;
  font-weight: 600;
  color: #0073aa;
  cursor: default;
}

.customize-control .ipp-reset-btn .dashicons-image-rotate {
  width: 12px;
  height: 12px;
  font-size: 12px;
}

.ipp-resp-slider-reset-wrap {
  position: absolute;
  display: inline-block;
  line-height: 1;
  right: -8px;
  top: 3px;
}

.ipp-typo-slider-wrap .ipp-reset-btn {
  color: #006ba1;
  height: 20px;
  width: 20px;
  padding: 4px;
  border: 0;
  background: 0 0;
  box-shadow: none !important;
  cursor: pointer;
}

/*------------------------
// Spacing
------------------------------------*/

.control-section-integrate_palace_section .ipp-spacing-wrapper {
  display: flex;
  gap: 5px;
}

.control-section-integrate_palace_section
  .ipp-spacing-wrapper
  .ipp-spacing-input-item {
  text-align: center;
  -webkit-box-flex: 1;
  -ms-flex: auto;
  flex: auto;
  cursor: text;
}

.control-section-integrate_palace_section
  .ipp-spacing-input-item
  .ipp-spacing-input {
  text-align: center;
  display: block;
  font-size: 12px;
  padding: 15px 0;
  width: 100%;
  height: 28px;
  border-width: 1px;
  border-style: solid;
  border-color: #fff;
  border-radius: 3px;
  box-shadow: none;
  transition: all 0.3s;
}

.control-section-integrate_palace_section
  .ipp-spacing-input-item
  .ipp-spacing-input:hover {
  border-color: #0284c7;
}

.control-section-integrate_palace_section
  .ipp-spacing-input-item
  .ipp-spacing-title {
  text-transform: uppercase;
  font-size: 10px;
  color: #9ca3af;
  cursor: text;
}

.control-section-integrate_palace_section
  .ipp-spacing-input-item-uniform
  .ipp-spacing-connected {
  display: none;
}

.control-section-integrate_palace_section
  .ipp-spacing-input-item-uniform.connected
  .ipp-spacing-connected {
  display: block;
}

.control-section-integrate_palace_section
  .ipp-spacing-input-item-uniform.connected
  .ipp-spacing-disconnected {
  display: none;
}

.control-section-integrate_palace_section
  .ipp-spacing-input-item-uniform
  .toggle-uniform {
  background-color: transparent;
  cursor: pointer;
  margin-top: 2px;
}

.control-section-integrate_palace_section .ipp-buton-settings-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.control-section-integrate_palace_section .ipp-buton-settings-unit {
  display: flex;
  gap: 8px;
  margin-right: 1.7rem;
}

.control-section-integrate_palace_section
  .ipp-buton-settings-unit
  input[type="radio"] {
  display: none;
}

.control-section-integrate_palace_section .ipp-buton-settings-unit > label {
  font-size: 11px;
  line-height: 16px;
  text-transform: uppercase;
  cursor: pointer;
  color: #919396;
}

.control-section-integrate_palace_section
  .ipp-buton-settings-unit
  > label.active {
  color: #0284c7;
}

.control-section-integrate_palace_section
  .ipp-responsive-device-icons
  .ipp-device-icons {
  margin-left: 5px;
  cursor: pointer;
}

/*------------------------
// Section Icons Styles
------------------------------------*/

.customize-control-ipp-radio-image {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-column-gap: 23px;
  grid-row-gap: 23px;
}

.customize-control-ipp-radio-image label {
  position: relative;
  display: inline-block;
  margin-right: 12px;
}

.customize-control-ipp-radio-image input {
  display: none;
}

.customize-control-ipp-radio-image .ipp-radio-img-svg svg {
  margin: 0;
  width: 100%;
  height: auto;
  background-color: rgba(221, 224, 226, 0.5);
  border: 1px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.customize-control-ipp-radio-image input[type="radio"]:checked + label svg {
  background-color: #0284c7;
  border-color: transparent;
  box-shadow: 0 12px 20px -8px rgba(30, 41, 59, 0.16);
  border-bottom-color: #f0f0f1;
}
