@import '~@capillarytech/cap-ui-library/styles/_variables';
.header-row {
  margin-bottom: $CAP_SPACE_24;
}

.content-row {
  display: flex;
  gap: $CAP_SPACE_32;
}

.mobile-push-content {
  gap: $CAP_SPACE_24;
}

.preview-section {
  background: #fff;
  border-radius: $CAP_SPACE_08;
  padding: $CAP_SPACE_24;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 37.5rem;
}

.form-section {
  padding: $CAP_SPACE_24;
  background: #fff;
  border-radius: $CAP_SPACE_08;
}

.creative-name-section {
  margin-bottom: $CAP_SPACE_24;
}

.platform-header {
  margin-bottom: $CAP_SPACE_24;
}

.platform-header .platform-tabs {
  flex: 1;
}

.tab-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.android-icon,
.ios-icon {
  width: $CAP_SPACE_20;
  height: $CAP_SPACE_20;
  background-size: contain;
}

.same-content-checkbox {
  position: absolute;
  right: 0;
  margin-top: $CAP_SPACE_12;
}

.input-section {
  display: flex;
  flex-direction: column;
  gap: $CAP_SPACE_24;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: $CAP_SPACE_16;
}

.creatives-mpush-title,
.creatives-mpush-message {
  display: flex;
  flex-direction: column;
  gap: $CAP_SPACE_08;
}

.mpush-title-main,
.mpush-message-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mpush-title,
.mpush-message,
.mpush-media-type {
  font-weight: $FONT_WEIGHT_MEDIUM;
  color: #333;
  margin: 0;
  gap: $CAP_SPACE_04;
}

.add-labels,
#add-primary-button,
#add-secondary-button {
  color: #1890ff;
  font-size: 14px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  margin-top: 5px;
}

.add-labels:hover,
#add-primary-button:hover,
#add-secondary-button:hover {
  color: #40a9ff;
}

.button-form {
  margin-top: $CAP_SPACE_16;
  padding: $CAP_SPACE_16;
  border: 1px solid #e8e8e8;
  border-radius: $CAP_SPACE_04;
  background: #fafafa;
}

.button-form .cap-input,
.button-form .cap-select {
  margin-bottom: $CAP_SPACE_16;
}

.button-form .button-actions {
  display: flex;
  gap: $CAP_SPACE_08;
  justify-content: flex-end;
  margin-top: $CAP_SPACE_24;
}

.optional-text {
  color: #8c8c8c;
  font-size: 14px;
  margin-left: $CAP_SPACE_08;
  font-weight: normal;
}

.action-description {
  color: #8c8c8c;
  font-size: 14px;
  margin-top: $CAP_SPACE_04;
  margin-bottom: $CAP_SPACE_16;
}

.buttons-heading-container {
  display: flex;
  justify-content: space-between;
}

.buttons-heading {
  margin-bottom: $CAP_SPACE_12;
  margin-top: $CAP_SPACE_12;
  margin-right: 43%;
}

.helper-text {
  color: #8c8c8c;
  font-size: 14px;
  margin-top: $CAP_SPACE_08;
}

.button-group {
  display: flex;
  gap: $CAP_SPACE_16;
  margin-top: $CAP_SPACE_32;
}

.phone-time {
  text-align: center;
  font-size: 14px;
  color: #333;
  margin-bottom: $CAP_SPACE_16;
}

.notification-preview {
  background: #f8f8f8;
  padding: $CAP_SPACE_16;
  border-radius: $CAP_SPACE_08;
}

.notification-title {
  font-weight: $FONT_WEIGHT_MEDIUM;
  margin-bottom: $CAP_SPACE_08;
  color: #333;
}

.notification-body {
  color: #666;
  font-size: 14px;
}

.mpush-actions-main {
  display: flex;
  margin-bottom: 0.9375rem;
}

.optional-text {
  padding-top: $CAP_SPACE_03;
  padding-left: 0.625rem;
}

.action-on-click-checkbox {
  margin-left: -3px;
  margin-top: $CAP_SPACE_02;
}

.action-description {
  margin-left: 2.438rem;
}

#add-primary-btn-heading #add-secondary-btn-heading {
  font-weight: $FONT_WEIGHT_MEDIUM;
  color: #1890ff;
}

/* Carousel Styles */
.carousel-media-selection {
  display: flex;
  align-items: center;

  .carousel-media-selection-heading {
    margin-right: 20px;
  }
}

.carousel-radio-wrapper {
  padding-top: 24px;
  padding-bottom: 16px;
}

.mobile-push-carousel-tab {
  max-width: 100%;

  .ant-tabs-extra-content {
    padding: 0;
    line-height: normal;

    .add-carousel-content-button {
      padding: 0.642rem 0px;
      margin: 0;
    }

    .cap-divider-v2 {
      height: 1.5rem;
      margin-bottom: 0.499rem;
    }
  }

  .ant-tabs-tabpane {
    min-height: unset;
  }
}

.mobile-push-carousel-message-heading {
  margin-top: $CAP_SPACE_24;
}

.mobile-push-media-radio>label.ant-radio-wrapper {
  margin-right: 3.125rem;
}

.mobile-push-create-template-message-input-wrapper {
  position: relative;
}

.cap-custom-image-upload {
  img {
    max-width: 18.75rem !important;
    max-height: 9.375rem !important;
    display: block !important;
  }
  .dragger-button.re-upload {
    top: -9.375rem;
    position: relative;
    left: 31.8125rem;
  }
}

.mobile-push-carousel-card {
  .ant-card-head {
    border-bottom: none;
  }

  .ant-card-body {
    padding-top: 0px;
  }

  .ant-card-head-wrapper {
    .ant-card-extra {
      .cap-button-v2 {
        padding: 0px;
      }
    }
  }

  .cap-custom-image-upload {

    // Override FormBuilder CSS for carousel images
    .image-container {
      img {
        object-fit: cover !important;
        max-width: 18.75rem !important;
        max-height: 9.375rem !important;
        display: block !important;
      }
    }

    .dragger-button.re-upload {
      top: -9.375rem;
      position: relative;
      left: 28.5rem;
    }
  }
}

.cap-custom-video-upload {
  padding-top: 20px;

  .dragger-button.re-upload {
    top: -10.9375rem;
    position: relative;
    left: 32.8125rem;
  }
}

.note-message-container {
  display: flex;
  align-items: center;
}

.save-section {
  margin-bottom: $CAP_SPACE_12;
}

.mpush-media-type {
  margin-bottom: $CAP_SPACE_08;
}

.mpush-cta-buttons {
  padding: $CAP_SPACE_20 0;

  #add-primary-button,
  #add-secondary-button {
    color: $FONT_COLOR_05;
  }
  
  #add-primary-btn-heading, 
  #add-secondary-btn-heading {
    gap: $CAP_SPACE_04;
    color: $FONT_COLOR_05;
    font-weight: $FONT_WEIGHT_MEDIUM;
    margin-left: $CAP_SPACE_04;
    margin-bottom: $CAP_SPACE_04;
  }
}