@import '~@capillarytech/cap-ui-library/styles/_variables';

#viber_input {
  height: $CAP_SPACE_40;
}
.viber-media-radio>label.ant-radio-wrapper {
  margin-right: $CAP_SPACE_24;
}

.ant-radio-inner::after{
  top: 3px;
  left: 3px;
}
.ant-radio-inner{
  border: 1px solid #d9d9d9;
}
.ant-radio-checked .ant-radio-inner{
  border: 1px solid #47af46;
}
.viber-render-heading {
  margin-top: $CAP_SPACE_06;
  margin-bottom: $CAP_SPACE_06;
}
.cap-custom-image-upload {
  .dragger-button.re-upload {
    top: -11rem;
    position: relative;
    left: 32.75rem;
    color: $FONT_COLOR_05;
  }
}
.cap-custom-video-upload {
  padding-top: $CAP_SPACE_20;
}

.viber-message-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: $CAP_SPACE_24;
  margin-bottom: $CAP_SPACE_08;
  .viber-message-header-style {
    font-weight: 500;
  }
}

.viber-textarea-wrapper {
  position: relative;
}

.viber-button-none {
  display: inline-grid;
  margin-top: $CAP_SPACE_16;
}

.viber-button-cta {
  display: inline-grid;
  margin-top: $CAP_SPACE_24;
}

.viber-render-heading {
  margin-top: $CAP_SPACE_24;
  margin-bottom: $CAP_SPACE_06;
}
.viber-optional-label {
  margin-left: $CAP_SPACE_08;
  color: $FONT_COLOR_03;
  font-weight: normal;
  font-size: $CAP_SPACE_12;
}
.viber-btn-radio-group {
  display: grid;
}
.button-section {
  margin-top: $CAP_SPACE_40;
}
.button-text {
  margin-bottom: $CAP_SPACE_08;
}
.cta-btn-action {
  margin-right: $CAP_SPACE_12;
}
.cta-actions {
  margin-top: $CAP_SPACE_16;
}
.cta-section {
  border: 1px solid $CAP_G06;
  border-radius: $CAP_SPACE_04;
  padding: $CAP_SPACE_16 $CAP_SPACE_24;
  margin-left: $CAP_SPACE_24;
  margin-top: $CAP_SPACE_12;
}
.button-url {
  max-width: 25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.button-edit-icon {
  margin-left: auto;
  cursor: pointer;
}
.cta-section-saved {
  display: flex;
  border: 1px solid $CAP_G06;
  border-radius: $CAP_SPACE_04;
  padding: $CAP_SPACE_16 $CAP_SPACE_24;
  margin-left: $CAP_SPACE_24;
  margin-top: $CAP_SPACE_12;
}
.cta-text {
  text-align: left;
  margin-right: $CAP_SPACE_24;
}
.cta-text-input {
  padding-bottom: $CAP_SPACE_12;
}
.char-count-viber {
  display: inline-block;
  float: right;
  margin-top: $CAP_SPACE_08;
}
.test-and-preview-button {
  margin-left: 6.25rem;
}

.viber-remove-row-btn {
  margin-top: $CAP_SPACE_24;
}

.viber-add-row-btn {
  margin-top: $CAP_SPACE_08;
  color: $FONT_COLOR_05;
  background: transparent;
  border: none;
  box-shadow: none;

  &:hover,
  &:focus,
  &:active {
    color: $FONT_COLOR_05;
    background: transparent;
    border: none;
  }
}

.viber-carousel-section {
  margin-top: $CAP_SPACE_16;
}

.viber-carousel-card {
  border: 1px solid $CAP_G06;
  border-radius: $CAP_SPACE_04;
  padding: $CAP_SPACE_16;
  margin-bottom: $CAP_SPACE_16;
}

.viber-carousel-card-selector {
  margin-bottom: $CAP_SPACE_16;
  border-bottom: 1px solid $CAP_G07;
}

.viber-carousel-card-selector-btn {
  min-width: 2.5rem;
  padding: $CAP_SPACE_12 $CAP_SPACE_20;
  border: none;
  background: transparent;
  color: $FONT_COLOR_04;
  font-size: $CAP_SPACE_40;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.viber-carousel-card-selector-btn.active {
  color: $FONT_COLOR_01;
  border-bottom-color: currentColor;
}

.viber-carousel-add-btn {
  border-left: 1px solid $CAP_G07;
  margin-left: $CAP_SPACE_16;
  padding-left: $CAP_SPACE_24;
  padding-right: $CAP_SPACE_24;
}

.viber-carousel-image-recommendation {
  display: block;
  margin: $CAP_SPACE_08 0 $CAP_SPACE_16 0;
  color: $FONT_COLOR_03;
}

.viber-carousel-card-title-header {
  align-items: center;
}

.viber-carousel-button {
  border-top: 1px dashed $CAP_G06;
  margin-top: $CAP_SPACE_12;
  padding-top: $CAP_SPACE_12;
}

.viber-carousel-button-label {
  margin-top: $CAP_SPACE_16;
}

.viber-carousel-button-title-header {
  align-items: center;
}

.viber-carousel-url-type-select {
  .ant-select-selection-selected-value {
    max-width: none;
    overflow: visible;
    text-overflow: unset;
  }

  .ant-select-selection__rendered {
    margin-right: $CAP_SPACE_24;
  }
}

.viber-carousel-url-type-dropdown.ant-select-dropdown {
  min-width: 12rem;
}

.viber-carousel-url-type-dropdown .ant-select-dropdown-menu-item {
  white-space: normal;
  word-break: break-word;
  height: auto;
  line-height: 1.25rem;
  padding-top: $CAP_SPACE_06;
  padding-bottom: $CAP_SPACE_06;
}

.viber-carousel-saved-button {
  display: flex;
  align-items: center;
  border: 1px solid $CAP_G06;
  border-radius: $CAP_SPACE_04;
  padding: $CAP_SPACE_12 $CAP_SPACE_16;
  margin-top: $CAP_SPACE_12;
  min-height: 2.75rem;
  box-sizing: border-box;
}

.viber-carousel-saved-button-icon {
  margin-right: $CAP_SPACE_12;
  color: $FONT_COLOR_01;
  flex-shrink: 0;
  line-height: 1;
}

.viber-carousel-saved-button-text {
  flex: 1;
  margin-right: $CAP_SPACE_12;
  min-width: 0;
  line-height: 1.25rem;
}

.viber-carousel-saved-button-actions {
  display: flex;
  align-items: center;
  gap: $CAP_SPACE_24;
  margin-left: auto;
  flex-shrink: 0;
  min-height: 1.5rem;

  .button-edit-icon {
    margin-left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
}

.viber-carousel-delete-icon {
  margin-left: 0;
}

.viber-carousel-delete-icon-btn {
  margin-left: $CAP_SPACE_08;
}

.viber-carousel-tab-label-disabled {
  color: $FONT_COLOR_04;
  cursor: not-allowed;
}

.viber-carousel-field-length-top {
  display: block;
  text-align: right;
  margin-top: $CAP_SPACE_04;
}

.viber-form-error {
  color: $CAP_RED;
  display: block;
  margin-top: $CAP_SPACE_08;
}
