.customize-control-repeater {
  position: relative;
}

.customize-control-repeater .repeater-fields .repeater-row {
  border: 1px solid #e5e5e5;
  margin-top: 0.5rem;
  background: #eee;
  position: relative;
}

.customize-control-repeater .repeater-fields .repeater-row.minimized {
  border: 1px solid #dfdfdf;
  padding: 0;
}

.customize-control-repeater .repeater-fields .repeater-row.minimized:hover {
  border: 1px solid #e5e5e5;
}

.customize-control-repeater
  .repeater-fields
  .repeater-row.minimized
  .repeater-row-content {
  display: none;
}

.customize-control-repeater .repeater-fields .repeater-row label {
  margin-bottom: 12px;
  clear: both;
}

.customize-control-repeater
  .repeater-fields
  .repeater-row
  .repeater-field.repeater-field- {
  display: none;
}

.customize-control-repeater
  .repeater-fields
  .repeater-row
  .repeater-field.repeater-field-radio-image
  input {
  display: none;
}

.customize-control-repeater
  .repeater-fields
  .repeater-row
  .repeater-field.repeater-field-radio-image
  input
  img {
  border: 1px solid transparent;
}

.customize-control-repeater
  .repeater-fields
  .repeater-row
  .repeater-field.repeater-field-radio-image
  input:checked
  + label
  img {
  -webkit-box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.25);
  border: 1px solid #3498db;
}

.customize-control-repeater
  .repeater-fields
  .repeater-row
  .repeater-field:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.customize-control-repeater button.repeater-add {
  margin-top: 1rem;
}

.customize-control-repeater .repeater-row-content {
  padding: 10px 15px;
  background: #fff;
}

.customize-control-repeater .repeater-field {
  margin-bottom: 12px;
  width: 100%;
  clear: both;
  padding-bottom: 12px;
  border-bottom: 1px dotted #ccc;
}

.customize-control-repeater .repeater-field .customize-control-title {
  font-size: 13px;
  line-height: initial;
}

.customize-control-repeater .repeater-field .customize-control-description {
  font-size: 13px;
  line-height: initial;
}

.customize-control-repeater .repeater-field.repeater-field-hidden {
  margin: 0;
  padding: 0;
  border: 0;
}

.customize-control-repeater .repeater-field-select select {
  margin-left: 0;
}

.customize-control-repeater .repeater-field-checkbox label {
  line-height: 28px;
}

.customize-control-repeater .repeater-field-checkbox input {
  line-height: 28px;
  margin-right: 5px;
}

.customize-control-repeater .repeater-field-textarea textarea {
  width: 100%;
  resize: vertical;
}

.customize-control-repeater .repeater-row-header {
  background: white;
  border-bottom: 1px solid #dfdfdf;
  position: relative;
  padding: 10px 15px;
  height: auto;
  min-height: 20px;
  line-height: 30px;
  overflow: hidden;
  word-wrap: break-word;
}

.customize-control-repeater .repeater-row-header:hover {
  cursor: move;
}

.customize-control-repeater .repeater-row-header .dashicons {
  font-size: 18px;
  position: absolute;
  right: 12px;
  top: 2px;
  color: #a0a5aa;
}

.customize-control-repeater .repeater-row-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  display: block;
  width: 90%;
  overflow: hidden;
  height: 18px;
}

.customize-control-repeater .repeater-row-remove {
  color: #a00;
}

.customize-control-repeater .repeater-row-remove:hover {
  color: #f00;
}

.customize-control-repeater .repeater-minimize {
  line-height: 36px;
}

.customize-control-repeater .remove-button,
.customize-control-repeater .upload-button {
  width: 48%;
}

.kirki-image-attachment {
  margin: 0;
  text-align: center;
  margin-bottom: 10px;
}

.kirki-image-attachment img {
  display: inline-block;
}

.kirki-file-attachment {
  margin: 0;
  text-align: center;
  margin-bottom: 10px;
}

.kirki-file-attachment .file {
  display: block;
  padding: 10px 5px;
  border: 1px dotted #c3c3c3;
  background: #f9f9f9;
}

.limit {
  padding: 3px;
  border-radius: 3px;
}

.limit.highlight {
  background: #d32f2f;
  color: #fff;
}

// Slider control styles for repeater
.customize-control-repeater .repeater-fields .repeater-row .repeater-field-slider {
  .kirki-slider-control {
    margin-top: 8px;

    .kirki-control-cols {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .kirki-control-left-col {
      flex: 1;

      .kirki-control-slider {
        width: 100%;
        height: 4px;
        border-radius: 2px;
        background: #ddd;
        outline: none;
        -webkit-appearance: none;

        &::-webkit-slider-thumb {
          -webkit-appearance: none;
          appearance: none;
          width: 18px;
          height: 18px;
          border-radius: 50%;
          background: #0073aa;
          cursor: pointer;
          border: 2px solid #fff;
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        }

        &::-moz-range-thumb {
          width: 18px;
          height: 18px;
          border-radius: 50%;
          background: #0073aa;
          cursor: pointer;
          border: 2px solid #fff;
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        }

        &:focus {
          &::-webkit-slider-thumb {
            box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.3);
          }

          &::-moz-range-thumb {
            box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.3);
          }
        }
      }
    }

    .kirki-control-right-col {
      .kirki-control-value {
        min-width: 40px;
        text-align: center;
        font-weight: 500;
        color: #555;
        background: #f7f7f7;
        border: 1px solid #ddd;
        border-radius: 3px;
        padding: 4px 8px;
        font-size: 12px;
      }
    }
  }
}
