// Cancel Modal Component Styles
.arraysubs-cancel-modal {
  padding: 20px;

  &__warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    margin-bottom: 20px;

    svg {
      flex-shrink: 0;
      color: #dc2626;
      margin-top: 2px;
    }

    p {
      margin: 0;
      color: #991b1b;
      font-weight: 500;
      font-size: 14px;
      line-height: 1.5;
    }
  }

  &__options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
  }

  &__option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition:
      border-color 0.15s ease,
      background-color 0.15s ease;

    &:hover {
      border-color: #9ca3af;
      background-color: #f9fafb;
    }

    &--selected {
      border-color: #3b82f6;
      background-color: #eff6ff;

      &:hover {
        border-color: #3b82f6;
        background-color: #eff6ff;
      }
    }

    input[type="radio"] {
      margin-top: 4px;
      flex-shrink: 0;
      width: 16px;
      height: 16px;
      accent-color: #3b82f6;
    }

    span {
      display: flex;
      flex-direction: column;
      gap: 4px;
      flex: 1;

      strong {
        font-size: 14px;
        font-weight: 600;
        color: #111827;
      }

      small {
        color: #6b7280;
        font-size: 13px;
        line-height: 1.4;

        strong {
          font-size: 13px;
          font-weight: 600;
          color: #374151;
        }
      }
    }
  }

  &__reason {
    margin-bottom: 24px;

    label {
      display: block;
      margin-bottom: 8px;
      font-weight: 500;
      font-size: 14px;
      color: #374151;
    }

    select,
    textarea {
      width: 100%;
      padding: 10px 12px;
      border: 1px solid #d1d5db;
      border-radius: 6px;
      font-size: 14px;
      line-height: 1.5;
      resize: vertical;
      transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;

      &:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
      }

      &::placeholder {
        color: #9ca3af;
      }

      &:disabled {
        background-color: #f3f4f6;
        cursor: not-allowed;
      }
    }

    select {
      min-height: 42px;
      background-color: #fff;
    }
  }

  &__optional {
    font-weight: 400;
    color: #9ca3af;
    font-size: 13px;
  }

  &__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
  }
}

// Danger button style
.arraysubs-btn--danger {
  background-color: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #fff !important;

  &:hover:not(:disabled) {
    background-color: #b91c1c !important;
    border-color: #b91c1c !important;
  }

  &:focus {
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25) !important;
  }

  &:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
}
