/* Import marketing styles for scheduling components */
@import url("../marketing/marketing.css");

/* SMS Marketing Tab Styles */
.sd-cus-profile-sms-marketing-wrapper {
  width: 800px;
  display: none;
}

.sd-cus-profile-sms-marketing-wrapper.active {
  display: block;
}

.sd-cus-profile-sms-section {
  margin-bottom: 32px;
}

.sd-cus-profile-sms-section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--sd-neutral-800);
  margin-bottom: 8px;
}

.sd-cus-profile-sms-section-desc {
  font-size: 14px;
  color: var(--sd-neutral-600);
  margin-bottom: 20px;
  line-height: 20px;
}

.sd-cus-profile-sms-textarea-wrapper {
  position: relative;
}

.sd-cus-profile-sms-textarea {
  padding: 12px 14px;
  border: 1px solid var(--sd-neutral-300);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 350;
  color: var(--sd-neutral-700);
  line-height: 24px;
  resize: none;
  width: 100%;
  outline: none;
}

.sd-cus-profile-sms-info {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 12px;
  margin-bottom: 20px;
}

.sd-cus-profile-sms-segment-count {
  font-size: 12px;
  color: var(--sd-neutral-600);
  font-weight: 500;
}

.sd-cus-profile-sms-send-btn-wrapper {
  display: flex;
  justify-content: flex-end;
}

.sd-cus-profile-sms-send-btn {
  padding: 12px 24px;
  background: var(--sd-neutral-300);
  color: var(--sd-neutral-500);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: not-allowed;
  transition: all 0.2s ease;
  min-width: 120px;
}

.sd-cus-profile-sms-send-btn.active {
  background: var(--sd-darker-green);
  color: white;
  cursor: pointer;
}

.sd-cus-profile-sms-send-btn.active:hover {
  background: var(--sd-dark-green);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 128, 98, 0.2);
}

.sd-cus-profile-sms-send-btn:disabled {
  background: var(--sd-neutral-300);
  color: var(--sd-neutral-500);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* SMS Status Section */
.sd-cus-profile-sms-status {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--sd-neutral-50);
  border: 1px solid var(--sd-neutral-200);
  border-radius: 12px;
}

.sd-cus-profile-sms-status-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--sd-neutral-100);
  border-radius: 8px;
  flex-shrink: 0;
}

.sd-cus-profile-sms-status-icon svg {
  color: var(--sd-darker-green);
  width: 20px;
  height: 20px;
}

.sd-cus-profile-sms-status-text {
  flex: 1;
}

.sd-cus-profile-sms-status-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--sd-neutral-800);
  margin-bottom: 4px;
}

.sd-cus-profile-sms-status-desc {
  font-size: 14px;
  color: var(--sd-neutral-600);
  line-height: 20px;
}

/* Template Button Styles */
.sd-cus-profile-sms-template-btn-wrapper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  align-items: center;
}

/* Customer Profile SMS specific styles */

/* Adjust spacing for scheduling components in customer profile */
.sd-cus-profile-sms-marketing-wrapper .sd-marketing-ai-assistant-input-group {
  margin-bottom: 16px;
}

.sd-cus-profile-sms-marketing-wrapper .sd-marketing-ai-assistant-input-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--sd-neutral-800);
  margin-bottom: 8px;
  display: block;
}

.sd-cus-profile-sms-marketing-wrapper .sd-marketing-schedule-inputs {
  margin-top: 16px;
}

/* Ensure proper z-index for scheduling components */
.sd-cus-profile-sms-marketing-wrapper .sd-marketing-segmented-control {
  position: relative;
  z-index: 1;
}

/* Fix any potential conflicts with existing customer profile styles */
.sd-cus-profile-sms-marketing-wrapper .sd-marketing-segmented-control::before {
  z-index: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sd-cus-profile-sms-marketing-wrapper {
    padding: 16px;
  }

  .sd-cus-profile-sms-info {
    justify-content: flex-start;
  }

  .sd-cus-profile-sms-send-btn-wrapper {
    justify-content: stretch;
  }

  .sd-cus-profile-sms-send-btn {
    width: 100%;
  }

  .sd-cus-profile-sms-status {
    flex-direction: column;
    text-align: center;
  }

  .sd-cus-profile-sms-status-icon {
    align-self: center;
  }

  .sd-date-time-container {
    flex-direction: column;
    gap: 16px;
  }

  .sd-marketing-segmented-control-btn {
    padding: 10px 12px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .sd-cus-profile-sms-marketing-wrapper {
    padding: 12px;
  }
  
  .sd-cus-profile-sms-section-title {
    font-size: 16px;
  }
  
  .sd-cus-profile-sms-textarea {
    padding: 12px;
    font-size: 13px;
  }
}
